Ed25519Account
This file defines the Ed25519Account
class, which extends the Account
abstract class and provides specific implementations for the Ed25519 signature scheme.
The Ed25519Account
class has the following properties:
privateKey
: The private key of the account.mnemonic
: A string representing the mnemonic phrase associated with the account.publicKey
: The public key of the account, derived from the private key.address
: The account address, derived from the public key and the signature scheme.scheme
: The signature scheme used by the account, which is Ed25519.
The class provides the following methods:
toString()
: Returns a string representation of the account, including the mnemonic and address.
The companion object provides the following methods:
generate()
: Generates a newEd25519Account
using a randomly generated mnemonic phrase and seed.