Skip to content

Instantly share code, notes, and snippets.

@ltfschoen
Created December 20, 2019 03:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ltfschoen/5f1b48a6fab7b7dff761cc8dd5c53114 to your computer and use it in GitHub Desktop.
Save ltfschoen/5f1b48a6fab7b7dff761cc8dd5c53114 to your computer and use it in GitHub Desktop.
Polkadot Address Generation with Subkey
#!/bin/sh
# Start Ubuntu in container and install dependencies
docker run --name ubuntutest -t -i ubuntu /bin/bash
apt-get update
apt-get install -y curl
curl https://getsubstrate.io -sSf | bash -s -- --fast
# Install Substrate and Subkey
cargo install --force --git https://github.com/paritytech/substrate subkey
# Create Polkadot address with Subkey. Run this offline
subkey --network polkadot --password "mypassword" generate --words 24
# Destroy history and securely from the root directory
history -c
apt-get install secure-delete
sfill -v /
exit
# Destroy the Docker container
docker ps -a
docker rm -f ubuntutest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment