Last active
March 14, 2021 08:20
-
-
Save ltfschoen/c6c3962e85b17f110bad4e4e17a82238 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 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 |
@tom these steps are old. i'd suggest following these ones https://substrate.dev/docs/en/knowledgebase/integrate/subkey
i'm updating this gist now so it's similar but don't have time to test with docker
Thanks!!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I try to compile
subkey
but got:any idea why?