1

As we know Ethereum uses ECDSA (Elliptic Curve Digital Signature Algorithm) for its public-key cryptography. Which algorithm EOS uses for encryption?

0

2 Answers 2

4

Bitcoin, Ethereum or EOS uses secp256k1 algorithm. Not approximately, but exactly same. You can derive Ethereum address from EOS private key and sign Ethereum transaction. One difference between EOS and others, EOS supports secp256r1 a.k.a prime-256 which is NIST standard and supported by Android or iOS platform libraries. You can find there are two types of key in EOS (K1, R1) and each one indicates secp256k1 or secp256r1.

2
  • Nice answer! Do you have any references or links to appropriate sections of code that show this? Commented Jul 18, 2019 at 6:32
  • @PhillipHamnett-EOS42 I'm sorry, but I don't have a single source of this information. However, you can see all blockchains mentioned, Bitcoin, Ethereum and EOS depend on libsecp256k1.
    – conr2d
    Commented Jul 18, 2019 at 12:34
1

EOS also uses Elliptic curve cryptography for more you can refer https://github.com/EOSIO/eosjs-ecc

1
  • Does this mean that Ethereum and EOS use approximately same encryption algorithm? Commented Jul 18, 2019 at 5:01

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