blckbx on Nostr: Happy Whitepaper Day! # Extract Bitcoin Whitepaper from Blockchain Data # Full Node: ...
Happy Whitepaper Day!
# Extract Bitcoin Whitepaper from Blockchain Data
# Full Node:
$ bitcoin-cli getrawtransaction 54e48e5f5c656b26c3bca14a8c95aa583d07ebe84dde3b7dd4a78f4e4186e713 true | jq -r '.vout[].scriptPubKey.asm' | cut -c3- | xxd -p -r | tail +9c | head -c 184292 > bitcoin.pdf
# Pruned Node:
$ seq 0 947 | (while read -r n; do bitcoin-cli gettxout 54e48e5f5c656b26c3bca14a8c95aa583d07ebe84dde3b7dd4a78f4e4186e713 $n | jq -r '.scriptPubKey.asm ' | awk '{ print $2 $3 $4 }'; done) | tr -d '\n' | cut -c 17-368600 | xxd -r -p > bitcoin.pdf
https://github.com/blckbx/NodeTools/blob/main/bitcoin-whitepaper-extraction.shPublished at
2023-10-31 09:46:38Event JSON
{
"id": "1b9f773440f6ff54730d53c0ea6e8e70abb412b058fc1d0ef70c5b27868fd52e",
"pubkey": "c0fbe1663de7ca01211fa30977e683097fbd8740ab220b3bf5de428f1276f1bc",
"created_at": 1698745598,
"kind": 1,
"tags": [],
"content": "Happy Whitepaper Day! \n\n# Extract Bitcoin Whitepaper from Blockchain Data\n# Full Node:\n$ bitcoin-cli getrawtransaction 54e48e5f5c656b26c3bca14a8c95aa583d07ebe84dde3b7dd4a78f4e4186e713 true | jq -r '.vout[].scriptPubKey.asm' | cut -c3- | xxd -p -r | tail +9c | head -c 184292 \u003e bitcoin.pdf\n\n# Pruned Node:\n$ seq 0 947 | (while read -r n; do bitcoin-cli gettxout 54e48e5f5c656b26c3bca14a8c95aa583d07ebe84dde3b7dd4a78f4e4186e713 $n | jq -r '.scriptPubKey.asm ' | awk '{ print $2 $3 $4 }'; done) | tr -d '\\n' | cut -c 17-368600 | xxd -r -p \u003e bitcoin.pdf\n\nhttps://github.com/blckbx/NodeTools/blob/main/bitcoin-whitepaper-extraction.sh",
"sig": "e12c69bd33660546d88e3b45a313c00280221b6bac7997d9caed0b9de580f21a75963c81ebb0e238f27089fbdc822fe4a9a33cfaf9a6fb27aca833b8dce808b1"
}