Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

feat: #2284 add capabilityChain for LD Proofs #2285

Merged
merged 1 commit into from
Oct 30, 2020

Conversation

llorllale
Copy link
Contributor

@llorllale llorllale commented Oct 30, 2020

closes #2284

This PR adds support for the capabilityChain property in LD proofs. LD proofs with capabilityChain can be added with verifiable.Credential.AddLinkedDataProof() or more directly with signer.DocumentSigner. They can be verified with verifiable.ParseCredential() and verifier.DocumentVerifier.Verify().

capabilityChain is used in ZCAP-LD with a proofPurpose of capabilityDelegation.

Note: ZCAP-LD != Verifiable Credentials, so if the spec ever matures then we should add support for it in a new, separate API from verifiable.Credential.

Signed-off-by: George Aristy [email protected]

@llorllale llorllale added the enhancement New feature or request label Oct 30, 2020
@llorllale llorllale added this to the 0.1.5 milestone Oct 30, 2020
@codecov
Copy link

codecov bot commented Oct 30, 2020

Codecov Report

Merging #2285 into master will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2285      +/-   ##
==========================================
+ Coverage   89.90%   89.91%   +0.01%     
==========================================
  Files         227      227              
  Lines       15379    15396      +17     
==========================================
+ Hits        13827    13844      +17     
  Misses        916      916              
  Partials      636      636              
Impacted Files Coverage Δ
pkg/doc/signature/proof/proof.go 91.76% <100.00%> (+1.76%) ⬆️
pkg/doc/signature/signer/signer.go 96.42% <100.00%> (+0.06%) ⬆️
pkg/doc/verifiable/common.go 97.91% <100.00%> (ø)
pkg/doc/verifiable/linked_data_proof.go 86.66% <100.00%> (+0.30%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1e234a0...65d4573. Read the comment docs.

@llorllale llorllale force-pushed the 2284 branch 3 times, most recently from 1c05670 to 60b911e Compare October 30, 2020 21:28
@llorllale llorllale changed the title feat: #2283 add capabilityChain for LD Proofs feat: #2284 add capabilityChain for LD Proofs Oct 30, 2020
@troyronda troyronda merged commit 2f5e96e into hyperledger-archives:master Oct 30, 2020
@llorllale llorllale deleted the 2284 branch October 30, 2020 22:26
@llorllale llorllale mentioned this pull request Dec 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

LD Proofs: add capabilityChain
5 participants