Sha256: 40f1141c3482b3a731fa24e8952a4e2ef030b59c6d331753ff09af0ffa7ad8df
Contents?: true
Size: 406 Bytes
Versions: 6
Compression:
Stored size: 406 Bytes
Contents
module MoneyTree class Address attr_reader :private_key, :public_key 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 def to_s(network: :bitcoin) public_key.to_s(network: network) end end end
Version data entries
6 entries across 6 versions & 3 rubygems