Package org.xrpl.xrpl4j.crypto.signing
Interface TransactionVerifier
- All Known Subinterfaces:
SignatureService
- All Known Implementing Classes:
AbstractSignatureService
public interface TransactionVerifier
Defines how to verify an XRPL transaction.
-
Method Summary
Modifier and TypeMethodDescription<T extends Transaction>
booleanverify
(KeyMetadata keyMetadata, SignedTransaction<T> transactionWithSignature) TransactionVerifier the supplied digital-signature to ensure that it was constructed using the private-key corresponding topublicKey
.
-
Method Details
-
verify
<T extends Transaction> boolean verify(KeyMetadata keyMetadata, SignedTransaction<T> transactionWithSignature) TransactionVerifier the supplied digital-signature to ensure that it was constructed using the private-key corresponding topublicKey
.- Type Parameters:
T
- The actual type ofTransaction
.- Parameters:
keyMetadata
- AKeyMetadata
that describes the public/private Keypair to use for verification.transactionWithSignature
- ASignedTransaction
with aSignature
over a suppliedTransaction
.- Returns:
true
if the signature is valid and verified;false
otherwise.
-