Returns the encrypted message.
Returns the encapsulation ciphertext (ephemeral public key for X25519).
Returns the encapsulation scheme used.
StaticcodecTagged-CBOR codec; decode also accepts the untagged form.
StaticfromCreate a SealedMessage from its components.
StaticsealEncrypt plaintext to recipient: a fresh shared secret is
encapsulated to the recipient's key and encrypts the plaintext.
Decrypt the sealed message using the recipient's private key.
The recipient's private key
The decrypted plaintext
Get string representation.
The CBOR tags this type decodes from; the first one is used to encode.
Returns the untagged CBOR encoding. Format: [EncryptedMessage (tagged), EncapsulationCiphertext (tagged)]
The tagged CBOR form.
As a UR, typed by the first tag's name.
Staticfrom
A sealed message providing anonymous authenticated encryption.