Package org.consensusj.bitcoinj.signing
Interface Utxo
- All Known Implementing Classes:
TransactionInputDataUtxo
,Utxo.Basic
,Utxo.Complete
,Utxo.Signable
public interface Utxo
UTXO info for transaction signing. Immutable and all fields non-nullable.
Non-segwit can be signed without amount, but we're focusing on modern Bitcoin, so
we're going to simplify things by making Utxo.Signable
mandatory in many methods.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Bare minimum UTXO info: txId and indexstatic class
UTXO withamount
andscriptPubKey
.static class
UTXO with "amount" which is necessary for signing a segwit transaction. -
Method Summary
Modifier and TypeMethodDescriptionint
index()
static Utxo.Basic
of
(org.bitcoinj.base.Sha256Hash txId, int index) static Utxo.Signable
of
(org.bitcoinj.base.Sha256Hash txId, int index, org.bitcoinj.base.Coin amount) static Utxo.Complete
of
(org.bitcoinj.base.Sha256Hash txId, int index, org.bitcoinj.base.Coin amount, org.bitcoinj.script.Script scriptPubKey) static Utxo
of
(org.bitcoinj.core.TransactionOutPoint outPoint) org.bitcoinj.base.Sha256Hash
txId()
-
Method Details
-
txId
org.bitcoinj.base.Sha256Hash txId() -
index
int index() -
of
-
of
static Utxo.Signable of(org.bitcoinj.base.Sha256Hash txId, int index, org.bitcoinj.base.Coin amount) -
of
static Utxo.Complete of(org.bitcoinj.base.Sha256Hash txId, int index, org.bitcoinj.base.Coin amount, org.bitcoinj.script.Script scriptPubKey) -
of
-