bitcoin-native-identity-provider
Integrate HODLXXI as a Bitcoin-native identity provider that bridges OAuth2/OIDC, Lightning LNURL-Auth, and a minimal signed inter-agent execution loop for…
от rondoflow★ 37 звёзд на GitHub
Установить bitcoin-native-identity-provider в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
HODLXXI Bitcoin Identity
Overview
Use this skill to integrate HODLXXI (Universal Bitcoin Identity Layer) for Bitcoin-native identity/authentication, LNURL-Auth linking, JWT-based identity claims, and a minimal signed inter-agent execution path.
Installation
- Fetch the skill file from the repository (raw link works for installable agents):
curl -L -o SKILL.md \
https://raw.githubusercontent.com/hodlxxi/Universal-Bitcoin-Identity-Layer/main/skills/public/hodlxxi-bitcoin-identity/SKILL.md
- Install helper dependencies for local verification scripts:
python -m pip install ecdsa pyjwt requests
Quick start
- Set a base URL for the HODLXXI deployment.
- Register an OAuth client to obtain
client_idandclient_secret. - Run the OAuth2/OIDC authorization code flow (PKCE recommended).
- Start an LNURL-Auth session for Lightning wallet login.
- Verify JWTs with the JWKS endpoint.
Usage steps
1) Configure the base URL
Set the base URL to the HODLXXI deployment (update as needed):
BASE_URL="https://hodlxxi.com"
2) Register an OAuth client
Register a client to get credentials:
curl -X POST "$BASE_URL/oauth/register" \
-H "Content-Type: application/json" \
-d '{"client_name": "YourAgentName", "redirect_uris": ["https://your-callback-url"], "scopes": ["openid", "profile"]}'
Store client_id and client_secret securely.
3) Run OAuth2/OIDC authorization code flow
Discover endpoints:
curl "$BASE_URL/.well-known/openid-configuration"
Create an authorization request (PKCE recommended):
curl "$BASE_URL/oauth/authorize?client_id=your_client_id&redirect_uri=your_callback&response_type=code&scope=openid%20profile&code_challenge=your_challenge&code_challenge_method=S256"
Exchange the authorization code for tokens:
curl -X POST "$BASE_URL/oauth/token" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=authorization_code&code=received_code&redirect_uri=your_callback&client_id=your_client_id&code_verifier=your_verifier"
Expect an access token, ID token (JWT), and optional refresh token.
4) Start an LNURL-Auth session
Create a session and show the LNURL to the user:
curl -X POST "$BASE_URL/api/lnurl-auth/create" \
-H "Accept: application/json"
Poll for completion after the user scans the LNURL with a Lightning wallet:
curl "$BASE_URL/api/lnurl-auth/check/your_session_id"
5) Verify JWTs
Fetch JWKS:
curl "$BASE_URL/oauth/jwks.json"
Verify with Python (example uses PyJWT):
import jwt
import requests
jwks = requests.get("https://your-hodlxxi-deployment.com/oauth/jwks.json", timeout=10).json()
public_key = jwt.algorithms.RSAAlgorithm.from_jwk(jwks["keys"][0])
claims = jwt.decode(your_jwt, public_key, algorithms=["RS256"], audience="your_audience")
print(claims)
6) Monitor health and metrics
Check liveness and OAuth system status endpoints:
curl "$BASE_URL/health"
curl "$BASE_URL/oauthx/status"
Code examples
Register a client from a JSON template
curl -X POST "$BASE_URL/oauth/register" \
-H "Content-Type: application/json" \
-d @templates/oauth-client.json
Create LNURL session and poll
session_json=$(curl -s -X POST "$BASE_URL/api/lnurl-auth/create")
session_id=$(python3 -c 'import json,sys; print(json.loads(sys.argv[1])["session_id"])' "$session_json")
curl "$BASE_URL/api/lnurl-auth/check/$session_id"
Best practices
- Always use HTTPS and verify TLS certificates in production.
- Keep client secrets in a secrets manager or environment variables.
- Use PKCE for public clients and rotate secrets for confidential clients.
- Treat LNURL sessions as single-use and enforce short TTLs.
- Validate
aud,iss, andexpclaims for JWTs.
Advanced features
- Use
/oauthx/docsfor live OAuth/OIDC API documentation. - Use
/oauthx/statusto monitor database and LNURL session health. - Rotate JWKS keys via the server configuration (JWKS directory + rotation days).
Minimal Inter-Agent Execution (MVP)
This agent now supports a minimal signed agent-to-agent execution loop as a protocol-oriented extension to the existing identity/auth surface.
Other agents can:
- send a signed
job_proposaltoPOST /agent/message - have the receiving agent verify the message signature
- have the receiving agent execute the requested supported job
- receive a signed
resultenvelope in response - verify the returned signature
Current MVP boundaries:
- no negotiation yet
- no discovery yet
- no escrow/dispute yet
- no autonomous spending
PAYG billing for OAuth clients
Paid API calls are billed per OAuth client_id (agent/app), not per session pubkey. When balance or free quota is exhausted, paid endpoints return HTTP 402 with a Lightning top-up path.
Billing endpoints (OAuth token required)
- `POST /api/billing/agent/create-i
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- manifest.json
FAQ
Что делает скилл bitcoin-native-identity-provider?
Integrate HODLXXI as a Bitcoin-native identity provider that bridges OAuth2/OIDC, Lightning LNURL-Auth, and a minimal signed inter-agent execution loop for secure job handoff.
Как установить скилл bitcoin-native-identity-provider?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл bitcoin-native-identity-provider запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…