Sha256: e4d34090126ec6b1bf84883bb6511e20e67555a01b343d61d84ddfc430248893
Contents?: true
Size: 403 Bytes
Versions: 6
Compression:
Stored size: 403 Bytes
Contents
class Bitcoin::Protocol::ScriptWitness # witness stack attr_reader :stack def initialize @stack = [] end def empty? stack.empty? end # output script in raw binary format def to_payload payload = Bitcoin::Protocol.pack_var_int(stack.size) stack.each{|e| payload << Bitcoin::Protocol.pack_var_int(e.htb.bytesize) payload << e.htb } payload end end
Version data entries
6 entries across 6 versions & 1 rubygems