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