nakov / Practical-Cryptography-for-Developers-Book

Practical Cryptography for Developers: Hashes, MAC, Key Derivation, DHKE, Symmetric and Asymmetric Ciphers, Public Key Cryptosystems, RSA, Elliptic Curves, ECC, secp256k1, ECDH, ECIES, Digital Signatures, ECDSA, EdDSA
https://cryptobook.nakov.com
MIT License
3.42k stars 409 forks source link

Seemingly incorrect progression in eddsa-and-ed25519.md #44

Open fresheneesz opened 3 years ago

fresheneesz commented 3 years ago

Under the "How does it work" section, it says:

P1 = s G = (r + h privKey) mod q G = r G + h privKey G = R + h * pubKey

The last step seems erroneous. The privKey is converted into pubKey without any obvious mathematical operation. Is that correct? If so, I think some additional steps would need to be there for clarity.

(PS thanks for writing this!)