Coder Social home page Coder Social logo

ethereum's Issues

Where is the sha3.h comes from which included in this project?

I have tried to install some sha3 packages, but the definition in sha3.h is not suitable with ethereum. Which sha3 package should I use?
The error message:
/cpp-ethereum/libethereum/State.cpp:966:14: error: no type named 'SHA3_256' in namespace 'CryptoPP'; did you mean 'SHA256'?

Error with build ethereum in secp256k1

Hi, i can't build this project by secp256k1:

sudo make install
[  6%] Built target secp256k1
[ 62%] Built target ethereum
[ 65%] Building CXX object test/CMakeFiles/testeth.dir/crypto.cpp.o
/home/max/ethereum-client/test/crypto.cpp: In function ‘int cryptoTest()’:
/home/max/ethereum-client/test/crypto.cpp:40:2: error: ‘secp256k1_start’ was not declared in this scope
  secp256k1_start();
  ^~~~~~~~~~~~~~~
/home/max/ethereum-client/test/crypto.cpp:40:2: note: suggested alternative: ‘secp256k1_context’
  secp256k1_start();
  ^~~~~~~~~~~~~~~
  secp256k1_context
/home/max/ethereum-client/test/crypto.cpp:63:13: error: ‘secp256k1_ecdsa_seckey_verify’ was not declared in this scope
   int ret = secp256k1_ecdsa_seckey_verify(privkey.data());
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/max/ethereum-client/test/crypto.cpp:63:13: note: suggested alternative: ‘secp256k1_ec_seckey_verify’
   int ret = secp256k1_ecdsa_seckey_verify(privkey.data());
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
             secp256k1_ec_seckey_verify
/home/max/ethereum-client/test/crypto.cpp:66:9: error: ‘secp256k1_ecdsa_pubkey_create’ was not declared in this scope
   ret = secp256k1_ecdsa_pubkey_create(pubkey.data(), &pubkeylen, privkey.data(), 1);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/max/ethereum-client/test/crypto.cpp:66:9: note: suggested alternative: ‘secp256k1_ec_pubkey_create’
   ret = secp256k1_ecdsa_pubkey_create(pubkey.data(), &pubkeylen, privkey.data(), 1);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         secp256k1_ec_pubkey_create
/home/max/ethereum-client/test/crypto.cpp:68:14: error: ‘secp256k1_ecdsa_pubkey_verify’ was not declared in this scope
   int good = secp256k1_ecdsa_pubkey_verify(pubkey.data(), pubkey.size());
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/max/ethereum-client/test/crypto.cpp:68:14: note: suggested alternative: ‘secp256k1_ec_seckey_verify’
   int good = secp256k1_ecdsa_pubkey_verify(pubkey.data(), pubkey.size());
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
              secp256k1_ec_seckey_verify
/home/max/ethereum-client/test/crypto.cpp:80:13: error: ‘secp256k1_ecdsa_sign_compact’ was not declared in this scope
   int ret = secp256k1_ecdsa_sign_compact((byte const*)hmsg.data(), hmsg.size(), sig.data(), privkey.data(), (byte const*)&nonce, &v);
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/max/ethereum-client/test/crypto.cpp:80:13: note: suggested alternative: ‘secp256k1_ecdsa_sign’
   int ret = secp256k1_ecdsa_sign_compact((byte const*)hmsg.data(), hmsg.size(), sig.data(), privkey.data(), (byte const*)&nonce, &v);
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
             secp256k1_ecdsa_sign
/home/max/ethereum-client/test/crypto.cpp:85:9: error: ‘secp256k1_ecdsa_recover_compact’ was not declared in this scope
   ret = secp256k1_ecdsa_recover_compact((byte const*)hmsg.data(), hmsg.size(), (byte const*)sig.data(), pubkey.data(), &pubkeylen, 0, v);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/max/ethereum-client/test/crypto.cpp:85:9: note: suggested alternative: ‘secp256k1_ecdsa_verify’
   ret = secp256k1_ecdsa_recover_compact((byte const*)hmsg.data(), hmsg.size(), (byte const*)sig.data(), pubkey.data(), &pubkeylen, 0, v);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         secp256k1_ecdsa_verify
/home/max/ethereum-client/test/crypto.cpp:93:13: error: ‘secp256k1_ecdsa_recover_compact’ was not declared in this scope
   int ret = secp256k1_ecdsa_recover_compact((byte const*)hmsg.data(), hmsg.size(), (byte const*)sig64.data(), pubkey.data(), &pubkeylen, 0, (int)t.vrs.v - 27);
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/max/ethereum-client/test/crypto.cpp:93:13: note: suggested alternative: ‘secp256k1_ecdsa_verify’
   int ret = secp256k1_ecdsa_recover_compact((byte const*)hmsg.data(), hmsg.size(), (byte const*)sig64.data(), pubkey.data(), &pubkeylen, 0, (int)t.vrs.v - 27);
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
             secp256k1_ecdsa_verify
test/CMakeFiles/testeth.dir/build.make:62: recipe for target 'test/CMakeFiles/testeth.dir/crypto.cpp.o' failed
make[2]: *** [test/CMakeFiles/testeth.dir/crypto.cpp.o] Error 1
CMakeFiles/Makefile2:196: recipe for target 'test/CMakeFiles/testeth.dir/all' failed
make[1]: *** [test/CMakeFiles/testeth.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

How can LICENSE be MIT?

Because this code uses libethereum, which is GPL. It should make this code GPL too, alas.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.