@blockchaincommons/gstp - v1.0.0-beta.2
    Preparing search index...

    Class SealedEvent<T>

    An event with its sender, state and the peer's continuation.

    Type Parameters

    • T extends EnvelopeInput

    Implements

    • ToEnvelope
    Index
    • get date(): Date | undefined

      The 'date' as a JS Date (millisecond view); cborDate is the exact value.

      Returns Date | undefined

    • get cborDate(): CborDate | undefined

      The 'date' exactly, when any.

      Returns CborDate | undefined

    • get sender(): XIDDocument

      The sender's document.

      Returns XIDDocument

    • get state(): Envelope | undefined

      The sender's state, when any.

      Returns Envelope | undefined

    • get peerContinuation(): Envelope | undefined

      The peer's continuation, when any.

      Returns Envelope | undefined

    • An event with content and id, from sender. An id that is not an ARID, a sender that is not an XIDDocument or a peer continuation that is not an Envelope is a TypeError.

      Type Parameters

      • T extends EnvelopeInput

      Parameters

      Returns SealedEvent<T>

    • With the peer's continuation (undefined clears it); not an Envelope is a TypeError.

      Parameters

      • peerContinuation: Envelope | undefined

      Returns SealedEvent<T>

    • The event with 'sender', the sender's continuation when there is state or a validUntil (a null state then), and the peer continuation; signed by signer and encrypted to recipients. With no options: unsigned, unsealed.

      Parameters

      Returns Envelope

    • SealedEvent(<summary>, state: <flat>, peer_continuation: None|Some); the reference's Display prints SealedRequest( here.

      Returns string

    • Same event and sender document, identical state and peer continuation (digest and structure), as the reference's PartialEq.

      Parameters

      Returns boolean