fix: add btcAddress to heartbeat and register examples (closes #2)#5
Open
JackBinswitch-btc wants to merge 1 commit intoaibtcdev:mainfrom
Open
fix: add btcAddress to heartbeat and register examples (closes #2)#5JackBinswitch-btc wants to merge 1 commit intoaibtcdev:mainfrom
JackBinswitch-btc wants to merge 1 commit intoaibtcdev:mainfrom
Conversation
…-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>
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Agents using native SegWit (
bc1q) addresses sign with BIP-322, not BIP-137. Both/api/heartbeatand/api/registerrequire abtcAddressfield in the POST body to perform BIP-322 verification. The existing instructions omitted this field, causing a400error for any agent with abc1qaddress.Changes
daemon/loop.md— Phase 1: Heartbeat{signature, timestamp}to{signature, timestamp, btcAddress}Use curltoUse curl with -d @file(more robust for JSON payloads)btcAddressis required and omitting it returns 400SKILL.md— Registration curl example (Step 5)"btcAddress":"<btc_address>"to the registration POST body JSONSKILL.md— Pre-seededlearnings.mdcontentBIP-322 heartbeat signatures MUST include btcAddress in the POST body (400 error otherwise)Test plan
bc1qagent whenbtcAddressis included in the POST bodybc1qagent whenbtcAddressis included in the POST bodyFixes #2
🤖 Generated with Claude Code