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

stage11-payment-authorization.py

TEXT FILE

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

Download / RawBack to folder
Python · 13 lines
1import hashlib, json, hmac
2
3def digest(intent):
4    return hashlib.sha256(json.dumps(intent, sort_keys=True, separators=(',', ':')).encode()).hexdigest()
5
6def matches(intent, approved_digest):
7    return hmac.compare_digest(digest(intent), approved_digest)
8
9if __name__ == '__main__':
10    intent = {'id':'order-1','net':'test','to':'fixture-only','amount_sat':1000}
11    approved = digest(intent)
12    assert matches(intent, approved)
13    assert not matches(dict(intent, amount_sat=1001), approved)
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