Module: Bitcoin::BinaryExtensions
- Included in:
- String
- Defined in:
- lib/bitcoin.rb
Instance Method Summary collapse
Instance Method Details
#htb ⇒ Object
370 |
# File 'lib/bitcoin.rb', line 370 def htb; [self].pack("H*"); end |
#htb_reverse ⇒ Object
371 |
# File 'lib/bitcoin.rb', line 371 def htb_reverse; htb.reverse; end |
#hth ⇒ Object
368 |
# File 'lib/bitcoin.rb', line 368 def hth; unpack("H*")[0]; end |
#reverse_hth ⇒ Object
369 |
# File 'lib/bitcoin.rb', line 369 def reverse_hth; reverse.hth; end |