The optional @bsv/lch/overlay-acquisition entry adds the proposed
BRC-198 overlay profile to
ordinary licensed content. Its wire codecs cover paid lookup and covenant
context. Its concrete buyer domains implement fixed-render,
whole-Asset, authorized collector acquisition through paid lookup and covenant
purchase. The covenant domain has a separate @bsv/lch/overlay-covenant entry. It is a
minor API addition requiring the coordinated SDK 3.3.0 output/revenue companions;
ordinary imports, SDK2 peers and CORE_CAPABILITIES stay unchanged. The current
covenant buyer, seller, alias and authenticated native HTTP composition is
implemented and exercised by current Linux reference compositions. The concrete
paid-lookup seller and authenticated native-wallet recovery flow are also
implemented. The checkpoint inventory distinguishes those demonstrated workflows
from the complete mutation campaign and final published-source acceptance gates.
The current C target is PR295's immutable collector extension. Use
decodeLCHCollectorRevenueProfile from @bsv/lch/overlay-covenant to own
its exact CBOR fields and
bindLCHCollectorRevenueProfile to compare the entire recipient schedule,
family and expiry height against the immutable listing descriptor.
validateLCHCollectorPreparation checks a locally verified active stage and
current height strictly below expiry before new work. It does not query a chain,
authenticate an Offer, fund a transaction or revoke a retained obligation.
For the complete current consent representation, select
validateLCHOverlayCovenantProfileTerms from the same covenant entry. It verifies
the signed standing Offer, original signed individual Request, complete collector
and descriptor, policy consent, selected capability and content commitments.
validateLCHOverlayCovenantProfilePromise validates the frozen accepted promise;
validateLCHOverlayCovenantProfileWindow checks new work. Height input is a
canonical decimal U64 string. Authenticate roles and independently verify actual
authorized lineage, active stage and the installed current chain view before
financial work; no terms parser supplies those proofs or invokes a wallet.
The current decodeLCHOverlayCovenantProfilePurchaseEvidence and
bindLCHOverlayCovenantProfileSettlement interfaces check the complete immutable
descriptor and exact original consent, signed settlement/POTATOES and historical
release bindings. Independent complete reserve-stage/activation history, actual
Script execution and release-policy checks remain required. These representation
interfaces neither issue a License nor authorize decryption or native alias reuse.
Select LCHOverlayCovenantProfileDomain for the current buyer described below.
The existing LCHOverlayCovenantDomain and LCHOverlayCovenantSeller retain the
earlier contract for compatibility. Current native buyer/action/alias custody
integration is assembled in the current-profile reference fixtures and requires
fresh runtime qualification. The current seller is described below.
Paid lookup and ordinary BRC-170 continue using their existing separate paths.
Install LCHOverlayPaidDomain with complete original Header bytes, signed Offer,
signed License Request bytes, the outer acquisition request and independently
selected authenticated capability. Install a bounded content source, local proof
adapters, exact buyer wallet, clock and current-access guard. create() validates
these originals without quoting, allocating, signing, paying or broadcasting.
Its installation ID binds the originals, authority selection, source/proof IDs,
content ceiling, authority network and retained-revocation policy. Methods and
configuration remain pinned across asynchronous work.
The domain checks the actual Offer/Request signatures, Asset and Offer IDs,
original Request bytes, buyer consent to policy and human-term digests, service,
chain, endpoint, price, mechanisms, ciphertext and original capability binding.
The concrete policy is inline ODRL with one fixed-render Permission and one
compensation precondition. Compensation uses an Action refinement with
payAmount, eq, exact xsd:integer amount and the LCH satoshi unit. Unsupported
constraints, inheritance, partial selection, payment proxies, additional duties,
unknown policy terms and ambiguous JSON fail before funding. Accepted
Prohibitions remain in the derived Agreement.
Role authority is independent of a signature. The seller must be authorized to issue the Offer and receive payment; the selected issuer must be authorized to issue the License for every required Asset interest. Controllers act inherently. Other actors require an explicit finite selection of actual BRC-170 Authority chains. Missing, ambiguous, unrelated, invalid or unresolved paths fail closed. Offer Authority references must exist in that selection. Every selected path is validated before funding. No unbounded discovery or guessed signer role is hidden in the adapter.
Preflight repeats these checks before new quote, planning and paid dispatch when used as the durable buyer's validation port. It also checks the installed wallet identity, current Offer window and frozen challenge's exact price, cutoff and recovery promise. Funded recovery uses the retained original obligation after the Offer window closes.
Before passing the domain to a buyer, compute lchOverlayCustodyBinding(domain.id)
and install a durable protected immutable-object owner with that binding and the
exact recipient. Reserve at least two objects and a per-object ceiling large
enough for the complete original and 16 KiB verification slot. Call
initializeCustody(objects) explicitly. A buyer's own five original/payment/result
slots remain separate. SQLite and IndexedDB protected operation-object owners
implement the structural custody interface; native Node or wallet-encrypted
codecs remain explicit installation choices.
Retain domain.id and domain.original() in protected application storage.
LCHOverlayPaidDomain.open(options, retained, objects) checks the original
bytes and existing reservations without allocating replacements. Missing or
changed original material, lost verification capacity, wrong recipient or changed
installation refuses use. The receipt stores an entitlement digest, never
plaintext content or CEKs. These logical reservations do not guarantee physical
quota, backup integrity or detection of a wholesale storage rollback; retain the
application's restoration policy.
Install LCHOverlayPaidVerification from trusted local implementations. Funding
verification must execute the transaction and validate the exact BRC-29 seller
output. SDKPrivateAcquisitionFunding.verifyForBuyer derives the seller's public
payment key using the actual buyer wallet and performs independent Script/SPV
verification; it requires no seller private key. Listing verification must check
the selected outpoint and Atomic BEEF in the independently selected immutable
chain view. Release verification must assess the exact selected policy and return
a live checkCurrent() guard. A remote seller's report is evidence for these
checks, never their implementation.
verify(request, challenge, payment, delivered, signal) checks these proofs,
the exact signed lookup settlement, funding and release digests, original
challenge, BEEF and derivation suffix. It requires the exact compensation
fulfillment under the paid settlement profile, original IDs and buyer, persistent
whole-Asset rights, and the critical acquisition/settlement bindings. It compares
the derived Agreement, all typed evidence and finite historical role authorities.
Every expected period needs its actual BRC-78 grant, authorized sender, exact
recipient and Key-ID/CEK commitment. Only complete success commits the immutable
positive verification receipt.
Historical revocation assessments come from the installed revocations.at(time)
policy. They must be authenticated and retained for the actual role time. A
current live status response cannot be backdated to establish past authority.
Missing evidence remains unresolved; recovery never charges again to work around
it. The reference tests use actual signatures, ciphertext, Script/SPV and retained
local admission evidence on synthetic data.
usable() and explicit playback() require the retained positive entitlement.
They authenticate the offered representation and its exact rights/settlement
bindings again, recover recipient-bound CEKs and verify ciphertext. Playback
returns plaintext only after AES-GCM authentication and current local access.
It does not repeat online payment, listing, release or historical authority calls
for an already verified entitlement. Actual offline operation also requires an
available local ciphertext source and local wallet key recovery.
An equivalent License reissue may have a fresh BRC-77 signature, fresh BRC-78
encryption randomness and later issuance time. The retained entitlement still
requires the same Agreement bytes/digest, rights, subject/issuer, selection,
fulfilled settlement, key commitments, grant sender/recipient and original
payment/release basis. lchOverlayPaidEntitlementDigest identifies these repeated
commitments but explicitly does not authenticate them. A forged signature or
altered encrypted grant remains invalid even when its unverified fingerprint
matches. The generic durable buyer continues retaining its first delivered bytes
immutably.
LCHOverlayPaidSeller<C> implements the structural domain port of
PrivateAcquisitionCoordinator without importing an application or native store.
Install it alongside that coordinator, its protected store and its actual native
wallet credit adapter. The catalogue supplies complete original Header/Offer,
selected listing BEEF, immutable verification context, finite authority paths and
the actual CEKs. Catalogue rules must establish the application's relationship
between that outpoint and the Asset; transaction validity alone does not establish
that relationship. These rules and their digest belong in the selected service
contract.
Preparation authenticates original consent, all required roles, ciphertext and every key commitment before quoting. It snapshots complete originals and CEKs into bounded off-chain material for the coordinator's encrypted custody, and reserves the conservative complete context allowance before money. CEKs never appear in public context or the issued License. New work requires an eligible Offer; a retained funded obligation remains recoverable after Offer expiry or catalogue withdrawal. The stable installation and current-access guard are independent of catalogue availability.
Issuance requires the exact retained accepted payment and native credit operation.
The mandatory credited(operation, operationId, signal) port must independently
read and authenticate the original native wallet's durable credit record, including
its funding, amount, wallet/storage ownership and operation ID. A serialized saved
receipt, a remote seller assertion or ordinary non-idempotent internalization does
not implement this port. This port is read-only: credit and financial recovery stay
in the coordinator and native wallet adapter.
After independent funding, listing, credit and release assessment, the seller checks authority at the original selection, actual acceptance and actual issuance times. It signs the exact lookup settlement, derives the Agreement retaining every accepted Prohibition, encrypts all period CEKs to the original buyer through BRC-78 and issues the critical acquisition/settlement-bound persistent License. The coordinator durably retains its first returned bytes before disclosing them. Lost replies recover that original result; they do not allocate or charge again. Unresolved credit, revocation evidence, access, ciphertext, key recovery or chronology keeps delivery unresolved and requires restoration of the original capability. It never selects replacement terms or a different financial operation.
Header, Offer, Request, delegation and License checks share a 256-actual-signature budget per assessment. Identical cryptographic checks may reuse a result, with preimage and signature separately bound in the cache key. Role, policy, current access and historical revocation checks remain separate from that cache.
Run pnpm --dir packages/content/lch test for ordinary BRC-170 and the optional
profile regressions. overlay-acquisition-paid.test.ts exercises actual payment
and License verification, encrypted native SQLite close/reopen after Offer expiry,
equivalent reissue and authenticated playback. It checks that online proof counts
do not increase on later use. Authority tests cover actual delegated signatures,
retained revocation, missing/ambiguous paths and referenced evidence. Custody tests
cover lost originals, smaller reservations and changed entitlements. Codec tests
cover exact CBOR/JCS, evidence ordering, duplicates, unknown fields and resource
ceilings, including 300 seeded generated histories. Seller component tests exercise
real settlement/License/key issuance, withdrawal/expiry recovery, exact native
credit refusal and invalid chronology. Detached representations use the installed
bounded source during quotation, retained-material validation and issuance; the
result then passes independent buyer verification and authenticated playback.
Missing or tampered ciphertext, an oversized source response, access loss and
cancellation during a read refuse a new quote before native credit.
Run pnpm --dir packages/overlays/overlay-express test --runTestsByPath src/__tests__/PrivateBuyerLCH.integration.test.ts for the complete disposable
native-wallet HTTP flow. It uses mutual BRC-103 authentication, actual native buyer
allocation/signing and seller credit, actual independent buyer Script/SPV checks,
signed settlement/License, BRC-78 grants and AES-GCM plaintext authentication. The
paid reply is lost after seller commit; buyer control, object, LCH and native action
custody reopen before unpaid recovery after Offer expiry and catalogue withdrawal.
Exactly one payment header and one seller credit remain. The fixture uses signed
synthetic funding and isolated loopback HTTP, never broadcasts, and does not qualify
production TLS, publication or deployment. Reproduction selectors, recovery
procedures and the separate reference workbench are documented in the checkpoint
inventory and their installation guides.
This section preserves the superseded mutable-schedule family and
validateLCHOverlayCovenantTerms interface. Its seller-v1 administration and
unanimous amendment requirements are historical compatibility behavior. Current
installations select validateLCHOverlayCovenantProfileTerms and
LCHOverlayCovenantProfileDomain, described below, with the immutable two-stage
descriptor, mandatory expiry, fixed child derivation and full purchase commitment.
The optional covenant terms adapter separates the reusable Offer from each
buyer. Install LCH_OVERLAY_COVENANT_MECHANISMS explicitly, then call
validateLCHOverlayCovenantTerms with complete original Header, Offer and signed
Request bytes, the outer BRC-196 preparation, exact listing descriptor, bounded
reader and independently selected authenticated topic capability. E, C, S,
the fixed-render/encryption/key mechanisms and the registered BRC-197 family
must all be installed and advertised. The payment endpoint names the selected
base plus /overlay/v1/purchases/prepare; this flow has no BRC-105 charge.
The sole standing requirement must omit the buyer. Its policy must leave the assignee open; the actual Request authenticates and fixes the individual buyer. Two buyers can therefore consent to one unchanged Offer/descriptor and receive distinct Agreements without modifying that Offer. The adapter compares the exact anchor, seller/collector, Asset/Offer IDs, price and complete initial revenue schedule. It requires all administrative routes under seller-v1, unanimous current-recipient amendments, retained remainders and externally funded exact retirement. It rejects payout-less listings and incompatible immediate separate-payee duties. A schedule representation is not genesis or Script proof.
validateLCHOverlayCovenantWindow(terms, signedTerms, now) applies the current
Offer and purchase cutoff only to new work. For an already retained obligation,
validateLCHOverlayCovenantPromise checks the exact signed original preparation,
selected release policy, BRC-197 domain/schema and recovery interval. The floor
is the maximum of one day, the original capability promise and the Offer's
payment recovery period. Neither function redirects an outstanding purchase to
a new listing or opens an expired Offer. Retain the original Request signature
bytes; re-signing the same body changes its outer request digest.
The accepted-policy checks are shared with the existing paid adapter. Human term digests, explicit mechanism choices, full-Asset Selection and deterministic Request bytes retain the same rules. Standing-offer terms alone do not establish role authority, complete Bitcoin lineage, exact actual purchase increment, retained topical admission, release-policy satisfaction, license validity or usable keys. Those independent proof and issuance stages remain required for the full covenant reference flow.
This section targets BRC PR295
at bdbd7aec0731347230e6b4190864e90b9ff27898. Implemented current composition and remaining
qualification are recorded in specification alignment.
validateLCHOverlayCovenantProfileTerms authenticates the reusable standing Offer
and each buyer's individual Request against the current immutable descriptor and
collector extension. The Offer can leave the assignee open while each signed
Request fixes its buyer. Changing the seller, price, expiry or recipient schedule
requires a new signed lineage. Accepted terms are separate from Script, lineage,
currentness, custody and entitlement verification.
Install LCHOverlayCovenantProfileDomain from @bsv/lch/overlay-covenant with the
complete original Header, reusable standing Offer, individual signed Request,
outer preparation, exact descriptor and independently selected capability.
Its protected original and positive verification slots follow the same custody
rules as the paid domain. create() checks consent and the actual buyer wallet;
it never constructs, funds, signs, submits or broadcasts a transaction.
The installed verification.preparation must authenticate the authorized genesis,
every related listing transition and the exact prepared outpoint before wallet
construction. RevenueListingProfileLineageVerifier provides the complete Script and
selected-chain implementation. The installed verification.purchase must
validate the actual full transaction and its complete authorized lineage, and bind
the original acquisition ID, request digest, buyer, descriptor, price and receipt.
The current BRC-197 v1 target has activation followed by four active routes; merge
and schedule amendment are outside it.
RevenueListingProfilePurchaseVerifier provides that implementation. Their independently
selected chain context and currentness are local installation responsibilities.
Preparation returns owned stage and canonical decimal currentHeight fields
with a synchronous same-view checkCurrent guard. fundingPreflight(request, signedTerms, signal) requires initialized protected custody and returns a fence
that also rechecks active stage, height strictly below expiry and the accepted
new-purchase time window. The financial owner must retain and recheck it
immediately before reservation/action; a void preflight call is insufficient
for this current profile. This portable domain performs no financial effects.
The independently installed purchase port receives both the complete original
funded wallet candidate and the released purchase evidence. Verify every actual
input and original BEEF association for each, then require an identical full
purchase commitment. Distinct txids remain distinct Bitcoin subjects.
For an explicitly selected full-commitment buyer, install
verification.candidate before creating or reopening this domain. The domain
then exposes candidateBinding(request, signedTerms, candidate, signal) for the
buyer's original funded subject and independently reported recovery aliases.
Omitting that port preserves the prior installation identity and leaves the
capability absent. Selecting it creates a distinct domain installation; it does
not reinterpret an older protected obligation. The verification installation ID
must bind its complete algorithms and independently selected chain policy.
The candidate port receives complete OutputEvidence and the owned original
request, signed terms and selected seller. Compose it with
RevenueListingProfilePurchaseVerifier.verify and require a verified result
before returning its full commitment plus a synchronous same-context guard.
The domain authenticates its protected originals and the standing consent and
signed promise again, checks acquisition identity, and retains the owned guard.
This read-only boundary requires neither a secret nor manufactured release
proof. It does not run preparation's new-funding height/time window, assess a
License, record entitlement, or authorize playback. Reported aliases require the
buyer's separate fresh selected-chain verification before use as currentness;
the original paid candidate and License remain unchanged.
The native candidate fixture binds the verification identity, partition, generation, selected view, policy and resource bounds, together with current access. Refreshing the computation clock and deadline does not change those selected premises. Every actual Script verification still receives and honors its finite deadline. A changed verification generation or selected view refuses the returned candidate guard; refreshing a work budget never supplies a new chain or permission verdict.
The release port separately assesses the originally selected release policy.
The purchase port additionally returns the independently verified full 32-byte
purchaseCommitment, calculated from the authenticated input-zero preimage
before scalar reduction. The seller places it in the signed C settlement, and
the buyer requires it to match the independently verified transaction and the
reserved result/POTATOES. An inherited, accessor-backed, missing or changed
commitment cannot become a positive assessment. Every port must return an owned
synchronous checkCurrent() guard; unresolved,
limited, cancelled or changed proof contexts cannot become positive receipts.
decodeLCHOverlayCovenantProfilePurchaseEvidence parses a closed portable lineage package
and authenticates its signed genesis commitment. That is a representation check;
it cannot replace either full Bitcoin verifier. bindLCHOverlayCovenantProfileSettlement
then authenticates the collector's settlement and STEAK/POTATOES envelope against
the original signed preparation and the same transaction. It binds predecessor,
successor, initial economics, contribution amount, buyer, Request/Offer/Asset IDs,
release evidence and chronology. The C context contains purchase evidence and
cannot silently switch to paid lookup. The exact context bytes must equal the
signed POTATOES secret.
verify(request, terms, submission, delivered, signal) performs those bindings,
checks the original wallet transaction's raw identity, invokes full purchase and
release verification and validates the exact License, Agreement, finite typed
authority evidence and recipient-bound BRC-78 key grants. Guards are rechecked
after asynchronous key recovery. Complete success alone commits the immutable
positive entitlement. A signed License, topical admission or parseable lineage
package alone cannot authorize decryption.
open() restores the original domain and existing custody after Offer expiry.
usable() and explicit playback() require its locally recorded entitlement,
authenticate the signed material again and enforce current local access. They
perform no new purchase or online lineage/release assessment. Equivalent signed
reissue may vary signature and encrypted grant randomness without changing rights;
every grant is authenticated again before use. The unverified
lchOverlayCovenantEntitlementDigest is only a representation fingerprint, useful
inside that protected positive receipt. It is never a remote authorization token.
currentAlias is independently assessed transport evidence and is excluded from
this historical fingerprint. Changing it cannot rewrite signed settlement,
License, release evidence or original transaction; it grants no new rights.
Already verified offline playback does not depend on a new online alias lookup.
The current disclosed synthetic fixture constructs reserve-only authorized genesis, externally funded activation and an actual purchase, then independently verifies complete BEEF, every input Script and the selected easy-work chain. It issues real signed settlement/License/key grants, retains encrypted SQLite buyer custody and decrypts actual ciphertext after reopen and expiry. The additive property checks at least 300 accepted/expired funding-window cases without revoking an already verified entitlement. The complete original historical buyer tests and property remain unchanged. Neither fixture is mainnet evidence or a native wallet action; Actual topical admission and the reusable native alias/action owner still need the combined current buyer/seller reference workflow before checkpoint acceptance.
Select LCHOverlayCovenantProfileSeller for the current immutable collector.
It shares the complete issuance pipeline with the preserved historical
LCHOverlayCovenantSeller, whose interfaces and installation identity remain
compatible. The distinct current installation prevents either class from
reinterpreting the other's protected material. Its installation ID binds
seller/issuer identities, verifier and retained
revocation-source IDs, authority network, content ceiling and purchase interval.
The catalogue supplies complete original Header/Offer, descriptor, authorized
lineage, finite role paths and actual whole-Asset CEKs. Preparation owns these
bytes, checks consent and key commitments, and independently executes full genesis
and lineage verification before returning private material and a bounded promise.
The current lineage port supplies owned active stage and canonical installed
height with a synchronous same-view guard. The returned preparation guard also
rechecks height below expiry, the Offer window and the bounded preparation cutoff.
The coordinator must retain and recheck it immediately before promising material.
These are new-work checks, never a predicate repeated on retained issuance.
The coordinator reserves that material and future completion slots before signed
terms leave the host. CEKs belong to protected off-chain custody and never to
public lookup, ordinary topical metadata or GASP payloads.
Advertised request limits must be small enough for the complete portable C context to fit its 2 MiB ceiling. The seller reserves conservative framing for original lineage and its repeated signed-terms commitment, the complete accepted request, bounded release/License/settlement fields, exact typed authority archive, derived Agreement and every permitted 64 KiB BRC-78 payload. It also reserves the outer base64 and response framing. It refuses an incompatible capability before preparation; reducing an already advertised contract after purchase is invalid. The demonstrated profile accepts 512 KiB requests and 4 MiB responses. These are explicit installation bounds, not new defaults imposed on unrelated services.
verify() independently checks the complete original candidate and exact purchase
receipt before admission. issue() receives the native owner's complete retained
candidate as the optional fifth domain-port argument. New C issuers require it;
existing four-argument adapters continue working. Transaction ID alone cannot
replace full BEEF, and a transient in-memory candidate cache cannot substitute for
native custody after restart. Issuance independently repeats full purchase checks
and selected-release assessment, validates historical Offer/payment roles and
current License authority, and emits the exact C settlement, derived Agreement,
recipient License and encrypted key grants. It makes no wallet, admission,
broadcast or HTTP payment call. The coordinator retains the first complete result
bytes; later recovery returns that same result without another issuance or payment.
The current component fixture uses exact pinned immutable reserve-stage, activation and purchase programs with complete independently verified synthetic Bitcoin/genesis/BEEF history and actual current-buyer decryption. It covers owned stage/height, Offer and preparation cutoffs, invalid stage/height/accessor reports, distinct custody identities, original purchase association, missing admission and retained issuance after catalogue withdrawal and expiry. The additive property checks at least 300 accepted/expired preparation windows while preserving the original verified obligation and custody. All original historical seller tests and the original property remain alongside it through the shared pipeline.
These portable buyer/seller components alone provide no native wallet action, topical admission, multi-alias custody or selected-chain authority. The current reference composition separately installs the protected wallet, current immutable family, same-writer alias owner, independent currentness, coordinator and authenticated physical HTTP disclosure. It exercises complete genesis/activation ancestry, original funding and admission, mined-alias selection, immutable historical entitlement, lost replies, restart and actual licensed decryption. The separate wallet-route fixture exercises all fixed-child recipients and route-specific expiry finality. The earlier missing-commitment and incomplete-BEEF failures are historical evidence; they do not qualify this replacement. Reproduce the complete current selectors in the checkpoint inventory, preserving original controls. Advertising C requires the actually installed verifiers and capabilities; checkpoint acceptance also requires complete mutation and final published-source qualification.