Skip to main content

Class: X25519

Implementation of X25519.

Table of contents

Methods

Constructors

Methods

convertPrivateKeyToX25519

Static convertPrivateKeyToX25519(ed25519PrivateKey): Uint8Array

Convert Ed25519 private key to X25519 private key.

Parameters

NameTypeDescription
ed25519PrivateKeyUint8ArrayThe ed25519 private key to convert.

Returns

Uint8Array

The x25519 private key.


convertPublicKeyToX25519

Static convertPublicKeyToX25519(ed25519PublicKey): Uint8Array

Convert Ed25519 public key to X25519 public key.

Parameters

NameTypeDescription
ed25519PublicKeyUint8ArrayThe ed25519 public key to convert.

Returns

Uint8Array

The x25519 public key.

Constructors

constructor

new X25519()