Interface TransactionSignatureService
-
- All Implemented Interfaces:
-
net.corda.v5.ledger.common.transaction.TransactionSignatureVerificationService
@DoNotImplement() public interface TransactionSignatureService implements TransactionSignatureVerificationService
TransactionSignatureService can be used to sign and verify transaction signatures. It supports both single and batch signatures. It can be used only in flows.
-
-
Method Summary
Modifier and Type Method Description abstract List<DigitalSignatureAndMetadata>
sign(@NotNull() TransactionWithMetadata transaction, @NotNull() Iterable<PublicKey> publicKeys)
Signs a transaction ID with all the available keys. abstract List<List<DigitalSignatureAndMetadata>>
signBatch(@NotNull() List<TransactionWithMetadata> transactions, @NotNull() Iterable<PublicKey> publicKeys)
Signs a list of transactions with each the available keys. -
-
Method Detail
-
sign
@Suspendable()@NotNull() abstract List<DigitalSignatureAndMetadata> sign(@NotNull() TransactionWithMetadata transaction, @NotNull() Iterable<PublicKey> publicKeys)
Signs a transaction ID with all the available keys.
- Parameters:
transaction
- The transaction to be signed.publicKeys
- Public keys that correspond to the private keys which should be attempted to sign with.
-
signBatch
@Suspendable()@NotNull() abstract List<List<DigitalSignatureAndMetadata>> signBatch(@NotNull() List<TransactionWithMetadata> transactions, @NotNull() Iterable<PublicKey> publicKeys)
Signs a list of transactions with each the available keys. It creates one batch signature for each available keys. Then returns the signatures for each transaction with a MerkleProof to prove that they are included in the batch.
- Parameters:
transactions
- The transactions to be signed.publicKeys
- Public keys that correspond to the private keys which should be attempted to sign with.
-
-
-
-