Module: Minter::Key
- Defined in:
- lib/minter/key.rb
Class Method Summary collapse
- .address_from_mnemonic(mnemonic) ⇒ Object
- .address_from_private_key(private_key) ⇒ Object
- .address_from_public_key(public_key) ⇒ Object
- .new_mnemonic ⇒ Object
- .private_key_from_mnemonic(mnemonic) ⇒ Object
- .public_key_from_private_key(private_key) ⇒ Object
Class Method Details
.address_from_mnemonic(mnemonic) ⇒ Object
17 18 19 |
# File 'lib/minter/key.rb', line 17 def self.address_from_mnemonic(mnemonic) Minter::WalletFfi.AddressFromMnemonic(mnemonic) end |
.address_from_private_key(private_key) ⇒ Object
21 22 23 |
# File 'lib/minter/key.rb', line 21 def self.address_from_private_key(private_key) Minter::WalletFfi.AddressFromPrivateKey(private_key) end |
.address_from_public_key(public_key) ⇒ Object
25 26 27 |
# File 'lib/minter/key.rb', line 25 def self.address_from_public_key(public_key) Minter::WalletFfi.AddressFromPublicKey(public_key) end |
.new_mnemonic ⇒ Object
5 6 7 |
# File 'lib/minter/key.rb', line 5 def self.new_mnemonic Minter::WalletFfi.NewMnemonic end |