Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix nit around online tooling. #1611

Merged
merged 1 commit into from
Mar 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion nakamoto-upgrade/running-a-signer.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,20 @@ e.g. `stacks_private_key = "7567052905c21867fff273f5c018fb254a282499008d7e818193

Next, we need to add the `message_private_key`. You can choose to reuse your Stacks private key or generate a new one.

The `message_private_key` needs to be base58 encoded. You can use [this tool](https://appdevtools.com/base58-encoder-decoder) to encode the private key as base58.
The `message_private_key` needs to be base58 encoded. You can use the script below to encode the private key as base58.
Because this is a private key *we recommend you do not* use any online tools to perform this conversion.

```
python3 -m venv .venv
source .venv/bin/activate
pip3 install base58
sudo bash -c 'cat <<EOF> ./encode.py
from sys import argv
import base58
print(base58.b58encode(argv[1]).decode("utf-8"))
EOF'
python3 ./encode.py PRIVATE_KEY
```

In the base58 encoding tool, paste in your `stacks_private_key` and set "Treat input as Hex". Make sure you delete the 01 at the end or the signer will throw an error.

Expand Down
Loading