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