SessionEncryption
constructor(role: MdocRole, eSelfKey: EcPrivateKey, remotePublicKey: EcPublicKey, encodedSessionTranscript: ByteArray)
Parameters
role
the role that the object should act as.
eSelfKey
The ephemeral private key e.g. in the MdocRole.MDOC_READER role, it's the ephemeral private key for the mdoc reader, and in the MdocRole.MDOC role it's the for the mdoc.
remotePublicKey
The public ephemeral key of the other end.
encodedSessionTranscript
The bytes of the SessionTranscript
CBOR.