Module ecdh_shared_secret
Functions
- Computes a standard ecdh shared secret: [secret] * public_key = shared_secret. The input secret is known only to one party. The output shared secret is derivable by both parties, through this function. E.g.: Epk = esk * G // ephemeral keypair Pk = sk * G // recipient keypair Shared secret S = esk * Pk = sk * Epk // see how this function can be called with two different sets of inputs, depending on which secret the caller knows (either esk or sk)?
- Computes a standard ecdh shared secret using the address public key of the given address: [ephemeral_secret] * recipient_address_public_key = shared_secret. The intention is that the creator of a shared secret would call this function, given the address of their intended recipient.