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

Implementation of did:peer:2 DID method #883

Merged
merged 3 commits into from
Jun 26, 2023
Merged

Implementation of did:peer:2 DID method #883

merged 3 commits into from
Jun 26, 2023

Conversation

mirgee
Copy link
Contributor

@mirgee mirgee commented Jun 21, 2023

Implementation of did:peer method 2:

  • construction of did:peer:2 peer DID based on a DID document
  • construction of DID document based on did:peer:2 peer DID.

The main non-functional requirement is maximal interoperability with the already existing implementations in other Aries frameworks.

@mirgee mirgee force-pushed the feature/did-peer branch 10 times, most recently from 0cb1eae to 2de180f Compare June 21, 2023 13:49
@swcurran
Copy link
Member

FYI @Jsyro .

@mirgee mirgee force-pushed the feature/did-peer branch 12 times, most recently from 91dd534 to 71f3055 Compare June 22, 2023 11:46
@mirgee mirgee marked this pull request as ready for review June 22, 2023 11:46
@mirgee mirgee force-pushed the feature/did-peer branch 3 times, most recently from bc73803 to bc5fa24 Compare June 22, 2023 12:05
@mirgee mirgee force-pushed the feature/did-peer branch 7 times, most recently from ac1d7dc to 636d362 Compare June 22, 2023 14:09
@swcurran
Copy link
Member

FYI — We just did a quick clarification to the DID Peer Spec. to clarify that the padding characters of the Base64URL encoding of the service item MUST have the padding characters removed. The padding characters (“=“) are not permitted in a DID, per the peer DID spec.

@mirgee mirgee force-pushed the feature/did-peer branch 2 times, most recently from 4936275 to 3c9d5a8 Compare June 23, 2023 09:08
@codecov-commenter
Copy link

codecov-commenter commented Jun 23, 2023

Codecov Report

Merging #883 (17181c0) into main (4d89351) will decrease coverage by 41.47%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #883       +/-   ##
==========================================
- Coverage   49.90%   8.43%   -41.47%     
==========================================
  Files         432     410       -22     
  Lines       35058   33546     -1512     
  Branches     7613    7218      -395     
==========================================
- Hits        17496    2830    -14666     
- Misses      12285   29915    +17630     
+ Partials     5277     801     -4476     
Flag Coverage Δ
unittests-aries-vcx 8.43% <ø> (-41.44%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 323 files with indirect coverage changes

Signed-off-by: Miroslav Kovar <miroslav.kovar@absa.africa>
@mirgee mirgee force-pushed the feature/did-peer branch from 3c9d5a8 to f8ceeaa Compare June 23, 2023 09:33
did_peer/src/key/key_type.rs Outdated Show resolved Hide resolved
did_doc_sov/src/extra_fields/didcommv2.rs Outdated Show resolved Hide resolved
did_parser/src/did_url.rs Show resolved Hide resolved

impl Key {
pub fn new(key: Vec<u8>, key_type: SupportedKeyType) -> Result<Self, DidPeerError> {
// If the key is a multibase key coming from a verification method, for some reason it is also
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

todo for myself: review this

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a point of confusion for me as well, so it will be good to have another pair of eyes (with a brain attached) taking a look at it. 👍

did_peer/src/numalgos/numalgo2/service_abbreviated.rs Outdated Show resolved Hide resolved
did_doc_sov/src/extra_fields/didcommv1.rs Outdated Show resolved Hide resolved
did_doc_sov/src/extra_fields/didcommv1.rs Outdated Show resolved Hide resolved
did_doc_sov/src/extra_fields/didcommv2.rs Outdated Show resolved Hide resolved
did_doc_sov/src/extra_fields/didcommv2.rs Outdated Show resolved Hide resolved
did_parser/src/did.rs Show resolved Hide resolved
did_peer/src/numalgos/numalgo2/resolve/helpers.rs Outdated Show resolved Hide resolved
did_peer/src/peer_did/numalgo.rs Outdated Show resolved Hide resolved
did_peer/src/peer_did/transform.rs Show resolved Hide resolved
did_resolver/src/traits/resolvable/mod.rs Outdated Show resolved Hide resolved
Signed-off-by: Miroslav Kovar <miroslav.kovar@absa.africa>
@mirgee mirgee force-pushed the feature/did-peer branch from 54c0cab to 902daf3 Compare June 26, 2023 07:57
@mirgee mirgee requested review from Patrik-Stas and bobozaur June 26, 2023 08:06
Patrik-Stas
Patrik-Stas previously approved these changes Jun 26, 2023
bobozaur
bobozaur previously approved these changes Jun 26, 2023
Signed-off-by: Miroslav Kovar <miroslav.kovar@absa.africa>
@mirgee mirgee dismissed stale reviews from bobozaur and Patrik-Stas via 17181c0 June 26, 2023 13:43
@mirgee mirgee requested a review from Patrik-Stas June 26, 2023 13:58
@Patrik-Stas Patrik-Stas merged commit 52a1e43 into main Jun 26, 2023
@Patrik-Stas Patrik-Stas deleted the feature/did-peer branch June 26, 2023 15:51
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

Successfully merging this pull request may close these issues.

5 participants