Class: Sibit::TxBuilder::Built::Payload

Inherits:
Object
  • Object
show all
Defined in:
lib/sibit/txbuilder.rb

Overview

Wrapper for payload with hex conversion.

Author

Yegor Bugayenko (yegor256@gmail.com)

Copyright

Copyright (c) 2019-2026 Yegor Bugayenko

License

MIT

Instance Method Summary collapse

Constructor Details

#initialize(bytes) ⇒ Payload

Returns a new instance of Payload.



139
140
141
# File 'lib/sibit/txbuilder.rb', line 139

def initialize(bytes)
  @bytes = bytes
end

Instance Method Details

#bthObject



143
144
145
# File 'lib/sibit/txbuilder.rb', line 143

def bth
  @bytes.unpack1('H*')
end