Module: Minter::Key

Defined in:
lib/minter/key.rb

Class Method Summary collapse

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_mnemonicObject



5
6
7
# File 'lib/minter/key.rb', line 5

def self.new_mnemonic
  Minter::WalletFfi.NewMnemonic
end

.private_key_from_mnemonic(mnemonic) ⇒ Object



9
10
11
# File 'lib/minter/key.rb', line 9

def self.private_key_from_mnemonic(mnemonic)
  Minter::WalletFfi.PrivateKeyFromMnemonic(mnemonic)
end

.public_key_from_private_key(private_key) ⇒ Object



13
14
15
# File 'lib/minter/key.rb', line 13

def self.public_key_from_private_key(private_key)
  Minter::WalletFfi.PublicKeyFromPrivateKey(private_key)
end