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
''' | |
A simple example illustrating | |
message signing and signature | |
verification using secp256k1 | |
''' | |
import coincurve | |
import hashlib | |
# order of the finite field in secp256k1 |
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
#!/usr/bin/python3 | |
''' | |
usage: | |
interactive: | |
./op-return-builder.py | |
static: | |
./op-return-builder.py <base64 encoded PSBT> <message (80 char max)> | |
''' |
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
#!/usr/bin/python3 | |
''' | |
usage: | |
trusted: | |
./nostr-keygen.py (will generate a private key) | |
trustless: | |
./nostr-keygen.py <32 byte hex privkey> (will derive the pubkey) | |
./nostr-keygen.py "$(openssl rand -hex 32)" |