Generating a cold wallet for Stellar
There aren’t any easy-to.use tools for creating Stellar cold wallets yet, so I’ll do a walkthrough here. I’m doing this from a laptop with an installation of Ubuntu 14.04 (desktop image). The computer has never been connected to the Internet.
I have already attached a printer that fortunately required no extra drivers.
pip
Download pip from https://launchpadlibrarian.net/171402930/python-pip_1.5.4-1_all.deb on your workstation and transfer it to the laptop using an USB stick. You’ll also need these dependencies:
- https://launchpad.net/ubuntu/trusty/i386/python-colorama
- https://launchpadlibrarian.net/165738754/python-colorama_0.2.5-0.1ubuntu1_all.deb
- https://launchpadlibrarian.net/172260516/python-distlib_0.1.8-1_all.deb
- https://launchpadlibrarian.net/170425368/python-pkg-resources_3.3-1ubuntu1_all.deb
- https://launchpadlibrarian.net/167353302/python-urllib3_1.7.1-1build1_all.deb
- https://launchpadlibrarian.net/170425369/python-setuptools_3.3-1ubuntu1_all.deb
- https://launchpadlibrarian.net/162225403/python-html5lib_0.999-2_all.deb
- https://launchpadlibrarian.net/161787941/python-six_1.5.2-1_all.deb
libsodium
Download libsodium from https://download.libsodium.org/libsodium/releases/LATEST.tar.gz and install like this:
$ tar xzf LATEST.tar.gz
$ cd libsodium-0.6.1/
$ ./configure
$ make && make check && sudo make install
$ sudo /sbin/ldconfig
pysodium
Download pysodium from https://pypi.python.org/packages/source/p/pysodium/pysodium-0.6.2.tar.gz and install:
stellar_keygen
Fetch stlelar_keygen.py from https://github.com/johansten/stellar_keygen/blob/master/stellar_keygen.py
Generate the wallet
$ python stellar_keygen.py
You can print keys like this:
$ python stellar_keygen.py | lpr
Retrieving the funds
The best way to retrieve the funds is to sign the transaction offline, but the tools to do that do not seem to be ported from Ripple yet.