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

stage18-tool-execution.py

TEXT FILE

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

Download / RawBack to folder
Python · 15 lines
1def dispatch(role, operation, handlers):
2    allowed = {'reader': frozenset({'balance', 'receive'}), 'observer': frozenset({'balance'})}
3    if operation not in allowed.get(role, frozenset()):
4        raise PermissionError('operation denied')
5    return handlers[operation]()
6
7if __name__ == '__main__':
8    handlers = {'balance': lambda: 42, 'receive': lambda: 'fixture'}
9    assert dispatch('reader', 'balance', handlers) == 42
10    for role, op in [('reader', 'send'), ('observer', 'receive'), ('unknown', 'balance')]:
11        try:
12            dispatch(role, op, handlers)
13        except PermissionError:
14            continue
15        raise AssertionError('unexpected permission')
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