mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
codereview fixes
This commit is contained in:
parent
2fe6c6c472
commit
7562f8fff2
@ -138,7 +138,7 @@ BOOST_AUTO_TEST_CASE(cryptopp_cryptopp_ecdsav)
|
|||||||
|
|
||||||
Signature sig;
|
Signature sig;
|
||||||
r.Encode(sig.data(), 32);
|
r.Encode(sig.data(), 32);
|
||||||
s.Encode(sig.data()+32, 32);
|
s.Encode(sig.data() + 32, 32);
|
||||||
sig[64] = recid;
|
sig[64] = recid;
|
||||||
|
|
||||||
Public p = dev::recover(sig, he);
|
Public p = dev::recover(sig, he);
|
||||||
@ -188,7 +188,7 @@ BOOST_AUTO_TEST_CASE(cryptopp_ecdsa_sipaseckp256k1)
|
|||||||
pp::initializeDLScheme(key.pub(), verifier);
|
pp::initializeDLScheme(key.pub(), verifier);
|
||||||
Signature sigppraw;
|
Signature sigppraw;
|
||||||
r.Encode(sigppraw.data(), 32);
|
r.Encode(sigppraw.data(), 32);
|
||||||
s.Encode(sigppraw.data()+32, 32);
|
s.Encode(sigppraw.data() + 32, 32);
|
||||||
BOOST_REQUIRE(verifier.VerifyMessage(m.data(), m.size(), sigppraw.data(), 64));
|
BOOST_REQUIRE(verifier.VerifyMessage(m.data(), m.size(), sigppraw.data(), 64));
|
||||||
BOOST_REQUIRE(crypto::verify(key.pub(), sigppraw, bytesConstRef(&m)));
|
BOOST_REQUIRE(crypto::verify(key.pub(), sigppraw, bytesConstRef(&m)));
|
||||||
BOOST_REQUIRE(dev::verify(key.pub(), sigppraw, hm));
|
BOOST_REQUIRE(dev::verify(key.pub(), sigppraw, hm));
|
||||||
|
Loading…
Reference in New Issue
Block a user