aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGav Wood <i@gavwood.com>2014-01-31 22:10:05 +0800
committerGav Wood <i@gavwood.com>2014-01-31 22:10:05 +0800
commita2ec430b27eb2f6a7ac42ed5c2fa16adc85f61a0 (patch)
tree3cf1ef06a41bc3cd6aab3c8e7e540440185e34d4
parentb405d62b365f58959382a4bc9aa225d7847e7243 (diff)
downloaddexon-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.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto.cpp b/crypto.cpp
index 75ac9e91..71fc4129 100644
--- a/crypto.cpp
+++ b/crypto.cpp
@@ -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;
}