diff options
author | subtly <subtly@users.noreply.github.com> | 2014-12-10 01:52:04 +0800 |
---|---|---|
committer | subtly <subtly@users.noreply.github.com> | 2014-12-10 01:52:04 +0800 |
commit | 0e98fec2789f4e6326e26f082697aeb370fdca49 (patch) | |
tree | 469c60e5ca56bbd60ff1d7715b4dd7031b0da3d5 | |
parent | 5a5973fc24df71f66221616f26527f02ce9eff9e (diff) | |
download | dexon-solidity-0e98fec2789f4e6326e26f082697aeb370fdca49.tar dexon-solidity-0e98fec2789f4e6326e26f082697aeb370fdca49.tar.gz dexon-solidity-0e98fec2789f4e6326e26f082697aeb370fdca49.tar.bz2 dexon-solidity-0e98fec2789f4e6326e26f082697aeb370fdca49.tar.lz dexon-solidity-0e98fec2789f4e6326e26f082697aeb370fdca49.tar.xz dexon-solidity-0e98fec2789f4e6326e26f082697aeb370fdca49.tar.zst dexon-solidity-0e98fec2789f4e6326e26f082697aeb370fdca49.zip |
fix for windows compliation (circular dependency between statics initialized dynamically and dynamically initialized statics)
-rw-r--r-- | crypto.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -44,6 +44,15 @@ static CryptoPP::OID s_curveOID(CryptoPP::ASN1::secp256k1()); static CryptoPP::DL_GroupParameters_EC<CryptoPP::ECP> s_params(s_curveOID); static CryptoPP::DL_GroupParameters_EC<CryptoPP::ECP>::EllipticCurve s_curve(s_params.GetCurve()); +BOOST_AUTO_TEST_CASE(emptySHA3Types) +{ + h256 emptyListSHA3(fromHex("1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347")); + BOOST_REQUIRE_EQUAL(emptyListSHA3, EmptyListSHA3); + + h256 emptySHA3(fromHex("c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470")); + BOOST_REQUIRE_EQUAL(emptySHA3, EmptySHA3); +} + BOOST_AUTO_TEST_CASE(cryptopp_patch) { KeyPair k = KeyPair::create(); |