Repository navigation
ARCs, Relays, and Hubs - #183
Merged
Merged
Conversation
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.
Implement the complete user story for ARCs, Relays, and Hubs.
Summary by CodeRabbit
New Features
Bug Fixes & Security
Documentation
Note
High Risk
Changes contract publish authorization, P2P document handling, and new Bitcoin Taproot spend paths—security-sensitive areas that affect funds and mesh trust.
Overview
Adds contract Taproot tooling (
contractTaproot, tierwhenpredicates) plusContract/FederationtoAddress/toTaprootContractso spend policies compile to deterministic P2TR ladders (failover, decay/migrate, PSBT prep). Introduces contract-scoped capability tokens (OP_CONTRACT_READ/OP_CONTRACT_SIGN), k-of-nContractStateTipsigning, and new sharedCONTRACT_MESSAGEbody types (group journal catch-up, capability grants, withdrawal request/witness).Peer / wire:
contract:messageevents now carrywireMessage/messageHexfor journal attach; contract publish/patch allow-lists are tightened (wire signer must match body authority arrays; publisher no longer auto-granted). Document private relay gains_sendPrivateRelayedDocumentRequest; peeled/relayed document requests stay observe-only via delivery options.SIDECHAIN_STATE_PATCHgains optionalpatchesCanonicalfor multi-op RFC6902 fidelity; messagedecodeBodydefaults missing optional fields.Chores: root
.npmrcallow-git=alland install reporting for npm 12+ GitHub consumers; developer docs note npm 12+ requirement.Reviewed by Cursor Bugbot for commit a97e752. Configure here.