Documentation
    Preparing search index...

    Interface InvocationFromOptions

    interface InvocationFromOptions {
        audience?: VerifiableDID;
        bytes: Uint8Array;
        didResolver?: Resolver;
        isRevoked?: IsRevoked;
        maxTtl?: number;
        now?: number;
        replayStore?: ReplayStore;
        resolveProof: ResolveProof;
        verifierResolver: Resolver;
    }

    Hierarchy (View Summary)

    Index
    audience?: VerifiableDID
    bytes: Uint8Array
    didResolver?: Resolver
    isRevoked?: IsRevoked
    maxTtl?: number

    Maximum lifetime in seconds accepted for the invocation. When set, invocations without an expiration, or expiring more than maxTtl seconds after now, are rejected. This keeps the replay store bounded.

    now?: number

    The current time in seconds, used for the invocation's own exp, the time bounds of its proofs and maxTtl. Mostly used for testing.

    Math.floor(Date.now() / 1000)
    
    replayStore?: ReplayStore

    Store of seen invocations. When set, an invocation whose signed payload was already seen is rejected. Checked after all other validation passes.

    Executors MUST use one to prevent replay attacks.

    resolveProof: ResolveProof
    verifierResolver: Resolver