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

can't parse delegation from proof #6

Open
gm0stache opened this issue May 12, 2024 · 0 comments
Open

can't parse delegation from proof #6

gm0stache opened this issue May 12, 2024 · 0 comments

Comments

@gm0stache
Copy link

what do i want to do:

create a client to programmatically upload '.car' files to web3.storage.

what i did:

  1. created a web3.storage account
  2. installed the w3 CLI and signed in (w3 login)
  3. created a key (w3 key create > private.key)
  4. created a delegation for the key (w3 delegation create -c 'store/*' -c 'upload/*' [key DID] -o proof.ucan)

the problem encountered:

when trying to parse the proof.ucan with

package main

import "github.com/web3-storage/go-ucanto/core/delegation"

func main() {
	proofDel, err := delegation.Extract(proof)
}

i encounter get this error: missing root CID in delegation archive

am i doing something wrong here?

i already tried to pass the account DID of mine (did:mailto:...) instead of the private key DID (created in step 3.), even tough it didn't make sense to me. this failed too.

=> is the private key DID the right one to pass to the delegation in step 4?

thanks a lot for all you work and greetings from germany!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant