mimblewimble / secp256k1-zkp

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

How to convert a pubkey to pedersen commitment? #53

Closed wcc19840827 closed 4 years ago

wcc19840827 commented 4 years ago

This function can converts a pedersent commit to a pubkey

SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_pedersen_commitment_to_pubkey(
  const secp256k1_context* ctx,
  secp256k1_pubkey* pubkey,
  const secp256k1_pedersen_commitment* commit
);

How to converts a pubkey to pedersent commit ?

antiochp commented 4 years ago

Related - #54.

wcc19840827 commented 4 years ago

I get it, thanks!