Hierarchy

  • RecapSessionCapabilityObject

Implements

Constructors

Properties

#inner: Recap

Accessors

Methods

  • Returns the attenuated resource key to match against. This supports matching against a wildcard resource key too.

    Example

    If the attenuations object contains the following:

    {
    'lit-acc://*': {
    '*/*': {}
    }
    }

    Then, if the provided litResource is 'lit-acc://123', the method will return 'lit-acc://*'.

    Parameters

    Returns string

  • Adds a Rate Limit Authorization Signature (AuthSig) as an proof to the Recap object. This method serializes the AuthSig object into a JSON string and adds it to the proof of the Recap object. The AuthSig typically contains authentication details like signature, method of derivation, the signed message, and the address of the signer. This proof is used to verify that the user has the necessary authorization, such as a Rate Limit Increase NFT.

    Parameters

    • authSig: AuthSig

      The AuthSig object containing the rate limit authorization details.

    Returns Promise<void>

Generated using TypeDoc