Interface Signer

All Superinterfaces:
SignedTransactionRequest.Signer

public interface Signer extends SignedTransactionRequest.Signer
An object that provides the signature of a request.
  • Method Details

    • with

      static Signer with(io.hotmoka.crypto.api.SignatureAlgorithm<SignedTransactionRequest> signature, KeyPair keys)
      Yields a signer for the given algorithm with the given key pair.
      Parameters:
      signature - the signing algorithm
      keys - the key pair
      Returns:
      the signer
    • with

      static Signer with(io.hotmoka.crypto.api.SignatureAlgorithm<SignedTransactionRequest> signature, PrivateKey key)
      Yields a signer for the given algorithm with the given private key.
      Parameters:
      signature - the signing algorithm
      key - the private key
      Returns:
      the signer