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


publicKeyB64

Get Signature

get publicKeyB64(): string

Get the public key in base64 string

Returns

string

Methods

create()

static create(): Promise<EncryptionKey>

Create a new Ed25519 private key and public key pair

Returns

Promise<EncryptionKey>