feat: add BRC-170 LCH reference implementation - #501
Conversation
|
Exact head |
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
|
Exact head The reference path is now concrete end to end: a creator wizard publishes protected content and an Offer; the issuer produces buyer-bound Payment Demands; a BRC-100 buyer wallet funds one Atomic BEEF transaction; each Payee verifies and internalizes its exact BRC-29 wallet-payment output; the issuer verifies the signed receipts and releases the License; and the player decrypts and exercises every initial profile. Ambiguous delivery recovery reuses the same funded transaction and cannot double-pay. The package includes the deterministic-CBOR HTTP binding, reusable server/client, Payee receiver and ledger boundary, multilateral payment client, endpoint policy, recovery, and deployment adapters. The executable reference server exposes health, asset publication, acquisition, and range-capable content endpoints; Exact-head hosted CI is fully green: 36 successful checks, 3 expected scope skips, 0 pending/failing; merge gate, Sonar, CodeQL, dependency review, browser/mobile lanes, package artifact checks, and mutation gates all pass. Hosted changed-code coverage is 90.65% (2,122/2,341 points; 90% target). Local There are no unresolved review threads. This remains draft for joint review with the current BRC-170 text and for a second-implementation interoperability pass. |
|
Federated Payee delivery and the final coverage hardening are now on exact head
Validation on this head:
The PR remains draft for joint BRC-170 review and independent interoperability work. |
|
|
Availability and authorized-output settlement refinement is complete at d0fddb9. What is now concrete:
Validation:
The matching BRC-170 refinement is bsv-blockchain/BRCs#236 at 418ed7ed4a56fd6fa16b7a02f1eaf361929519e0. This TS Stack PR remains draft for coordinated spec and implementation review. |



Program and scope
971eb4f6690a4ca9f8fa65fc872a5a507b978cd4.Impact
Affected packages/services and intended versions (publication occurs only through the release workflow after approval):
@bsv/lch0.1.0 package with SDK and optional CHIRP integration, CLI, deterministic encodings, content protection, entitlement/payment, authority/revocation, transport, composition/provenance, and core-profile APIs.apps/lch-referenceneutral conformance workbench. It deliberately avoids vendor branding and exercises all six core profiles after license acquisition, including unknown-critical rejection, metered boundaries, entitlement reuse, half-open rental times, training semantics, repeated placements, reversal, exact-ratio time warping, and distortion.Verification
92c834e0be390cde0f3935c2cc0e7f96657c6ad56bc478d6bd643ccd8770598aand independently validate 14 objects, 9 signatures, 6 segments, six editorial placements, unique repeated-placement C2PA bindings, BRC-78 recovery, time boundaries, and randomized payment outputs.@bsv/lch94.20% statements, 82.71% branches, 93.75% functions, and 95.21% lines. Authority validation is 100% statements/functions/lines and 95.31% branches. Hosted changed-code coverage is 90.19% (1,452/1,610 points; 90% gate).lch-cborrun instrumented 146 mutants and scored 92.47% (134 killed, 11 survived, one timeout); the mutation quality gate passed.Security and dependencies
Dependency evidence
@bsv/sdk2.4 peer plus optional@bsv/chirp0.1 peer; exact packed consumers and browser bundlers pass.@bsv/lch0.1.0.Release and operations
Completion evidence