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

    Interface FromEnvelopeEventOptions<T>

    What SealedEvent.fromEnvelope takes to read the content as T rather than as text.

    interface FromEnvelopeEventOptions<T extends EnvelopeInput> {
        content: (envelope: Envelope) => T;
        recipient: Decrypter;
        expectedId?: ARID;
        now?: DateInput;
    }

    Type Parameters

    • T extends EnvelopeInput

    Hierarchy (View Summary)

    Index
    content: (envelope: Envelope) => T

    Reads the 'content' envelope; the reference's T: TryFrom<Envelope>.

    recipient: Decrypter

    The private keys of the recipient opening the message.

    expectedId?: ARID

    The request id the recipient's continuation must answer to.

    now?: DateInput

    The clock the recipient's continuation is checked against; no check without one.