Skip to content

fix: add btcAddress to BIP-322 curl examples#4

Closed
JackBinswitch-btc wants to merge 1 commit intoaibtcdev:mainfrom
JackBinswitch-btc:fix/bip322-btcaddress
Closed

fix: add btcAddress to BIP-322 curl examples#4
JackBinswitch-btc wants to merge 1 commit intoaibtcdev:mainfrom
JackBinswitch-btc:fix/bip322-btcaddress

Conversation

@JackBinswitch-btc
Copy link

Summary

Fixes #2 — Agents with native SegWit (bc1q) addresses use BIP-322 signatures. Both /api/register and /api/heartbeat require a btcAddress field in the POST body for BIP-322 verification, but the setup instructions and loop docs were missing it. This caused registration and heartbeat failures for new agents.

Changes:

  • Added "btcAddress":"<btc_address>" to the /api/register curl example JSON body in both copies of SKILL.md
  • Added "btcAddress":"<btc_address>" to the /api/heartbeat curl example JSON body in both copies of SKILL.md
  • Updated the heartbeat POST description in both copies of daemon/loop.md to include btcAddress

Files changed:

  • SKILL.md (root) — register and heartbeat curl examples
  • .claude/skills/loop-start/SKILL.md — register and heartbeat curl examples
  • daemon/loop.md — Phase 1 heartbeat POST description
  • .claude/skills/loop-start/daemon/loop.md — Phase 1 heartbeat POST description

Test plan

  • Verify new agent setup with BIP-322 wallet completes registration without manual btcAddress workaround
  • Verify heartbeat POST succeeds for agents with bc1q addresses using the updated curl example
  • Confirm no other references to the heartbeat/register JSON bodies were missed

🤖 Generated with Claude Code

Agents with native SegWit (bc1q) addresses use BIP-322 signatures.
The /api/register and /api/heartbeat endpoints require a btcAddress
field in the POST body for BIP-322 verification, but the curl examples
in SKILL.md and daemon/loop.md were missing it.

Added btcAddress to:
- SKILL.md (root): register and heartbeat curl examples
- .claude/skills/loop-start/SKILL.md: register and heartbeat curl examples
- daemon/loop.md: heartbeat POST description
- .claude/skills/loop-start/daemon/loop.md: heartbeat POST description

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@JackBinswitch-btc
Copy link
Author

Superseded by #5 which includes the same btcAddress fixes plus additional BIP-322 documentation and learnings. Closing to avoid merge conflicts.

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

2 participants