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
Name | Type | Description |
---|---|---|
publicKey | Uint8Array | The public key for the address. |
Methods
toAddress
▸ toAddress(): Uint8Array
Convert the public key to an address.
Returns
Uint8Array
The address.
Implementation of
verify
▸ verify(address
): boolean
Use the public key to validate the address.
Parameters
Name | Type | Description |
---|---|---|
address | Uint8Array | The address to verify. |
Returns
boolean
True if the data and address is verified.