Skip to content

One-off or expiring capabilities #2997

Open

Description

Issue to be solved

Some apis require a capability to be called and if you want to use them in a one-off manner it is a bit cumbersome to issue a capability and then delete it via its controller later on. Or to manage looking up an existing capability for the same path. Therefore i suggest an api where you can issue a capability that effectively have an instant lifetime, so after the transaction is done its controller will delete it.

I guess a variant of this could be that you could define a capability that you want to be valid for a certain amount of blocks time. This could be a very nice primitive to use if you want to create a listing that is only valid for a month for instance. Since if the underlying cap providing a resource is not valid the listing should not be valid.

Suggested Solution

Implmenet an api for issuing a capability that is instant or can live for a certain interval before beeing invalidated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions