Ed25519Account

class Ed25519Account(val privateKey: Ed25519PrivateKey, val address: AccountAddressInput? = null) : Account

Signer implementation for the Ed25519 authentication scheme. This extends an Ed25519Account by adding signing capabilities through an Ed25519PrivateKey.

Note: Generating a signer instance does not create the account on-chain.

Constructors

Link copied to clipboard
constructor(privateKey: Ed25519PrivateKey, address: AccountAddressInput? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val accountAddress: AccountAddress

Account address associated with the account

Link copied to clipboard
Link copied to clipboard
open override val isPrivateKeyCleared: Boolean

Whether all private key material owned by this account has been cleared.

Link copied to clipboard
Link copied to clipboard
open override val publicKey: Ed25519PublicKey

Public key associated with the account

Link copied to clipboard
open override val signingScheme: SigningScheme

Signing scheme used to sign transactions

Functions

Link copied to clipboard
open override fun clearPrivateKey()

Explicitly clear private key material owned by this account.

Link copied to clipboard
open override fun sign(message: HexInput): Signature

Sign the given message with the private key.

Link copied to clipboard
Link copied to clipboard

Sign a message using the available signing capabilities.

Link copied to clipboard
open override fun verifySignature(message: HexInput, signature: Signature): Boolean