aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsubtly <subtly@users.noreply.github.com>2015-03-10 01:14:49 +0800
committersubtly <subtly@users.noreply.github.com>2015-03-10 01:14:49 +0800
commit1c53a9107c65ee650368c003a36008f5f448349e (patch)
tree06b305a7b8f097730d05f0c83f548181476229ae
parentf93734535f910bce4569f161dcd1eea4bd5a7984 (diff)
downloaddexon-solidity-1c53a9107c65ee650368c003a36008f5f448349e.tar
dexon-solidity-1c53a9107c65ee650368c003a36008f5f448349e.tar.gz
dexon-solidity-1c53a9107c65ee650368c003a36008f5f448349e.tar.bz2
dexon-solidity-1c53a9107c65ee650368c003a36008f5f448349e.tar.lz
dexon-solidity-1c53a9107c65ee650368c003a36008f5f448349e.tar.xz
dexon-solidity-1c53a9107c65ee650368c003a36008f5f448349e.tar.zst
dexon-solidity-1c53a9107c65ee650368c003a36008f5f448349e.zip
bugfix and doc clarification. fix test.
-rw-r--r--crypto.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto.cpp b/crypto.cpp
index 2d7121f8..dbbc2dfa 100644
--- a/crypto.cpp
+++ b/crypto.cpp
@@ -299,7 +299,7 @@ BOOST_AUTO_TEST_CASE(ecies_standard)
s_secp256k1.encryptECIES(k.pub(), b);
BOOST_REQUIRE(b != asBytes(original));
- BOOST_REQUIRE(b.size() > 0 && ((u128)h128(b)) > 0);
+ BOOST_REQUIRE(b.size() > 0 && b[0] == 0x04);
s_secp256k1.decryptECIES(k.sec(), b);
BOOST_REQUIRE(bytesConstRef(&b).cropped(0, original.size()).toBytes() == asBytes(original));