Class TransactionWitness


  • public class TransactionWitness
    extends java.lang.Object
    • Constructor Detail

      • TransactionWitness

        public TransactionWitness​(int pushCount)
    • Method Detail

      • 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.
      • getPush

        public byte[] getPush​(int i)
      • getPushCount

        public int getPushCount()
      • setPush

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

        protected int getMessageSize()
      • bitcoinSerializeToStream

        protected void bitcoinSerializeToStream​(java.io.OutputStream stream)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • toString

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

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object