Create a new, random, unestablished HPKE session.
This method will use the
MATRIX_QR_CODE_LOGIN
info for domain separation when creating the session.
ReadonlypublicGet our Curve25519PublicKey.
This public key needs to be sent to the other side to be able to establish an HPKE channel.
Create a UnidirectionalRecipientChannel from an initial message encrypted by the other side.
An unestablished HPKE recipient session.
This class is used to start the establishment of a HPKE session. The other side of the session can be established using the HpkeSenderChannel.
The HPKE recipient channel can be used to implement the QR code generating side of the secure channel from [MSC4388].
Example