Interface DelegatedTransactionSigner
- All Superinterfaces:
DelegatedPublicKeyProvider
- All Known Subinterfaces:
DelegatedSignatureService
- All Known Implementing Classes:
AbstractDelegatedSignatureService
,AbstractDelegatedTransactionSigner
Defines how to sign XRPL transactions and claims using private key material that is not accessible to the JVM running
implementations of this interface. For example, an implementation might make a call to an HSM that never exposes
private-key material. Alternatively, an implementation may use key meta-data to lookup key material in some custom
manner (e.g., by deriving it from a secret value).
-
Method Summary
Modifier and TypeMethodDescription<T extends Transaction>
SignaturemultiSign
(KeyMetadata keyMetadata, T transaction) Obtain a multi-sig signature for the supplied transaction usingkeyMetadata
.sign
(KeyMetadata keyMetadata, UnsignedClaim unsignedClaim) Obtain a signature for the supplied unsigned payment channel claim using the private-key that corresponds tokeyMetadata
.<T extends Transaction>
SingleSingedTransaction<T>sign
(KeyMetadata keyMetadata, T transaction) Obtain a signature for the supplied transaction using the private-key that corresponds tokeyMetadata
.Methods inherited from interface org.xrpl.xrpl4j.crypto.core.signing.DelegatedPublicKeyProvider
getPublicKey
-
Method Details
-
sign
Obtain a signature for the supplied transaction using the private-key that corresponds tokeyMetadata
.- 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
- TheTransaction
to sign.- Returns:
- A
SingleSingedTransaction
containing binary data that can be submitted to the XRP Ledger in order to effect a transaction.
-
sign
Obtain a signature for the supplied unsigned payment channel claim using the private-key that corresponds tokeyMetadata
.- Parameters:
keyMetadata
- AKeyMetadata
that describes the public/private Keypair to use for signing operations.unsignedClaim
- TheUnsignedClaim
to sign.- Returns:
- A
SingleSingedTransaction
containing binary data that can be submitted to the XRP Ledger in order to effect a transaction.
-
multiSign
Obtain a multi-sig signature for the supplied transaction usingkeyMetadata
.- Type Parameters:
T
- The typeTransaction
to be signed.- Parameters:
keyMetadata
- AKeyMetadata
that refers to a private key that can be used to signtransaction
.transaction
- TheTransaction
to sign.- Returns:
- A
SingleSingedTransaction
of typeDelegatedTransactionSigner
containing everything related to a signed transaction.
-