Cryptography, Encryption, Programming, Security, Elliptic Curve.
my private key 2 - I generate my public key A by computing aG 3 - You generate a random integer b as your private key 4 - You generate your public key B by computing bG 5 - We exchange public keys 6 - I calculate K as aB 7 - You calculate K as bA So that we have the same numbers at step 6 and 7, we