Documentation
    Preparing search index...

    Interface CapabilityDelegateOptions<Schema>

    Delegate a capability

    interface CapabilityDelegateOptions<Schema extends StandardSchemaV1> {
        aud: DID;
        exp?: number | null;
        iss: ISigner;
        meta?: CborObject;
        nbf?: number;
        nonce?: Uint8Array<ArrayBufferLike>;
        now?: number;
        pol: Policy<InferOutput<Schema>>;
        store: Store;
        sub: DID | null;
        ttl?: number;
    }

    Type Parameters

    • Schema extends StandardSchemaV1

    Hierarchy

    Index

    Properties

    aud: DID
    exp?: number | null

    Expiration time in seconds or null for no expiration

    iss: ISigner
    meta?: CborObject
    nbf?: number

    Not before time in seconds Delegation is not valid before this time

    nonce?: Uint8Array<ArrayBufferLike>
    now?: number

    The current time in seconds. Mostly used for testing.

    Math.floor(Date.now() / 1000)
    
    pol: Policy<InferOutput<Schema>>
    store: Store

    Store to add the delegation to

    sub: DID | null
    ttl?: number

    Time to live in seconds, expiration thats precedence over ttl

    300