Giter Site home page Giter Site logo

skaht / xmr Goto Github PK

View Code? Open in Web Editor NEW
16.0 4.0 5.0 19 KB

CLI to synthesize Monero keys and addresses from BIP 32/39/44 libbitcoin technology. Can also be used to create Monero brain wallets, and is compatible with BIP 38 technology. USE AT YOUR OWN RISK

C++ 94.11% C 5.89%

xmr's Introduction

The Makefile works on a Mac OSX platform. Tweaks might need to be made for a few compiler flags for your UNIX platform. A make scratch will download monero and boost packages, compile them, and build the six standalone commands below. The Makefile uses tcsh shell commands. Similarly, the BUILD-boost script called by the makefile builds the boost package used by Monero.

The list of package dependencies below is a work-in-progress and is not complete:

1) curl
2) ???

1% ./bytes_to_words -h

Usage: 
   ./bytes_to_words [ --help | -h ]
   ./bytes_to_words 64_digit_hexadecimal_number
   stdout | ./bytes_to_words

2% ./inverse_mnemonics -h

Usage: 
   ./inverse_mnemonics [ --help | -h ]
   ./inverse_mnemonics space_separated_list_of_25_Electrum_seed_words
   stdout | ./inverse_mnemonics

3% ./kec256 -h

Usage: 
   ./kec256 [ --help | -h ]
   ./kec256 64_digit_hexadecimal_number
   stdout | ./kec256

4% ./sc_reduce32 -h

Usage: 
   ./sc_reduce32 [ --help | -h ]
   ./sc_reduce32 64_digit_hexadecimal_number
   stdout | ./sc_reduce32

5% ./secret_key_to_public_key -h

Usage: 
   ./secret_key_to_public_key [ --help | -h ]
   ./secret_key_to_public_key 64_digit_hexadecimal_number
   stdout | ./secret_key_to_public_key

6% ./xmr -h

Usage: 
   ./xmr [ --help | -h ]
   ./xmr 64_digit_hexadecimal_number
   stdout | ./xmr

Examples:

% echo "explain olympic caught soccer ethics retire outdoor giant deposit legal quarter cupboard radar silent palm ecology scrap adapt install bone warm clog fantasy language" | bx mnemonic-to-seed | bx hd-new | bx hd-private -d -i 47 | bx hd-private -d -i 128 | bx hd-private -d -i 0 | bx hd-to-ec | ./xmr

    Seed                 : f9a0e73d3cd533368f75ff63cbd97b2100beffbc339cdfa5c203c1a022d9cf11
    Private Spend Key    : 0ccdf1e0217221deb8d807c1ecdf9c0c00beffbc339cdfa5c203c1a022d9cf01
    Private View Key     : f303de33534d6a9e46497cf177e12b7bdfaf1405b2a03b5a7074a74b0946a805
    Public Spend Key     : 2794fe656a521e21e4135aa13381b42cbeb180e653deda210f2039ca1009d110
    Public View Key      : d76344d2c5467758f0bcbf03925bc8bf4b659e163ec68c342c7ba94b9679a125
    Monero Address       : 4387BkqvmwB6fnVf4kwNUb8V5jJbQtWNV6XiSiSw1kXz3pPAy9ooZe6FsqKYLo4b19YzoCJQPxWdy9j9kStsRLLg5B8R4Ke
    Electrum Seed Words  : dehydrate opened lilac elapse subtly prying swept ruby liar veteran wife afloat strained camp tugs pager dual tomorrow aimless boxes saucepan invoke utensils vapidly lilac

% echo f9a0e73d3cd533368f75ff63cbd97b2100beffbc339cdfa5c203c1a022d9cf11 | ./xmr

    Seed                 : f9a0e73d3cd533368f75ff63cbd97b2100beffbc339cdfa5c203c1a022d9cf11
    Private Spend Key    : 0ccdf1e0217221deb8d807c1ecdf9c0c00beffbc339cdfa5c203c1a022d9cf01
    Private View Key     : f303de33534d6a9e46497cf177e12b7bdfaf1405b2a03b5a7074a74b0946a805
    Public Spend Key     : 2794fe656a521e21e4135aa13381b42cbeb180e653deda210f2039ca1009d110
    Public View Key      : d76344d2c5467758f0bcbf03925bc8bf4b659e163ec68c342c7ba94b9679a125
    Monero Address       : 4387BkqvmwB6fnVf4kwNUb8V5jJbQtWNV6XiSiSw1kXz3pPAy9ooZe6FsqKYLo4b19YzoCJQPxWdy9j9kStsRLLg5B8R4Ke
    Electrum Seed Words  : dehydrate opened lilac elapse subtly prying swept ruby liar veteran wife afloat strained camp tugs pager dual tomorrow aimless boxes saucepan invoke utensils vapidly lilac

% ./sc_reduce32 f9a0e73d3cd533368f75ff63cbd97b2100beffbc339cdfa5c203c1a022d9cf11

0ccdf1e0217221deb8d807c1ecdf9c0c00beffbc339cdfa5c203c1a022d9cf01

% ./kec256 0ccdf1e0217221deb8d807c1ecdf9c0c00beffbc339cdfa5c203c1a022d9cf01

fcc659eca955591729400f38c6917e8ae0af1405b2a03b5a7074a74b0946a8d5

% ./sc_reduce32 fcc659eca955591729400f38c6917e8ae0af1405b2a03b5a7074a74b0946a8d5

f303de33534d6a9e46497cf177e12b7bdfaf1405b2a03b5a7074a74b0946a805

% ./secret_key_to_public_key f303de33534d6a9e46497cf177e12b7bdfaf1405b2a03b5a7074a74b0946a805

d76344d2c5467758f0bcbf03925bc8bf4b659e163ec68c342c7ba94b9679a125

% ./bytes_to_words 0ccdf1e0217221deb8d807c1ecdf9c0c00beffbc339cdfa5c203c1a022d9cf01

dehydrate opened lilac elapse subtly prying swept ruby liar veteran wife afloat strained camp tugs pager dual tomorrow aimless boxes saucepan invoke utensils vapidly lilac

% ./inverse_mnemonics dehydrate opened lilac elapse subtly prying swept ruby liar veteran wife afloat strained camp tugs pager dual tomorrow aimless boxes saucepan invoke utensils vapidly lilac

0ccdf1e0217221deb8d807c1ecdf9c0c00beffbc339cdfa5c203c1a022d9cf01

Contrast results above to:

  1. https://xmr.llcoins.net/addresstests.html

  2. https://xmr.llcoins.net/

xmr's People

Contributors

skaht avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

xmr's Issues

Error 1: objs_monero/bytes_to_words.o: No such file or directory

$ make
clang++ -arch x86_64 -mmacosx-version-min=10.11 -std=c++11 -O2  -I./monero/src -I./monero/src/crypto -I./monero/src/mnemonics -I./boost/1.56.0/include -c bytes_to_words.cpp -o objs_monero/bytes_to_words.o
clang++ -arch x86_64 -mmacosx-version-min=10.11 -std=c++11 -O2  -I./monero/src -I./monero/src/crypto -I./monero/src/mnemonics -I./boost/1.56.0/include -c bytes_to_words.cpp -o objs_monero/bytes_to_words.o: No such file or directory.
make: *** [Makefile:103: objs_monero/bytes_to_words.o] Error 1
  • OS: Ubuntu

Dependency to tcsh?

$ make
clang++ -arch x86_64 -mmacosx-version-min=10.11 -std=c++11 -O2  -I./monero/src -I./monero/src/crypto -I./monero/src/mnemonics -I./boost/1.56.0/include -c bytes_to_words.cpp -o objs_monero/bytes_to_words.o
make: /bin/tcsh: No such file or directory
make: *** [Makefile:103: objs_monero/bytes_to_words.o] Error 127
  • OS: Ubuntu

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.