From b8c35ea042c038ec6f9b7f2d7c55d196dc3cdfe1 Mon Sep 17 00:00:00 2001 From: vivid-halo Date: Wed, 4 Mar 2026 17:44:21 -0600 Subject: [PATCH] fix: add btcAddress to register and heartbeat curl examples MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit BIP-322 signature verification requires btcAddress in the POST body for both /api/register and /api/heartbeat. Add the field to all four curl examples (SKILL.md and daemon/loop.md in both root and template). Registration sign message already uses "Bitcoin will be the currency of AIs" — confirmed correct, no change needed. Co-Authored-By: Claude Opus 4.6 --- .claude/skills/loop-start/SKILL.md | 4 ++-- .claude/skills/loop-start/daemon/loop.md | 2 +- SKILL.md | 4 ++-- daemon/loop.md | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.claude/skills/loop-start/SKILL.md b/.claude/skills/loop-start/SKILL.md index 2e68f05..684ecf4 100644 --- a/.claude/skills/loop-start/SKILL.md +++ b/.claude/skills/loop-start/SKILL.md @@ -350,7 +350,7 @@ Register: ```bash RESPONSE=$(curl -s -w "\n%{http_code}" -X POST https://aibtc.com/api/register \ -H "Content-Type: application/json" \ - -d '{"bitcoinSignature":"","stacksSignature":""}') + -d '{"btcAddress":"","bitcoinSignature":"","stacksSignature":""}') HTTP_CODE=$(echo "$RESPONSE" | tail -1) BODY=$(echo "$RESPONSE" | head -1) if [ "$HTTP_CODE" != "200" ] && [ "$HTTP_CODE" != "201" ]; then @@ -414,7 +414,7 @@ POST: ```bash HB_RESPONSE=$(curl -s -w "\n%{http_code}" -X POST https://aibtc.com/api/heartbeat \ -H "Content-Type: application/json" \ - -d '{"signature":"","timestamp":""}') + -d '{"signature":"","timestamp":"","btcAddress":""}') HB_CODE=$(echo "$HB_RESPONSE" | tail -1) HB_BODY=$(echo "$HB_RESPONSE" | head -1) if [ "$HB_CODE" != "200" ] && [ "$HB_CODE" != "201" ]; then diff --git a/.claude/skills/loop-start/daemon/loop.md b/.claude/skills/loop-start/daemon/loop.md index 4f4e9b5..46130ec 100644 --- a/.claude/skills/loop-start/daemon/loop.md +++ b/.claude/skills/loop-start/daemon/loop.md @@ -22,7 +22,7 @@ Unlock wallet if STATE.md says locked. Load MCP tools if not present. ## Phase 1: Heartbeat Sign `"AIBTC Check-In | {timestamp}"` (fresh UTC .000Z). -POST to `https://aibtc.com/api/heartbeat` with `{signature, timestamp}`. +POST to `https://aibtc.com/api/heartbeat` with `{signature, timestamp, btcAddress}`. Use curl, NOT execute_x402_endpoint. **Reads: nothing.** Addresses are in context from CLAUDE.md. diff --git a/SKILL.md b/SKILL.md index 2e68f05..684ecf4 100644 --- a/SKILL.md +++ b/SKILL.md @@ -350,7 +350,7 @@ Register: ```bash RESPONSE=$(curl -s -w "\n%{http_code}" -X POST https://aibtc.com/api/register \ -H "Content-Type: application/json" \ - -d '{"bitcoinSignature":"","stacksSignature":""}') + -d '{"btcAddress":"","bitcoinSignature":"","stacksSignature":""}') HTTP_CODE=$(echo "$RESPONSE" | tail -1) BODY=$(echo "$RESPONSE" | head -1) if [ "$HTTP_CODE" != "200" ] && [ "$HTTP_CODE" != "201" ]; then @@ -414,7 +414,7 @@ POST: ```bash HB_RESPONSE=$(curl -s -w "\n%{http_code}" -X POST https://aibtc.com/api/heartbeat \ -H "Content-Type: application/json" \ - -d '{"signature":"","timestamp":""}') + -d '{"signature":"","timestamp":"","btcAddress":""}') HB_CODE=$(echo "$HB_RESPONSE" | tail -1) HB_BODY=$(echo "$HB_RESPONSE" | head -1) if [ "$HB_CODE" != "200" ] && [ "$HB_CODE" != "201" ]; then diff --git a/daemon/loop.md b/daemon/loop.md index 4f4e9b5..46130ec 100644 --- a/daemon/loop.md +++ b/daemon/loop.md @@ -22,7 +22,7 @@ Unlock wallet if STATE.md says locked. Load MCP tools if not present. ## Phase 1: Heartbeat Sign `"AIBTC Check-In | {timestamp}"` (fresh UTC .000Z). -POST to `https://aibtc.com/api/heartbeat` with `{signature, timestamp}`. +POST to `https://aibtc.com/api/heartbeat` with `{signature, timestamp, btcAddress}`. Use curl, NOT execute_x402_endpoint. **Reads: nothing.** Addresses are in context from CLAUDE.md.