diff options
author | Gav Wood <i@gavwood.com> | 2014-01-31 22:10:05 +0800 |
---|---|---|
committer | Gav Wood <i@gavwood.com> | 2014-01-31 22:10:05 +0800 |
commit | a2ec430b27eb2f6a7ac42ed5c2fa16adc85f61a0 (patch) | |
tree | 3cf1ef06a41bc3cd6aab3c8e7e540440185e34d4 | |
parent | b405d62b365f58959382a4bc9aa225d7847e7243 (diff) | |
download | dexon-solidity-a2ec430b27eb2f6a7ac42ed5c2fa16adc85f61a0.tar.gz dexon-solidity-a2ec430b27eb2f6a7ac42ed5c2fa16adc85f61a0.tar.zst dexon-solidity-a2ec430b27eb2f6a7ac42ed5c2fa16adc85f61a0.zip |
Manage GetBlocks properly; should work for when > 256 blocks away.
Use GetTransactions on connect & respect it. DONE
-rw-r--r-- | crypto.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -35,7 +35,7 @@ int cryptoTest() cout << "TX: " << RLP(tx) << endl; Transaction t2(tx); - cout << "SENDER: " << hex << t2.sender() << endl; + cout << "SENDER: " << hex << t2.sender() << dec << endl; secp256k1_start(); @@ -76,7 +76,7 @@ int cryptoTest() int v = 0; cout << asHex(hmsg) << endl; cout << asHex(privkey) << endl; - cout << hex << nonce << endl; + cout << hex << nonce << dec << endl; int ret = secp256k1_ecdsa_sign_compact((byte const*)hmsg.data(), hmsg.size(), sig.data(), privkey.data(), (byte const*)&nonce, &v); cout << "MYSIG: " << dec << ret << " " << sig.size() << " " << asHex(sig) << " " << v << endl; @@ -93,7 +93,7 @@ int cryptoTest() int ret = secp256k1_ecdsa_recover_compact((byte const*)hmsg.data(), hmsg.size(), (byte const*)sig64.data(), pubkey.data(), &pubkeylen, 0, (int)t.vrs.v - 27); pubkey.resize(pubkeylen); cout << "RECPUB: " << dec << ret << " " << pubkeylen << " " << asHex(pubkey) << endl; - cout << "SENDER: " << hex << low160(eth::sha3(bytesConstRef(&pubkey).cropped(1))) << endl; + cout << "SENDER: " << hex << low160(eth::sha3(bytesConstRef(&pubkey).cropped(1))) << dec << endl; } return 0; } |