Sha256: beb9f3dcf21365c8ba020248c6c5134b3033cb82f2b6953db3f107d2c8b78e0d

Contents?: true

Size: 380 Bytes

Versions: 6

Compression:

Stored size: 380 Bytes

Contents

class Bitcoin::Protocol::TxInWitness

  attr_reader :script_witness

  def initialize
    @script_witness = Bitcoin::Protocol::ScriptWitness.new
  end

  def add_stack(script)
    script_witness.stack << script
  end

  #  output witness script in raw binary format with witness
  def to_payload
    script_witness.to_payload
  end

  def stack
    script_witness.stack
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
openassets-ruby-0.6.1 lib/segwit/tx_in_witness.rb
openassets-ruby-0.6.0 lib/segwit/tx_in_witness.rb
openassets-ruby-0.5.9 lib/segwit/tx_in_witness.rb
openassets-ruby-0.5.8 lib/segwit/tx_in_witness.rb
openassets-ruby-0.5.7 lib/segwit/tx_in_witness.rb
openassets-ruby-0.5.6 lib/segwit/tx_in_witness.rb