This file contains hidden or 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/bash | |
| echo Setup bitcoin full node. | |
| echo Specify bitcoin version, e.g. 22.0: | |
| read version | |
| echo Install bitcoin-core version $version | |
| #Download bitcoin-core: | |
| wget https://bitcoincore.org/bin/bitcoin-core-$version/bitcoin-$version-x86_64-linux-gnu.tar.gz | |
| #Download the list of cryptographic checksums: | |
| wget https://bitcoincore.org/bin/bitcoin-core-$version/SHA256SUMS | |
| #Download the signatures attesting to validity of the checksums: |
This file contains hidden or 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/env python3 | |
| from Crypto.Util.number import inverse | |
| import ecdsa | |
| import random | |
| import hashlib | |
| C = ecdsa.SECP256k1 | |
| G = C.generator | |
| n = C.order |