class PublicX25519

Public X25519 key.

Constructors

new
PublicX25519()

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 X25519 key within the current keypair.

Static Methods

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

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

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

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