Created
December 20, 2019 03:56
-
-
Save ltfschoen/5f1b48a6fab7b7dff761cc8dd5c53114 to your computer and use it in GitHub Desktop.
Polkadot Address Generation with Subkey
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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