Class: String

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

Instance Method Summary collapse

Instance Method Details

#btiInteger

Convert binary to integer.

Returns:



116
117
118
# File 'lib/schnorr.rb', line 116

def bti
  self.unpack1('H*').to_i(16)
end