EOSIO / eosjs-ecc

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

Can I convert signature string (SIG_K1_...) to eos signature struct(uint8) #35

Closed jacktang closed 6 years ago

jacktang commented 6 years ago

Hello,

I generate the signature using ecc.Signature.signHash(sha256hash, privateKey).toString() and how can I convert to eos signature struct?

P.S:

struct signature {
   uint8_t data[66];
};
jacktang commented 6 years ago

well, i got the answer now so that close it.

shwuhk commented 5 years ago

@jacktang May I know how did you do that finally?

WhaleEx commented 5 years ago

@jacktang May I know how did you do that finally?