Skip to content

Instantly share code, notes, and snippets.

@leopubcode
leopubcode / gist:0394c3be1f0aa567b2dfbc242f358753
Created August 19, 2026 23:00
Compute bitcoin stats like inflation, issued coins, rewards, and approximate halving date
function computeBitcoinStats() {
const formatterNumer = new Intl.NumberFormat("en-US", {});
const formatterPercent = new Intl.NumberFormat("en-US", {
maximumFractionDigits: 4,
});
const formatterDate = new Intl.DateTimeFormat("en-US", {
month: "long",
year: "numeric",
});
let height = 0;
@leopubcode
leopubcode / validator.js
Created August 8, 2026 01:06
Experimental BIP39 12th word checksum generator
const crypto = require("crypto");
const wordList = [
"abandon",
"ability",
"able",
"about",
"above",
"absent",
"absorb",