kadena-io / pact-lang-api

BSD 3-Clause "New" or "Revised" License
20 stars 16 forks source link

Implemented verifySig wrapper #33

Closed raduciobanu22 closed 2 years ago

raduciobanu22 commented 2 years ago

Pact.crypto.verifySig was the default nacl.sign.detached.verify implementation which takes the parameters in a different format compared to what what Pact.crypto.sign returns. Specifically sig and publicKey have to be Uint8Array while msg has to be hashed with blake2b256.

Randynamic commented 2 years ago

Yes @mightybyte totally agree. I just had the same comments. @raduciobanu22 👍 for the tests btw.

raduciobanu22 commented 2 years ago

Thanks for the feedback @mightybyte @Randynamic! I made the adjustments.