Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add ability to generate delegations from spaces #180

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Apr 17, 2024

  1. feat: add ability to generate delegations from spaces

    We needed to generate some delegations from the nft storage spaces to the nft storage agent principal.
    
    This patch adds a `--use-space-recovery-key` option to the `delegation create` command. This option must be passed a "recovery key" generated during the space creation process. When used, `delegation create` will only be able to generate delegations that use the space as both the issuer and resource of all specified capabilities.
    
    For example:
    
    ```
    w3 delegation create --issuer-recovery-key "hamburger fiction this is not a real recovery key juice champion" did:key:z6MkkSc... --can 'upload/add' --can 'store/add' --can 'upload/get' --can 'filecoin/info' --base64
    
    mAYIEALMc....
    ```
    
    I'm not sure this is the right design - particularly interested in @Gozala's take on [link to line]
    
    TODO
    
    - [] align on design
    - [] write docs
    travis committed Apr 17, 2024
    Configuration menu
    Copy the full SHA
    f328537 View commit details
    Browse the repository at this point in the history