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.

Implements

Constructors

Properties

accountAddress: AccountAddress

Account address associated with the account

privateKey: Ed25519PrivateKey

Private key associated with the account

publicKey: Ed25519PublicKey

Public key associated with the account

signingScheme: Ed25519 = SigningScheme.Ed25519

Signing scheme used to sign transactions

Methods

  • Sign the given message using the account's Ed25519 private key.

    Parameters

    Returns Ed25519Signature

    Signature

  • Sign the given transaction using the available signing capabilities.

    Parameters

    Returns Ed25519Signature

    Signature

  • Sign a message using the account's Ed25519 private key.

    Parameters

    • message: HexInput

      the signing message, as binary input

    Returns AccountAuthenticatorEd25519

    the AccountAuthenticator containing the signature, together with the account's public key

  • Verify the given message and signature with the public key.

    Returns boolean

  • Derives a signer from a randomly generated private key

    Returns Ed25519Account