3

How are the public key, private key and the signature decoded to the actual ecc keys? How many bytes are these decoded keys?

3

Private Keys are typically encoded using WIF (Wallet Import Format). The Public Keys are likewise encoded in WIF format, but with the EOS prefix added to them.

To obtain the actual ECC keys, the keys are decoded, verified against their embedded checksums, then converted into their binary formats.

|improve this answer|||||
  • Thank you, I'll accept this answer if the signature specifications are added! – wanheda May 8 '18 at 22:17
  • Hmm. Based on this issue on the EOS GitHub (github.com/EOSIO/eosjs-ecc/issues/12) , it looks for the formats of the keys might be changing in Dawn 4... – John Haager May 8 '18 at 22:35
2

The encryption is sha256 hash with a 32 byte buffer or string with encoding defaulting to UTF-8.

Here's a link to the official repository for the elliptic curve functions which should be able to give you some more insight into how it works: https://github.com/EOSIO/eosjs-ecc

Further if your question is relating the the registration of the tokens, I highly recommend this offline guide by EOSNY.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.