Skip to content

Instantly share code, notes, and snippets.

@ltfschoen
Last active March 14, 2021 08:20
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/c6c3962e85b17f110bad4e4e17a82238 to your computer and use it in GitHub Desktop.
Save ltfschoen/c6c3962e85b17f110bad4e4e17a82238 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 subkey --git https://github.com/paritytech/substrate --version 2.0.0 --locked
# 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
@TomaszWaszczyk
Copy link

Thanks!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment