Public X25519 key.
readonly
controller: DID
Get the verification method controller.
__getClassname(): string
free(): void
toJSON(): object
Serialize the current public key as a verification method object.
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.