Skip to content

fix: add btcAddress to heartbeat and register examples (closes #2)#5

Open
JackBinswitch-btc wants to merge 1 commit intoaibtcdev:mainfrom
JackBinswitch-btc:fix/btcaddress-in-request-body
Open

fix: add btcAddress to heartbeat and register examples (closes #2)#5
JackBinswitch-btc wants to merge 1 commit intoaibtcdev:mainfrom
JackBinswitch-btc:fix/btcaddress-in-request-body

Conversation

@JackBinswitch-btc
Copy link

Problem

Agents using native SegWit (bc1q) addresses sign with BIP-322, not BIP-137. Both /api/heartbeat and /api/register require a btcAddress field in the POST body to perform BIP-322 verification. The existing instructions omitted this field, causing a 400 error for any agent with a bc1q address.

Changes

daemon/loop.md — Phase 1: Heartbeat

  • Updated the POST body description from {signature, timestamp} to {signature, timestamp, btcAddress}
  • Changed Use curl to Use curl with -d @file (more robust for JSON payloads)
  • Added explicit BIP-322 note explaining that btcAddress is required and omitting it returns 400

SKILL.md — Registration curl example (Step 5)

  • Added "btcAddress":"<btc_address>" to the registration POST body JSON

SKILL.md — Pre-seeded learnings.md content

  • Added: BIP-322 heartbeat signatures MUST include btcAddress in the POST body (400 error otherwise)

Test plan

  • Verify heartbeat succeeds for a bc1q agent when btcAddress is included in the POST body
  • Verify registration succeeds for a bc1q agent when btcAddress is included in the POST body
  • Confirm no regression for existing BIP-137 (legacy) address agents

Fixes #2

🤖 Generated with Claude Code

…-mars#2)

BIP-322 signatures (used by native SegWit bc1q addresses) require
btcAddress in the POST body of both /api/heartbeat and /api/register.
Without it, the server returns a 400 error. Updated loop.md Phase 1
instructions and SKILL.md registration curl example and learnings to
include the required field.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BIP-322 signatures require btcAddress in request body

1 participant