Skip to content

Instantly share code, notes, and snippets.

Avatar

David A. Harding harding

View GitHub Profile
@harding
harding / batch-gpg.txt
Created Aug 13, 2021
Example of batch GPG verification (Bitcoin Core 22.0rc2)
View batch-gpg.txt
$ gpg --verify SHA256SUMS.asc
gpg: assuming signed data in 'SHA256SUMS'
gpg: Signature made Wed 11 Aug 2021 09:10:51 AM HST
gpg: using RSA key 637DB1E23370F84AFF88CCE03152347D07DA627C
gpg: Good signature from "Stephan Oeste (it) <it@oeste.de>" [unknown]
gpg: aka "Emzy E. (emzy) <emzy@emzy.de>" [unknown]
gpg: aka "Stephan Oeste (Master-key) <stephan@oeste.de>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg: There is no indication that the signature belongs to the owner.
Primary key fingerprint: 9EDA FF80 E080 6596 04F4 A76B 2EBB 056F D847 F8A7
View excerpt-taproot-activation.txt
Excerpted from http://gnusha.org/taproot-activation/2021-02-16.log
[9:30:31 am] <viaj3ro> best argument for LOT=false imho is that 91% of
miners signaled support for LOT=false and might activate quickly if
chosen. If LOT=true is chosen, they might refuse and we'll have to wait
the full year
[9:31:14 am] <luke-jr> viaj3ro: that is not based in reality..
[9:32:03 am] <viaj3ro> it's an assumption, obviously. but still based on public information
View broken.txt
[The proposal below is flawed because it doesn't work for presigned transactions that use BIP68,
such as those proposed for LN anchor outputs or for timelock vault proposals. It's probably
flawed in other ways too. I'm posting this in case it helps anyone else learn from my mistakes.]
On Sun, May 03, 2020 at 12:26:02AM +1000, Anthony Towns via bitcoin-dev wrote:
> [After updating the transaction digest to commit directly to
> scriptPubKey] we'd arguably still be missing:
>
> [...]
> what was the height of the coin? (Coin.nHeight)
@harding
harding / joinpools.md
Created Jan 28, 2020
A description of joinpools elided from Optech Newsletter #48
View joinpools.md

*Bitcoin Optech [Newsletter #48][] described Jeremy Rubin's OP_CHECKOUTPUTSHASHVERY (COSHV) soft fork proposal. Originally, that content included descriptions of several advanced uses of COSHV, but that material was [removed][] shortly due to publication because of concerns that it was not adequately reviewed and so may have contained errors. Optech initially planned to obtain more reviews and publish the extra content the following week but, by then, the COSHV proposal was withdrawn in favor of a modified proposal with a new name, so the extra content went into limbo. The following section comes from that lost content; it has not been updated since the original COSHV proposal

@harding
harding / bitcoin-core-pr-reviews-2019-05-01.txt
Created May 1, 2019
First meeting for the Bitcoin Core PR Review Club, hosted by John Newbery
View bitcoin-core-pr-reviews-2019-05-01.txt
13:01 <@jnewbery> Hi folks!
13:01 < harding> Hi!
13:01 < dmkathayat> Hello!
13:01 < schmidty> hola
13:01 < amiti> hi!
13:01 < bilthon> hi there
13:01 <@jnewbery> We usually start Bitcoin Core IRC meetings with a 'hi' so it's clear who's at keyboard. Feel free to say hi here!
13:01 < kcalvinalvin> Hi
13:01 < peevsie> hi!
13:02 < emzy> Hi
View open-rpc-ports.txt
2018-10-20 19:30 UTC
## Trial 1
Nmap done: 8440 IP addresses (4486 hosts up) scanned in 446.64 seconds
$ grep Ports.*/tcp/ NODE_SCAN_RESULTS.data -c
4486
$ grep Ports.*/open/tcp/ NODE_SCAN_RESULTS.data -c
@harding
harding / bitcoin-fediverse-best-practices.md
Created Aug 8, 2018
Suggestions for how to best get along with other Bitcoiners on the Fediverse (Mastodon/GNU Social/Pleroma/ActivityPub/Etc)
View bitcoin-fediverse-best-practices.md

Price toots

Some people really don't want to hear about the price! But this is other people's favorite topic. If you adhear to the following two rules whenever talking about price, or something related to the price like altcoin prices, we should all be able to continue interacting about our common interests in Bitcoin:

  1. Use a Content Warning (the CW in the Mastodon user interface) to allow people to opt-into seeing your price-related information and images. Note that replies to CW-content are also automatically wrapped in the same CW.
@harding
harding / qc-upgrade-path.md
Created Jul 23, 2018
Description of Tim Ruffing's upgrade path to post-quantum in presence of QC attackers
View qc-upgrade-path.md

Background: future fast Quantum Computers (QCs) are hypothesized to be much faster at solving various forms of the Discrete Log Problem (DLP) than classical computers (e.g. what we use now). Bitcoin uses the DLP in what's called a trapdoor function: a function that's easy to compute one way (a private key generating a public key) but hard to compute the other way (using a public key to recover the original private key). Fast QCs break that trapdoor, hypothetically allowing the operator of the QC to steal the bitcoins from anyone whose public key is publicly known.

@harding
harding / count-nodes.sh
Created Jul 21, 2018
Quick script to count nodes in Luke's seeder data
View count-nodes.sh
#!/bin/bash -eu
DATA=node-count.data
while git checkout HEAD~30
do
date=$( git log -1 --date=unix | grep ^Date | awk '{ print $2 }' )
echo -n "$date " >> $DATA
## $8 is the 30d uptime; 5..100 shows nodes with uptime >= 5%
View gitian-verify.md

Manifest

  • gitian-verify/
    • README.md
    • step_1/
      • verify-keys.sh
      • fingerprints.txt
      • signatures/
        • ...
    • step_2/