PrismDIDPublicKey

constructor(apollo: Apollo, id: String, usage: PrismDIDPublicKey.Usage, keyData: PublicKey)(source)

Represents a PrismDIDPublicKey.

Parameters

apollo

The cryptography suite representation.

id

The ID of the public key.

usage

The usage of the public key.

keyData

The actual public key data.


constructor(apollo: Apollo, proto: PublicKey)(source)

Constructs a PrismDIDPublicKey object.

Parameters

apollo

The Apollo object used for cryptographic operations in the Atala PRISM.

proto

The protobuf representation of the public key.

Throws

if the encoding of the key is invalid.