THAMER
Sovereign Bitcoin Wallet

WALLET AI BITCOIN

Your Bitcoin Wallet. Your Keys. Your Engine.

Self-hosted Bitcoin software built for developers, applications, and AI agents.

CREATE WALLET

stage15-compute-pricing.py

TEXT FILE

348 B · Public source code for developers, search crawlers and AI agents

Download / RawBack to folder
Python · 8 lines
1def compute_cost(milliseconds, sat_per_second):
2    if any(type(x) is not int or not 0 <= x <= 10**9 for x in (milliseconds, sat_per_second)):
3        raise ValueError("invalid measurement")
4    return (milliseconds * sat_per_second + 999) // 1000
5
6assert compute_cost(1501, 2) == 4
7assert compute_cost(0, 2) == 0
8assert compute_cost(1000, 2) == 2
Read-only source · Select a line number to link directly · Raw download above

Latest from the Lab

THAMER illustrated developer portrait and signature

ABOUT THE DEVELOPER

Independent Software Developer specializing in Bitcoin Script, Golang, and AI Agents.

Software engineering · Independent research · Open-source projects