class Minter::Wallet
Attributes
address[R]
mnemonic[R]
private_key[R]
public_key[R]
seed[R]
Public Class Methods
new(mnemonic = nil)
click to toggle source
# File lib/minter/wallet.rb, line 6 def initialize(mnemonic = nil) @mnemonic = mnemonic @mnemonic ||= Minter::WalletFfi.NewMnemonic @private_key = Minter::WalletFfi.PrivateKeyFromMnemonic(@mnemonic) @public_key = Minter::WalletFfi.PublicKeyFromPrivateKey(@private_key) @address = Minter::WalletFfi.AddressFromMnemonic(@mnemonic) end