I need to derive public key from my private key in uncompressed form. I know how to create compressed one with libbitcoin, but I can't find appropriate method for uncompressed form there.
Are there any other libraries in C++ which can do that?
Bitcoin Stack Exchange is a question and answer site for Bitcoin crypto-currency enthusiasts. It only takes a minute to sign up.
Sign up to join this communityI need to derive public key from my private key in uncompressed form. I know how to create compressed one with libbitcoin, but I can't find appropriate method for uncompressed form there.
Are there any other libraries in C++ which can do that?
I don't know much about c++ or libbitcoin, but I found a public method in the bc::wallet::ec_public class
bool to_uncompressed(ec_uncompressed& out) const;
So I guess you can probably convert your ec_public
to ec_uncompressed
(which is just a byte_array
) by
ec_uncompressed uncomp;
<public key>.to_uncompressed(uncomp);
std::cout << "Uncompressed: " << uncomp << std::endl;