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
Name | Type | Description |
---|---|---|
ed25519PrivateKey | Uint8Array | The 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
Name | Type | Description |
---|---|---|
ed25519PublicKey | Uint8Array | The ed25519 public key to convert. |
Returns
Uint8Array
The x25519 public key.
Constructors
constructor
• new X25519()