Open kilrau opened 4 years ago
Why not using Alice & Bob?
SessionInit
with the public keySessionInit
, creates an ephemeral ECDH key pair and sends back to Alice SessionAck
with the public key. Meanwhile he calculates the derived shared key which will be used to encrypt all future outgoing messages to AliceSessionAck
and calculates the derived shared key which will be used to decrypt all future incoming messages from Bob.Because Alice and Bob cause me to eye-roll by now ;) and https://www.theregister.co.uk/2012/10/01/crypto_analogies/.
Apart from that, the steps you outlined look good.
Details: https://github.com/bitcoin/bips/blob/master/bip-0151.mediawiki