Secp256k1Account
This file defines the Secp256k1Account class, which extends the Account abstract class and provides specific implementations for the Ed25519 signature scheme.
The Secp256k1Account 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 newSecp256k1Accountusing a randomly generated mnemonic phrase and seed.