mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
cryptopp recover public key
This commit is contained in:
parent
3842c3c9bd
commit
e4fd613821
@ -172,12 +172,12 @@ BOOST_AUTO_TEST_CASE(cryptopp_ecdsa_sipaseckp256k1)
|
||||
Integer nB(fromHex("f2ee15ea639b73fa3db9b34a245bdfa015c260c598b211bf05a1ecc4b3e3b4f2").data(), 32);
|
||||
BOOST_REQUIRE(nHex == nB);
|
||||
|
||||
bytes sbytes(fromHex("0x01"));
|
||||
bytes sbytes(fromHex("0xFFFF"));
|
||||
Secret secret(sha3(sbytes)); // 5fe7f977e71dba2ea1a68e21057beebb9be2ac30c6410aa38d4f3fbe41dcffd2
|
||||
KeyPair key(secret);
|
||||
|
||||
bytes m(fromHex("0x01"));
|
||||
int tests = 2;
|
||||
bytes m(fromHex("0xFF"));
|
||||
int tests = 3;
|
||||
while (m[0]++, tests--)
|
||||
{
|
||||
h256 hm(sha3(m));
|
||||
|
Loading…
Reference in New Issue
Block a user