You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to create delegated PROOF that can be used to create spaces and upload car files. I used ucan-key ed --json to create the audienceDid and privateKey and I used the audienceDid in w3 delegation create to create a delegation. Full command is:
What are these two parameters and where can I see them!!!
These are contants whose values were generated by following the steps in the docs
// from "bring your own Agent" example in `Creating a client object" section`
// used command line to generate KEY and PROOF (stored in env variables)
// KEY: `npx ucan-key ed --json` in command line, which returns private key and DID for Agent (the private key is stored in KEY)
// PROOF: w3cli used to run `w3 delegation create <did_from_ucan-key_command_above> --can 'blob/add' --can 'index/add' --can 'filecoin/offer' --can 'upload/add' | base64`, which returns the delegation from Space to the Agent we're using (stored in PROOF)
I wanted to create delegated
PROOF
that can be used to create spaces and upload car files. I useducan-key ed --json
to create theaudienceDid
andprivateKey
and I used theaudienceDid
inw3 delegation create
to create a delegation. Full command is:w3 delegation create did:key:#### --can 'store/add' --can 'upload/add' --can 'provider/add' | base64
Unfortunately, it threw an error
Why create delegation with
provider/add
?I wanted to instantiate a client that can create spaces for our users. The code that is below:
Code:
Running the above code throws the following error:
The text was updated successfully, but these errors were encountered: