0

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?

1

1 Answer 1

1

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;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.