Skip to content

Instantly share code, notes, and snippets.

@ethicnology
ethicnology / bitcoin-full-node.sh
Last active March 11, 2026 16:32
wget, chmod +x and execute
#!/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:
@rllola
rllola / ecdsa_private_recovering.py
Last active October 5, 2022 22:50
Recover private key from ECDSA signature
#!/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