Package org.xrpl.xrpl4j.crypto.signing
Interface TransactionSigner
- All Known Subinterfaces:
SignatureService
- All Known Implementing Classes:
AbstractSignatureService
Deprecated.
Defines how to sign an XRPL transaction using private key material supplied by the caller.
-
Method Summary
Modifier and TypeMethodDescription<T extends Transaction>
SignedTransaction<T>sign
(KeyMetadata keyMetadata, T transaction) Deprecated.Obtain a signature for the supplied transaction using the private-key that corresponds tokeyMetadata
.signWithBehavior
(KeyMetadata keyMetadata, Transaction transaction, SigningBehavior behavior) Deprecated.Obtain a signature according to thebehavior
specified for the supplied transaction using the private-key that corresponds tokeyMetadata
.
-
Method Details
-
sign
Deprecated.Obtain a signature for the supplied transaction using the private-key that corresponds tokeyMetadata
. If an implementation does not contain more than a single public/private key pair, thenKeyMetadata.EMPTY
should be passed into this method.- Type Parameters:
T
- The type of the transaction to be signed.- Parameters:
keyMetadata
- AKeyMetadata
that describes the public/private Keypair to use for signing operations.transaction
- ATransaction
to sign.- Returns:
- A
SignedTransaction
containing binary data that can be submitted to the XRP Ledger in order to effect a transaction.
-
signWithBehavior
Signature signWithBehavior(KeyMetadata keyMetadata, Transaction transaction, SigningBehavior behavior) Deprecated.Obtain a signature according to thebehavior
specified for the supplied transaction using the private-key that corresponds tokeyMetadata
. This method can be used to sign a multi-signed transaction by passing inSigningBehavior.MULTI
.If an implementation does not contain more than a single public/private key pair, then
KeyMetadata.EMPTY
should be passed into this method.- Parameters:
keyMetadata
- AKeyMetadata
that describes the public/private Keypair to use for signing operations.transaction
- ATransaction
to sign.behavior
- ASigningBehavior
specifying the type of signature that should be produced.- Returns:
- A
Signature
containing the transaction signature.
-
org.xrpl.xrpl4j.crypto.core
instead.