Package org.bitcoinj.signers
Class TransactionSigner.ProposedTransaction
- java.lang.Object
-
- org.bitcoinj.signers.TransactionSigner.ProposedTransaction
-
- Enclosing interface:
- TransactionSigner
public static class TransactionSigner.ProposedTransaction extends java.lang.Object
This class wraps transaction proposed to complete keeping a metadata that may be updated, used and effectively shared by transaction signers.
-
-
Field Summary
Fields Modifier and Type Field Description java.util.Map<Script,java.util.List<ChildNumber>>
keyPaths
HD key paths used for each input to derive a signing key.Transaction
partialTx
-
Constructor Summary
Constructors Constructor Description ProposedTransaction(Transaction partialTx)
-
-
-
Field Detail
-
partialTx
public final Transaction partialTx
-
keyPaths
public final java.util.Map<Script,java.util.List<ChildNumber>> keyPaths
HD key paths used for each input to derive a signing key. It's useful for multisig inputs only. The keys used to create a single P2SH address have the same derivation path, so to use a correct key each signer has to know a derivation path of signing keys used by previous signers. For each input signers will use the same derivation path and we need to store only one key path per input. As TransactionInput is mutable, inputs are identified by their scriptPubKeys (keys in this map).
-
-
Constructor Detail
-
ProposedTransaction
public ProposedTransaction(Transaction partialTx)
-
-