Skip to content

Instantly share code, notes, and snippets.

@nyxnor
nyxnor / bitcoin-whitepaper-from-the-blockchain
Created Jul 8, 2021
Acquire the Bitcoin whitepaper from the blockchain. It is the same transaction, just different methods.
View bitcoin-whitepaper-from-the-blockchain
# gettout
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
# getblock
bitcoin-cli getblock 00000000000000ecbbff6bafb7efa2f7df05b227d5c73dca8f2635af32a2e949 0 | tail -c+92167 | for ((o=0;o<946;++o)) ; do read -rN420 x ; echo -n ${x::130}${x:132:130}${x:264:130} ; done | xxd -r -p | tail -c+9 | head -c184292 > bitcoin.pdf
# getrawtransaction
bitcoin-cli getrawtransaction 54e48e5f5c656b26c3bca14a8c95aa583d07ebe84dde3b7dd4a78f4e4186e713 0 00000000000000ecbbff6bafb7efa2f7df05b227d5c73dca8f2635af32a2e949 | sed 's/0100000000000000/\n/g' | tail -n +2 | cut -c7-136,139-268,271-400 | tr -d '\n' | cut -c17-368600 | xxd -p -r > bitcoin.pdf
View verify-identity.txt
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
My telegram/twitter/github username is @nyxnor
Other platforms I use are listed on https://keybase.io/nyxnor/
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEpf90q38JK6u1XfGpa2WGzcm8iDYFAmC1kTwACgkQa2WGzcm8
iDZRFQ/+L/6f6DDjZYLtxOl9M3ksfJ+dULG42hx5wU3tJOsSpYwyBYImNyN4PwiN
View A5FF74AB7F092BABB55DF1A96B6586CDC9BC8836.asc
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBGCGB6YBEACy2SDTVDxNBtkynYYkrba9l5+/LpbAOeoZ/OYPze8GOLwvxop4
0mnvo7itN+l5w6/ufaZVYbAJuL08ipHAvhESKZx2dpX/Qtt6YxhLwlGEE0CO4K+I
2WSfi3RKJyJJwI2JLglDW6cR9RYoCHwe/dtsVl7Qb/AsX1x92JbNHrkSqiGOdpCy
m4JaaXtyNfwEMYSosW57lL/PYlIZ04PIWDpQUHRofxtnmHxAPihti0qJpEuUp4cx
/9GjaYnDCucVh2fnKuN8dyJeZxpl+JQKR2CcYDjRCH88qMiM17azGS8+Q+8cdfUU
FV5dyRkVWOxbflHjet77NKlpj9kQKRm2wSutsLVxH+Ylu0OtP7LfvpmSv0H0r0OW
DCXM9Zvqm5z6aaYYH8ueTOnkRO4GPPfhVJKvdc1VAH7wBTjAH4b/cBNghZQ3GiHM
UhqSQD9ehen+NcZNEd1JHeZaFB0qlS2RJT/EGsbP7PUoxYzbVi2Uj9LUPdABOCky
@nyxnor
nyxnor / keybase.md
Created May 1, 2021
verify keybase
View keybase.md

Keybase proof

I hereby claim:

  • I am nyxnor on github.
  • I am nyxnor (https://keybase.io/nyxnor) on keybase.
  • I have a public key ASDPynEzk5sTU-WIv86ASoAVrOgZ9uH8Zpn1KSDSwocGaAo

To claim this, I am signing this object: