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:
Running the above code throws the following error:
ERR Error: no proofs available for resource did:mailto:my_email and ability provider/add
at Agent.invoke (file:///C:/Users/aaron/Documents/projects/flash/api/node_modules/.pnpm/@web3-storage+access@15.2.0/node_modules/@web3-storage/access/src/agent.js:544:13)
at Agent.invokeAndExecute (file:///C:/Users/aaron/Documents/projects/flash/api/node_modules/.pnpm/@web3-storage+access@15.2.0/node_modules/@web3-storage/access/src/agent.js:474:28)
at addProvider (file:///C:/Users/aaron/Documents/projects/flash/api/node_modules/.pnpm/@web3-storage+access@15.2.0/node_modules/@web3-storage/access/src/agent-use-cases.js:78:31)
at addProviderAndDelegateToAccount (file:///C:/Users/aaron/Documents/projects/flash/api/node_modules/.pnpm/@web3-storage+access@15.2.0/node_modules/@web3-storage/access/src/agent-use-cases.js:323:9)
at Agent.registerSpace (file:///C:/Users/aaron/Documents/projects/flash/api/node_modules/.pnpm/@web3-storage+access@15.2.0/node_modules/@web3-storage/access/src/agent.js:398:18)
at Client.registerSpace (file:///C:/Users/aaron/Documents/projects/flash/api/node_modules/.pnpm/@web3-storage+w3up-client@8.0.2/node_modules/@web3-storage/w3up-client/src/client.js:168:23)
at resolve (c:\Users\aaron\Documents\projects\flash\api\packages\api\src\resolvers\W3SUpSpace\mutations\createClientWithDelegation.ts:28:20)
at async file:///C:/Users/aaron/Documents/projects/flash/api/node_modules/.pnpm/@envelop+core@4.0.0/node_modules/@envelop/core/esm/orchestrator.js:377:27
at async YogaServer.getResultForParams (file:///C:/Users/aaron/Documents/projects/flash/api/node_modules/.pnpm/graphql-yoga@4.0.3_graphql@16.8.1/node_modules/graphql-yoga/esm/server.js:306:26)
at async YogaServer.handle (file:///C:/Users/aaron/Documents/projects/flash/api/node_modules/.pnpm/graphql-yoga@4.0.3_graphql@16.8.1/node_modules/graphql-yoga/esm/server.js:73:29) {
path: [ 'createClientWithDelegation' ],
locations: [ { line: 84, column: 3 } ],
extensions: [Object: null prototype] {}
}
The text was updated successfully, but these errors were encountered:
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: