class MoneyTree::Address
Attributes
private_key[R]
public_key[R]
Public Class Methods
new(opts = {})
click to toggle source
# File lib/money-tree/address.rb, line 5 def initialize(opts = {}) private_key = opts.delete(:private_key) @private_key = MoneyTree::PrivateKey.new({ key: private_key }.merge(opts)) @public_key = MoneyTree::PublicKey.new(@private_key, opts) end
Public Instance Methods
to_s(network: :bitcoin)
click to toggle source
# File lib/money-tree/address.rb, line 11 def to_s(network: :bitcoin) public_key.to_s(network: network) end