Skip to main content

Class: Ed25519Address

Class to help with Ed25519 Signature scheme.

Implements

Table of contents

Constructors

Methods

Constructors

constructor

new Ed25519Address(publicKey)

Create a new instance of Ed25519Address.

Parameters

NameTypeDescription
publicKeyUint8ArrayThe public key for the address.

Methods

toAddress

toAddress(): Uint8Array

Convert the public key to an address.

Returns

Uint8Array

The address.

Implementation of

IAddress.toAddress


verify

verify(address): boolean

Use the public key to validate the address.

Parameters

NameTypeDescription
addressUint8ArrayThe address to verify.

Returns

boolean

True if the data and address is verified.

Implementation of

IAddress.verify