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

feat: Sign DID Doc during creation in the wallet #440

Closed
wants to merge 1 commit into from

Conversation

sandrask
Copy link
Contributor

@sandrask sandrask commented Oct 7, 2019

Did document will be signed during creation (in the wallet)

Closes #421

Signed-off-by: Sandra Vrtikapa [email protected]

@codecov
Copy link

codecov bot commented Oct 7, 2019

Codecov Report

Merging #440 into master will increase coverage by 0.06%.
The diff coverage is 89.18%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #440      +/-   ##
==========================================
+ Coverage   89.63%   89.69%   +0.06%     
==========================================
  Files          56       56              
  Lines        3271     3271              
==========================================
+ Hits         2932     2934       +2     
+ Misses        183      182       -1     
+ Partials      156      155       -1
Impacted Files Coverage Δ
pkg/wallet/wallet.go 88.23% <89.18%> (-0.76%) ⬇️
pkg/didcomm/protocol/didexchange/service.go 94.31% <0%> (-0.11%) ⬇️
pkg/restapi/operation/didexchange/didexchange.go 83.09% <0%> (+1.28%) ⬆️

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 238da0b...cd1abb7. Read the comment docs.

Did document will be signed during creation (in the wallet)

Closes hyperledger-archives#421

Signed-off-by: Sandra Vrtikapa <[email protected]>
@troyronda
Copy link
Contributor

The DIDs created by the framework are (typically) Peer DIDs.

Do we know the use case for DID Document proofs? @llorllale @sandrask

@troyronda troyronda added the question Further information is requested label Oct 8, 2019
@llorllale
Copy link
Contributor

@troyronda

Do we know the use case for DID Document proofs? @llorllale @sandrask

The argument for removal of proof is convincing, but I suggest we press forward with the DID spec as it exists today. I doubt w3c/did-core#26 will be merged any time soon (look at w3c/did-core#28 for example).

I'd rather focus on the changes coming to did-exchange in hyperledger/aries-rfcs#243 (which also has an out-of-band proof mechanism).

@troyronda
Copy link
Contributor

@llorllale The Peer DID spec is a bit unclear on this point.
https://openssi.github.io/peer-did-method-spec/index.html#namestring-generation-method

The genesis version MUST include enough keys and authorization that the genesis version of the doc can be signed (see Binding of Identity in the DID spec), to prevent man-in-the-middle attacks during initial DID exchange.

By basing the numeric value of the DID on the genesis version of the DID doc, the DID can begin its lifecycle with any number of keys and endpoints, and when the doc is signed or auth-encrypted by one of the keys, the recipient can know it has not been modified since creation. This guarantees the initial integrity of the DID's chain of custody.

i.e., @llorllale I see that "doc can be signed" - are you saying that implementations have been populating Proof with that signature?

@sandrask
Copy link
Contributor Author

sandrask commented Oct 8, 2019

Even though it is mentioned in the paragraph above the reference implementation (dotnet and python) are not signing did doc. I suggest to park this issue for now.

@llorllale
Copy link
Contributor

Even though it is mentioned in the paragraph above the reference implementation (dotnet and python) are not signing did doc. I suggest to park this issue for now.

Neither is the protocol test suite. I also think we're safe by parking this one.

@llorllale
Copy link
Contributor

Interesting summary of pros and cons for removing metadata from DDOs in general: w3c/did-core#65

@sandrask
Copy link
Contributor Author

Closing issue, will reopen in case we need it.

@sandrask sandrask closed this Oct 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
paused question Further information is requested
Development

Successfully merging this pull request may close these issues.

Sign DID Document during creation
4 participants