class PublicSecp256r1

Public Secp256r1 key.

Constructors

new
PublicSecp256r1()

Properties

readonly
controller: DID

Get the verification method controller.

readonly
id: DIDURL

Get the verification method identifier.

Methods

free(): void
toJSON(): object

Serialize the current public key as a verification method object.

Get the JWK value (without the private key) of the Secp256r1 key within the current keypair.

Static Methods

encryptAES(
payload: Uint8Array,
recipients: PublicSecp256r1[],
): JWE

Encrypt the provided payload for the provided recipient array using A256GCM algorithm.

encryptChaCha20(
payload: Uint8Array,
recipients: PublicSecp256r1[],
): JWE

Encrypt the provided payload for the provided recipient array using XC20P algorithm.