The type of content this event carries
StaticnewCreates a new sealed event with the given content, ID, and sender.
The content of the event
The event ID
The sender's XID document
Returns the content of the event.
Returns the ID of the event.
Returns the note of the event.
Returns the date of the event.
Adds state to the event that the receiver must return in the response.
Adds a continuation previously received from the recipient.
Adds an optional continuation previously received from the recipient.
Returns the underlying event.
Returns the sender of the event.
Returns the state to be sent to the recipient.
Returns the continuation received from the recipient.
Converts the sealed event to an Event.
Creates an envelope that can be decrypted by zero or one recipient.
OptionalvalidUntil: DateOptional expiration date for the continuation
Optionalsigner: SignerOptional signer for the envelope
Optionalrecipient: XIDDocumentOptional recipient XID document for encryption
The sealed event as an envelope
Creates an envelope that can be decrypted by zero or more recipients.
OptionalvalidUntil: DateOptional expiration date for the continuation
Optionalsigner: SignerOptional signer for the envelope
Optionalrecipients: XIDDocument[]Array of recipient XID documents for encryption
The sealed event as an envelope
StatictryParses a sealed event from an encrypted envelope.
The encrypted envelope to parse
Optional expected event ID for validation
Optional current time for continuation validation
The recipient's private keys for decryption
OptionalcontentExtractor: (env: Envelope$1) => TFunction to extract content from envelope
The parsed sealed event
Returns a string representation of the sealed event.
A sealed event that combines an Event with sender information and state continuations for secure communication.
Example