Skip to content

Commit

Permalink
add models
Browse files Browse the repository at this point in the history
Signed-off-by: PatStLouis <[email protected]>
  • Loading branch information
PatStLouis committed Sep 27, 2024
1 parent a11f848 commit 1a7e821
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions aries_cloudagent/vc/data_integrity/cryptosuites/eddsa_jcs_2022.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,24 +142,6 @@ def _canonicalize(self, data: dict):
"""Json canonicalization."""
return canonicaljson.encode_canonical_json(data)

async def _resolve_multikey(self, kid: str):
"""Derive a multikey from the verification method."""
resolver = self.session.inject(DIDResolver)
verification_method = await resolver.dereference(
profile=self.session.profile, did_url=kid
)

if verification_method.type == "Ed25519VerificationKey2018":
multikey = verkey_to_multikey(verification_method.public_key_base58)

else:
assert (
verification_method.type == "Multikey"
), "Expecting Multikey verification method type"
multikey = verification_method.public_key_multibase

return multikey

async def verify_proof(self, secured_document: dict):
"""Verify proof algorithm.
Expand Down

0 comments on commit 1a7e821

Please sign in to comment.