EOSIO / eosjs-ecc

Elliptic curve cryptography functions: Private Key, Public Key, Signature, AES, Encryption, Decryption
288 stars 119 forks source link

Add encoding parameter for a Signature's data #4

Closed jcalfee closed 6 years ago

jcalfee commented 6 years ago

Adding an encoding parameter will make it possible to use hex strings helping to avoid the requirement to use a Buffer in the API (allows for hex strings).

Update: sign, verify, and recover methods..

This change applied to the recover method: https://github.com/EOSIO/eosjs-ecc/commit/b62b37c67caf99a3cf9936ba9107727da8405173