Skip to main content

EncryptionKey

Constructors

new EncryptionKey()

protected new EncryptionKey(privateKeyB64, publicKeyB64): EncryptionKey

Create a new EncryptionKey object

Parameters

privateKeyB64

string

publicKeyB64

string

Returns

EncryptionKey

Accessors

privateKeyB64

Get Signature

get privateKeyB64(): string

Get the private key in base64 string

Returns

string


privateKeyHex

Get Signature

get privateKeyHex(): string

Get the private key in hex string

Returns

string


publicKeyB64

Get Signature

get publicKeyB64(): string

Gets the encryption public key in base64 format.

Returns

string

The base64 encoded an encryption public key.


publicKeyHex

Get Signature

get publicKeyHex(): string

Gets the encryption public key in hex format.

Returns

string

The hex encoded an encryption public key.

Methods

create()

static create(): Promise<EncryptionKey>

Create a new Ed25519 private key and public key pair

Returns

Promise<EncryptionKey>