diff options
author | subtly <subtly@users.noreply.github.com> | 2015-03-10 01:14:49 +0800 |
---|---|---|
committer | subtly <subtly@users.noreply.github.com> | 2015-03-10 01:14:49 +0800 |
commit | 1c53a9107c65ee650368c003a36008f5f448349e (patch) | |
tree | 06b305a7b8f097730d05f0c83f548181476229ae | |
parent | f93734535f910bce4569f161dcd1eea4bd5a7984 (diff) | |
download | dexon-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.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)); |