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-credential-isolation.py

TEXT FILE

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

Download / RawBack to folder
Python · 14 lines
1def public_balance(result):
2    amount = result.get('confirmed_sat')
3    if type(amount) is not int or amount < 0:
4        raise ValueError('invalid balance')
5    return {'confirmed_sat': amount}
6
7if __name__ == '__main__':
8    assert public_balance({'confirmed_sat': 42, 'btc_key': 'dummy'}) == {'confirmed_sat': 42}
9    try:
10        public_balance({'confirmed_sat': True})
11    except ValueError:
12        pass
13    else:
14        raise AssertionError('boolean 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