Sha256: 4075fddeac33e0cfd1b2a9d57a67acb8b9d3a1dfb4d1637ea976ada021322780
Contents?: true
Size: 578 Bytes
Versions: 38
Compression:
Stored size: 578 Bytes
Contents
module Bitcoin module Message # filteradd message # https://bitcoin.org/en/developer-reference#filteradd class FilterAdd < Base COMMAND = 'filteradd' # element must be sent in the byte order they would use when appearing in a raw transaction; attr_accessor :element def initialize(element) @element = element end def self.parse_from_payload(payload) new(Bitcoin.unpack_var_string(payload).first.bth) end def to_payload Bitcoin.pack_var_string(element.htb) end end end end
Version data entries
38 entries across 38 versions & 1 rubygems