diff options
author | Gav Wood <i@gavwood.com> | 2014-11-05 22:32:23 +0800 |
---|---|---|
committer | Gav Wood <i@gavwood.com> | 2014-11-05 22:32:23 +0800 |
commit | f8deb4b046036b24afc1d41bf91a3edc2e87412e (patch) | |
tree | c836c3a5e8d0ff6c5d72f7413cd1275d2f451b6b | |
parent | d7da8b1aaa3840aa5aa6cfbe4f5635225bfb14da (diff) | |
download | dexon-solidity-f8deb4b046036b24afc1d41bf91a3edc2e87412e.tar.gz dexon-solidity-f8deb4b046036b24afc1d41bf91a3edc2e87412e.tar.zst dexon-solidity-f8deb4b046036b24afc1d41bf91a3edc2e87412e.zip |
Transaction documentation and build fixes.
-rw-r--r-- | crypto.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -340,14 +340,14 @@ BOOST_AUTO_TEST_CASE(eth_keypairs) BOOST_REQUIRE(p.address() == Address(fromHex("8a40bfaa73256b60764c1bf40675a99083efb075"))); { eth::Transaction t(1000, 0, 0, h160(fromHex("944400f4b88ac9589a0f17ed4671da26bddb668b")), bytes(), 0, p.secret()); - auto rlp = t.rlp(false); + auto rlp = t.rlp(eth::WithoutSignature); cnote << RLP(rlp); cnote << toHex(rlp); - cnote << t.sha3(false); - rlp = t.rlp(true); + cnote << t.sha3(eth::WithoutSignature); + rlp = t.rlp(eth::WithSignature); cnote << RLP(rlp); cnote << toHex(rlp); - cnote << t.sha3(true); + cnote << t.sha3(eth::WithSignature); BOOST_REQUIRE(t.sender() == p.address()); } @@ -364,14 +364,14 @@ int cryptoTest() assert(p.address() == Address(fromHex("8a40bfaa73256b60764c1bf40675a99083efb075"))); { eth::Transaction t(1000, 0, 0, h160(fromHex("944400f4b88ac9589a0f17ed4671da26bddb668b")), bytes(), 0, p.secret()); - auto rlp = t.rlp(false); + auto rlp = t.rlp(eth::WithoutSignature); cnote << RLP(rlp); cnote << toHex(rlp); - cnote << t.sha3(false); - rlp = t.rlp(true); + cnote << t.sha3(eth::WithoutSignature); + rlp = t.rlp(eth::WithSignature); cnote << RLP(rlp); cnote << toHex(rlp); - cnote << t.sha3(true); + cnote << t.sha3(eth::WithSignature); assert(t.sender() == p.address()); } |