mimblewimble / secp256k1-zkp

Fork of secp256k1-zkp for the Grin/MimbleWimble project
MIT License
32 stars 42 forks source link

add ability to get public key from a pedersen commitment #15

Closed garyyu closed 6 years ago

garyyu commented 6 years ago

To complete the TODO item in repo rust-secp256k1-zkp: need an API in secp to convert commitments to public keys safely. a commitment is prefixed 08/09 and public keys are prefixed 02/03.

A new function secp256k1_pedersen_commitment_to_pubkey is added.

yeastplume commented 6 years ago

I've merged this but just a couple of comments for next time:

I'll add this in myself for now, so just have a look at the next couple of commits for next time.

Thanks again!

antiochp commented 6 years ago

🚀

garyyu commented 6 years ago

Noted with thanks.