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

Verify Invocation Assumes Delegation #372

Open
wip-abramson opened this issue Oct 3, 2023 · 0 comments
Open

Verify Invocation Assumes Delegation #372

wip-abramson opened this issue Oct 3, 2023 · 0 comments

Comments

@wip-abramson
Copy link

Using the node module, I am attempting to verify the invocation of a root capability. I.e. a capability before it has been delegated.

I run into the error: missing field parentCapability``

I believe this is because the verify_invocation funtion is expecting a Delegation.

I could also just be implementing this wrong. But have you tested verifying an invocation of a root capability?

I seem to be able to generate the root invocation without issues.

{
  '@context': 'https://w3id.org/security/v2',
  id: 'urn:uuid:ad86cb2c-e9db-434a-beae-71b82120a8a4',
  capabilityAction: 'write',
  proof: {
    type: 'Ed25519Signature2018',
    proofPurpose: 'capabilityInvocation',
    verificationMethod: 'did:key:z6MkrtW3VfiCytTetfGhpj1aERSBqwUT2zsvwu6djfDkgZcN#z6MkrtW3VfiCytTetfGhpj1aERSBqwUT2zsvwu6djfDkgZcN',
    created: '2023-10-03T20:59:16.105Z',
    jws: 'eyJhbGciOiJFZERTQSIsImNyaXQiOlsiYjY0Il0sImI2NCI6ZmFsc2V9..FAVjy5hA1831FUhZjD8-dOsavFC5zssRaHM36KwMQqCeYF9WysUCHNC57PL2OSAtounKEdZp7i_WB2k074wNCw',
    capability: 'urn:zcap:root:did%3Akey%3Az6MkrtW3VfiCytTetfGhpj1aERSBqwUT2zsvwu6djfDkgZcN'
  }
}

I just can't verify.

I have managed to verify an invoked delegation of this capability however.

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