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

stage22-payment-verification.py

TEXT FILE

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

Download / RawBack to folder
Python · 9 lines
1def paid(invoice, output):
2    return (output.get('canonical') is True and output.get('network')==invoice['network'] and output.get('address')==invoice['address'] and type(output.get('sats')) is int and output['sats']>=invoice['sats'] and type(output.get('confirmations')) is int and output['confirmations']>=invoice['min_confirmations'])
3
4if __name__=='__main__':
5    invoice=dict(network='test',address='fixture',sats=5000,min_confirmations=2)
6    output=dict(network='test',address='fixture',sats=5000,confirmations=2,canonical=True)
7    assert paid(invoice,output)
8    assert not paid(invoice,dict(output,canonical=False))
9    assert not paid(invoice,dict(output,sats=4999))
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