aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGav Wood <i@gavwood.com>2014-11-05 22:32:23 +0800
committerGav Wood <i@gavwood.com>2014-11-05 22:32:23 +0800
commitf8deb4b046036b24afc1d41bf91a3edc2e87412e (patch)
treec836c3a5e8d0ff6c5d72f7413cd1275d2f451b6b
parentd7da8b1aaa3840aa5aa6cfbe4f5635225bfb14da (diff)
downloaddexon-solidity-f8deb4b046036b24afc1d41bf91a3edc2e87412e.tar.gz
dexon-solidity-f8deb4b046036b24afc1d41bf91a3edc2e87412e.tar.zst
dexon-solidity-f8deb4b046036b24afc1d41bf91a3edc2e87412e.zip
Transaction documentation and build fixes.
-rw-r--r--crypto.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/crypto.cpp b/crypto.cpp
index cc35670a..de67ca99 100644
--- a/crypto.cpp
+++ b/crypto.cpp
@@ -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());
}