gavofyork / ethereum Goto Github PK
View Code? Open in Web Editor NEWEthereum C++ Client.
License: MIT License
Ethereum C++ Client.
License: MIT License
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'?
Because this code uses libethereum, which is GPL. It should make this code GPL too, alas.
I want trade it.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.