public class TransactionWitness
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static TransactionWitness |
EMPTY |
Constructor and Description |
---|
TransactionWitness(int pushCount) |
Modifier and Type | Method and Description |
---|---|
protected void |
bitcoinSerializeToStream(java.io.OutputStream stream) |
boolean |
equals(java.lang.Object o) |
byte[] |
getPush(int i) |
int |
getPushCount() |
int |
hashCode() |
static TransactionWitness |
redeemP2WPKH(TransactionSignature signature,
ECKey pubKey)
Creates the stack pushes necessary to redeem a P2WPKH output.
|
static TransactionWitness |
redeemP2WSH(Script witnessScript,
TransactionSignature... signatures)
Creates the stack pushes necessary to redeem a P2WSH output.
|
void |
setPush(int i,
byte[] value) |
java.lang.String |
toString() |
public static final TransactionWitness EMPTY
public static TransactionWitness redeemP2WPKH(@Nullable TransactionSignature signature, ECKey pubKey)
public static TransactionWitness redeemP2WSH(Script witnessScript, TransactionSignature... signatures)
public byte[] getPush(int i)
public int getPushCount()
public void setPush(int i, byte[] value)
protected void bitcoinSerializeToStream(java.io.OutputStream stream) throws java.io.IOException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object