Sha256: 580a21bb81f4051636c7ec7a4de4f873ce51d8b0967ed63970145867c900aba6
Contents?: true
Size: 406 Bytes
Versions: 6
Compression:
Stored size: 406 Bytes
Contents
class Bitcoin::Protocol::TxWitness attr_reader :tx_in_wit def initialize @tx_in_wit = [] end # Add witness # @param[Bitcoin::Protocol::TxInWitness] tx_in_wit witness object def add_witness(tx_in_wit) (@tx_in_wit ||= []) << tx_in_wit end # output witness in raw binary format def to_payload payload = "" tx_in_wit.each{|w|payload << w.to_payload} payload end end
Version data entries
6 entries across 6 versions & 1 rubygems