diff --git a/tests/ecc_test.cpp b/tests/ecc_test.cpp new file mode 100644 index 0000000..982e94b --- /dev/null +++ b/tests/ecc_test.cpp @@ -0,0 +1,23 @@ +#include +#include +#include + +int main( int argc, char** argv ) +{ + std::string pass(argv[1]); + fc::sha256 h = fc::sha256::hash( pass.c_str(), pass.size() ); + fc::ecc::private_key priv = fc::ecc::private_key::generate_from_seed(h); + fc::ecc::public_key pub = priv.get_public_key(); + std::cerr<<"oroginal master pubkey1: "<