Closed Patrik-Stas closed 8 months ago
Attention: Patch coverage is 0%
with 205 lines
in your changes are missing coverage. Please review.
Project coverage is 0.05%. Comparing base (
8715b95
) to head (4923069
). Report is 2 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Implement
did:peer:4
( see https://identity.foundation/peer-did-method-spec/#method-4-short-form-and-long-form ) asPeerDid<Numalgo4>
APIs:
DidPeer4EncodedDocument
DidPeer4EncodedDocumentBuilder
. TheDidPeer4EncodedDocument
is a structure very similar to Did Document, but with small differences. It's a structure which according to spec, you start with in order to construct newdid:peer:4
. The differences of this structure, in comparison to standard W3C Did Document are specified here: https://identity.foundation/peer-did-method-spec/#creating-a-didPeerDid<Numalgo4>::new(encoded_document: DidPeer4EncodedDocument) - Result<Self, DidPeerError>
DidPeer4EncodedDocument
(see previous point) this function turns it into PeerDid structure.PeerDid<Numalgo4>::long_form(&self) -> Result<Did, DidPeerError>
PeerDid<Numalgo4>::short_form(&self) -> Result<Did, DidPeerError>
PeerDid<Numalgo4>::hash(&self) -> Result<String, DidPeerError>
PeerDid<Numalgo4>::resolve_did_doc(&self) -> Result<DidDocument, DidPeerError>