Skip to content

Instantly share code, notes, and snippets.

View RandyMcMillan's full-sized avatar
🛰️
Those who know - do not speak of it.

@RandyMcMillan RandyMcMillan

🛰️
Those who know - do not speak of it.
View GitHub Profile
@RandyMcMillan
RandyMcMillan / Tetration_Convergence_Boundary.rs
Last active August 26, 2026 19:37 — forked from rust-play/Playground.toml
Tetration_Convergence_Boundary.rs
use num_bigint::BigInt;
use num_traits::{One, Zero};
// ============================================================================
// EXECUTABLE PROOFS & MATHEMATICAL VERIFICATION MODULE
// ============================================================================
pub mod proofs {
use std::f64::consts::E;
@RandyMcMillan
RandyMcMillan / findbigfiles.sh
Created August 20, 2026 11:38 — forked from lukechilds/findbigfiles.sh
List all files on filesystem in size order
sudo du -h -a / 2>/dev/null | sort -h -r
@RandyMcMillan
RandyMcMillan / install-cross-platform-emulators.md
Created August 20, 2026 11:35 — forked from lukechilds/install-cross-platform-emulators.md
Install cross platform emulators for Docker

Installs all cross platform emulators for use with docker buildx

docker run -it --rm --privileged tonistiigi/binfmt --install all
@RandyMcMillan
RandyMcMillan / README.md
Created August 20, 2026 11:33 — forked from lukechilds/README.md
Connector Vaults: Delegated Execution and Stateless Revocation

Connector Vaults

Connector Vaults: Delegated Execution and Stateless Revocation

Each chain of presigned vault transactions carries one tiny connector UTXO controlled by a controller wallet. Every transaction spends the current connector and creates the next, so it can execute only when the controller wallet signs at broadcast time. Spending the live connector elsewhere revokes the remaining chain without moving its funds or requiring presigned revocation transactions.

Properties:

  • Offline signatures and presigned transactions are halved. An n-step policy needs n offline-signer authorizations instead of 2n (n authorizations + n revocations). This is especially impactful when performing large signing ceremonies on low-powered devices like hardware wallets.
  • Revocation transactions do not need to be presigned. The controller wallet constructs th
@RandyMcMillan
RandyMcMillan / bip-2106.rs
Last active August 17, 2026 11:35 — forked from rust-play/Playground.toml
bip-2106.rs
//! BIP: 2106
//! Layer: Consensus (Softfork)
//! Title: Extended 64-Bit Coinbase Timestamp and Header nTime Decoupling
//! Author: Randy McMillan <randy.mcmillan@gmail.com>
//! Comments-Summary: No comments yet.
//! Comments-URI: https://github.com/bitcoin/bips/wiki/Comments:BIP-2106
//! Status: Draft
//! Type: Standards Track
//! Created: 2026-08-17
//! License: BSD-2-Clause
@RandyMcMillan
RandyMcMillan / lingerie_model.rs
Last active August 13, 2026 10:55 — forked from rust-play/Playground.toml
lingerie_model.rs
use chrono::NaiveDate;
use serde::Deserialize;
use std::f64::consts::PI;
use std::io::Cursor;
const CSV_URL: &str = "https://raw.githubusercontent.com/coinmetrics/data/master/csv/btc.csv";
const GENESIS_DATE: &str = "2009-01-03";
/// Raw CSV Row matching Coin Metrics structure
#[derive(Debug, Deserialize)]
@RandyMcMillan
RandyMcMillan / nist_800-90b.rs
Last active August 13, 2026 11:19 — forked from rust-play/Playground.toml
nist_800-90b.rs
//! # NIST SP 800-90B Health-Tested Jitter Entropy & BIP-64MOD Engine
//!
//! Implements Section 4 of NIST SP 800-90B requirements for physical entropy sources:
//! 1. **Repetition Count Test (RCT)** (§4.4.1): Continuous stuck-source detection.
//! 2. **Adaptive Proportion Test (APT)** (§4.4.2): Continuous bias monitor.
//! 3. **Startup Power-On Self-Test (POST)** (§4.3): Power-on health validation.
//! 4. **BIP-64MOD & C-ABI Engine**: Conditioned 64-bit modular word extraction and GCC interop.
use sha2::{Digest, Sha256};
use std::hint::black_box;
@RandyMcMillan
RandyMcMillan / asmap_release.md
Created August 11, 2026 18:34 — forked from fjahr/asmap_release.md
Thoughts on ASMap for Bitcoin Core releases

ASMap in Bitcoin Core releases/ASMap data sources

Background

To get a general overview/refresher of the ASMap project please (re)read the post from Gleb on the Bitmex blog [1]. What is described there is still the status of ASMap file data sources to my knowledge.

Some further questions of mine about the process were discussed in November 2021 in an IRC meeting [2]. It was discussed that fresh ASMap files will be generated for and shipped with every release. The historic files that are part of the releases should be available in a separate repository under the bitcoin core GitHub organization. It was also discussed where the tools used during the release process should be maintained.

Since then, my focus has been on what would be the best possible data sources and quality assurance process for the input data of the ASMap file, i.e., a prefix to AS mapping that most accurately reflect the reality of the internet and that stays up to date for as long as possible.

@RandyMcMillan
RandyMcMillan / bitcoin_v25_asmap.md
Created August 11, 2026 18:34 — forked from fjahr/bitcoin_v25_asmap.md
Theoretical v25.0 deployment with ASMap
@RandyMcMillan
RandyMcMillan / card_d6.rs
Last active August 9, 2026 20:29 — forked from rust-play/Playground.toml
card_d6.rs
use rand::seq::SliceRandom;
use std::fmt;
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum Suit {
Clubs,
Diamonds,
Hearts,
Spades,
}