Skip to content

Instantly share code, notes, and snippets.

View thunderbiscuit's full-sized avatar

thunderbiscuit thunderbiscuit

View GitHub Profile

I've been looking into the fountain codes and UR spec for Cashu token transmission over QR codes. I wanted to get a feel for how big in bytes was likely to be a typical payment, and I decided to run some statistics on the number of proofs you need for given payments. The results are interesting so I'm sharing them here.

Here is the distribution of the number of proofs you'll need for a random sample of 10,000 payment amounts between 1 and 1,000,000 satoshis (a payment of 0 to $500 at today's prices).

number-of-proofs

I was surprised at how a lot of payments can be done with less than 10 proofs, even on pretty big amounts (this makes sense when you think about it but for some reason I had expected a lot more proofs required). Moreover, since the number of proofs required is so nicely distributed, it occurred to me that a simple search "around" a given payment amount that required too many proofs would likely find an amount that

@thunderbiscuit
thunderbiscuit / README.md
Last active December 9, 2022 14:00
Installing Umbrel on a RockPro64 Using a DietPi Distro

Installing Umbrel on a RockPro64 Using a DietPi Distro

⚠️ ⚠️ ⚠️

I'm keeping this gist here for archival purposes only. It is completely out of date and I don't recommend messing with your Umbrel in that way. Both Umbrel and DietPi have seen extensive upgrades since I first wrote this.

⚠️ ⚠️ ⚠️


@thunderbiscuit
thunderbiscuit / live-btc-price.html
Last active August 1, 2020 12:27
The single page, simplified version of the minimalist website https://live-bitcoin-price.com/. Grab and modify!
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Bitcoin Price</title>
<meta name="description" content="The price of bitcoin right now" />
<!-- <link rel="stylesheet" href="static/css/styles.css" /> -->

Keybase proof

I hereby claim:

  • I am thunderbiscuit on github.
  • I am thunderbiscuit (https://keybase.io/thunderbiscuit) on keybase.
  • I have a public key ASCYiHFuICLFm1xP7UDk8-HLE5rg-kHqGHUmaTLEE6YFawo

To claim this, I am signing this object: