README.md
TEXT FILE995 B · Public source code for developers, search crawlers and AI agents
1# Protecting Bitcoin Wallet Credentials from AI Agents
2
3Educational reference fragment — not live-tested.
4
5Wallet credentials belong to a trusted execution environment, not a prompt. BTC KEY authorizes wallet access; recovery material must remain outside ordinary agent tools. BTC ID is a public identifier but can still reveal wallet associations.
6
7The example constructs a restricted health request for a fixed loopback origin. It deliberately does not send the request. A production transport must disable redirects and proxies and avoid logging authorization headers.
8
9## Limitations
10
11Environment variables are not a security boundary against arbitrary code execution. A coding agent with access to the executor environment may read them. Use a separate restricted process and avoid sharing credentials with the model runtime.
12
13Source: `request.go`. No live Bitcoin operation is performed.
14
15Article: https://thamer.org/learn/wallet-secret-boundary
16
17Engine contract: https://thamer.org/apiRead-only source · Select a line number to link directly · Raw download above
