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

stage23-donation-button.py

TEXT FILE

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

Download / RawBack to folder
Python · 13 lines
1from html import escape
2import re
3
4def button(address):
5    if not re.fullmatch(r'[a-zA-Z0-9]{14,90}', address):
6        raise ValueError('invalid address characters')
7    return '<a href="bitcoin:' + escape(address, quote=True) + '">Donate Bitcoin</a>'
8
9if __name__ == '__main__':
10    assert button('tb1qsyntheticfixture').startswith('<a href="bitcoin:')
11    try: button('x" onclick="bad')
12    except ValueError: pass
13    else: raise AssertionError('unsafe input accepted')
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