Interface TransactionVerifier

All Known Subinterfaces:
SignatureService<PK>
All Known Implementing Classes:
AbstractSignatureService, AbstractTransactionVerifier, BcDerivedKeySignatureService, BcSignatureService

public interface TransactionVerifier
Defines how to verify an XRPL transaction using public key material supplied by the caller.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T extends Transaction>
    boolean
    verify(Signer signer, T unsignedTransaction)
    Verify the supplied digital-signature to ensure that it was constructed using the private-key corresponding to signerPublicKey.
    default <T extends Transaction>
    boolean
    verifyMultiSigned(Set<Signer> signerSet, T unsignedTransaction)
    Verify that all signers have properly signed the unsignedTransaction.
    <T extends Transaction>
    boolean
    verifyMultiSigned(Set<Signer> signerSet, T unsignedTransaction, int minSigners)
    Verify that minSigners from the collection of public keys have supplied signatures for a given signed transaction.
  • Method Details

    • verify

      <T extends Transaction> boolean verify(Signer signer, T unsignedTransaction)
      Verify the supplied digital-signature to ensure that it was constructed using the private-key corresponding to signerPublicKey.
      Type Parameters:
      T - The actual type of Transaction.
      Parameters:
      signer - A Signer used for verification.
      unsignedTransaction - The Transaction of type TransactionVerifier that was signed.
      Returns:
      true if the signature is valid and verified; false otherwise.
    • verifyMultiSigned

      default <T extends Transaction> boolean verifyMultiSigned(Set<Signer> signerSet, T unsignedTransaction)
      Verify that all signers have properly signed the unsignedTransaction.
      Type Parameters:
      T - The actual type of Transaction.
      Parameters:
      signerSet - A Set of Signer objects used for verification.
      unsignedTransaction - The Transaction of type TransactionVerifier that was signed.
      Returns:
      true if a minimum number of signatures are valid for the supplied transaction; false otherwise.
    • verifyMultiSigned

      <T extends Transaction> boolean verifyMultiSigned(Set<Signer> signerSet, T unsignedTransaction, int minSigners)
      Verify that minSigners from the collection of public keys have supplied signatures for a given signed transaction.
      Type Parameters:
      T - The actual type of Transaction.
      Parameters:
      signerSet - A Set of Signer objects used for verification.
      unsignedTransaction - The transaction of type TransactionVerifier that was signed.
      minSigners - The minimum number of signatures required to form a quorum.
      Returns:
      true if a minimum number of signatures are valid for the supplied transaction; false otherwise.