class MoneyTree::Key

Constants

GROUP_NAME
ORDER

Attributes

ec_key[RW]
key[R]
options[R]
raw_key[R]

Public Instance Methods

to_bytes() click to toggle source
# File lib/money-tree/key.rb, line 28
def to_bytes
  hex_to_bytes to_hex
end
to_i() click to toggle source
# File lib/money-tree/key.rb, line 32
def to_i
  bytes_to_int to_bytes
end
valid?(eckey = nil) click to toggle source
# File lib/money-tree/key.rb, line 23
def valid?(eckey = nil)
  eckey ||= ec_key
  eckey.nil? ? false : eckey.check_key
end