Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

evanrolfe/monero_wallet_gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Monero Wallet Generator

Lets you generate an offline monero wallet which can receive crypto currency.

Installation

Install the gem:

gem install monero_wallet_gen

And require it from your ruby file:

require 'monero_wallet_gen'

Usage

Generate a wallet from a private key

priv_key = '0000000000000000000000000000000000000000000000000000000000000000'
MoneroWalletGen::generate_from_private_key(priv_key)
# =>
{
  priv_spend_key: "0000000000000000000000000000000000000000000000000000000000000000",
  pub_spend_key: "0100000000000000000000000000000000000000000000000000000000000000",
  priv_view_key: "9b1529acb638f497d05677d7505d354b4ba6bc95484008f6362f93160ef3e503",
  pub_view_key: "23f1e4bd6597b5e5b8f8716f5d5c06e2ad85081da71f5e0ba6d5b4ed92b57566",
  address: "41fJjQDhryD11111111111111111111111111111111112N1GuTZeagfRbbKcALdcZev4QXGGuoLh2x36LhaxLSxCc2YDhi",
  mnemonic: "abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey"
}

Generate a testnet wallet from a private key

priv_key = '0000000000000000000000000000000000000000000000000000000000000000'
MoneroWalletGen::generate_from_private_key(priv_key, testnet: true)
# =>
{
  priv_spend_key: "0000000000000000000000000000000000000000000000000000000000000000",
  pub_spend_key: "0100000000000000000000000000000000000000000000000000000000000000",
  priv_view_key: "9b1529acb638f497d05677d7505d354b4ba6bc95484008f6362f93160ef3e503",
  pub_view_key: "23f1e4bd6597b5e5b8f8716f5d5c06e2ad85081da71f5e0ba6d5b4ed92b57566",
  address: "9sCrDesy9LK11111111111111111111111111111111112N1GuTZeagfRbbKcALdcZev4QXGGuoLh2x36LhaxLSxCZ3Viua",
  mnemonic: "abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey"
}

Generate a random wallet

MoneroWalletGen::generate
# =>
{
  priv_spend_key: "0000000000000000000000000000000000000000000000000000000000000000",
  pub_spend_key: "0100000000000000000000000000000000000000000000000000000000000000",
  priv_view_key: "9b1529acb638f497d05677d7505d354b4ba6bc95484008f6362f93160ef3e503",
  pub_view_key: "23f1e4bd6597b5e5b8f8716f5d5c06e2ad85081da71f5e0ba6d5b4ed92b57566",
  address: "41fJjQDhryD11111111111111111111111111111111112N1GuTZeagfRbbKcALdcZev4QXGGuoLh2x36LhaxLSxCc2YDhi",
  mnemonic: "abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey"
}

Generate a random testnet wallet

MoneroWalletGen::generate(testnet: true)
# =>
{
  priv_spend_key: "0000000000000000000000000000000000000000000000000000000000000000",
  pub_spend_key: "0100000000000000000000000000000000000000000000000000000000000000",
  priv_view_key: "9b1529acb638f497d05677d7505d354b4ba6bc95484008f6362f93160ef3e503",
  pub_view_key: "23f1e4bd6597b5e5b8f8716f5d5c06e2ad85081da71f5e0ba6d5b4ed92b57566",
  address: "9sCrDesy9LK11111111111111111111111111111111112N1GuTZeagfRbbKcALdcZev4QXGGuoLh2x36LhaxLSxCZ3Viua",
  mnemonic: "abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey abbey"
}

About

Monero Wallet Generator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published