Class TransactionWitness

java.lang.Object
org.bitcoinj.core.TransactionWitness

public class TransactionWitness extends Object
  • Field Details

  • Constructor Details

    • TransactionWitness

      public TransactionWitness(int pushCount)
  • Method Details

    • redeemP2WPKH

      public static TransactionWitness redeemP2WPKH(@Nullable TransactionSignature signature, ECKey pubKey)
      Creates the stack pushes necessary to redeem a P2WPKH output. If given signature is null, an empty push will be used as a placeholder.
    • redeemP2WSH

      public static TransactionWitness redeemP2WSH(Script witnessScript, TransactionSignature... signatures)
      Creates the stack pushes necessary to redeem a P2WSH output.
    • getPush

      public byte[] getPush(int i)
    • getPushCount

      public int getPushCount()
    • setPush

      public void setPush(int i, byte[] value)
    • bitcoinSerializeToStream

      protected void bitcoinSerializeToStream(OutputStream stream) throws IOException
      Throws:
      IOException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object