aries_cloudagent.did package
Submodules
aries_cloudagent.did.did_key module
DID Key class and resolver methods.
- class aries_cloudagent.did.did_key.DIDKey(public_key: bytes, key_type: KeyType)[source]
Bases:
object
DID Key parser and resolver.
- classmethod from_did(did: str) DIDKey [source]
Initialize a new DIDKey instance from a fully qualified did:key string.
Extracts the fingerprint from the did:key and uses that to constrcut the did:key.
- classmethod from_fingerprint(fingerprint: str, key_types=None) DIDKey [source]
Initialize new DIDKey instance from multibase encoded fingerprint.
The fingerprint contains both the public key and key type.
- classmethod from_public_key(public_key: bytes, key_type: KeyType) DIDKey [source]
Initialize new DIDKey instance from public key and key type.
- aries_cloudagent.did.did_key.construct_did_key_bls12381g1(did_key: DIDKey) dict [source]
Construct BLS12381G1 did:key.
- aries_cloudagent.did.did_key.construct_did_key_bls12381g1g2(did_key: DIDKey) dict [source]
Construct BLS12381G1G2 did:key.
- aries_cloudagent.did.did_key.construct_did_key_bls12381g2(did_key: DIDKey) dict [source]
Construct BLS12381G2 did:key.
- aries_cloudagent.did.did_key.construct_did_key_ed25519(did_key: DIDKey) dict [source]
Construct Ed25519 did:key.