@did-btcr2/aggregation (MINOR: the SUBMIT_UPDATE body holds updateHash, not the update; the public API of the messages, the cohort, the beacon strategy, and the service changes; AGGREGATION_WIRE_VERSION is 2)In this ADR, a member is a participant that the service accepted in a cohort. A nonce is the SMT nonce of a leaf value, not a MuSig2 nonce. updateId is the JSON Document Hash of a BTCR2 Update (32 bytes).
In an aggregate beacon round, each member answers an update opportunity. Before this change, the participant sent SUBMIT_UPDATE with the body { cohortId, signedUpdate }, the full BTCR2 Update. A member with no update sent SUBMIT_NONINCLUDED. For an SMT cohort, AggregationCohort.buildSMTTree made a nonce for each member with randomBytes(32). It computed each leaf value from that nonce and, for an update, the updateId, and it gave each member a proof with the nonce.
Thus the service learned three facts about each member: the text of the update, the nonce, and if the member had an update. A known nonce hides nothing from the party that knows it.
An update can be private sidecar data. Privacy Considerations, “Updates Can Be Private”, says: “Bitcoin is used to publicly announce and anchor updates to DID documents, however the updates themselves can be kept private by DID controllers and provided through a Sidecar mechanism at Resolution Time.”
nonce, other parties (aggregators, other DID controllers, verifiers) cannot know if there is an update, or its contents. Only the DID controller can tell them.”nonce in the leaf value, the DID controller also does not show if there is a BTCR2 Update, or its contents.”updateHash: The SHA-256 hash of the BTCR2 Update to be included, created with the JSON Document Hashing algorithm.”didIndex: The SHA-256 hash of the DID to be updated;”. For updateHash: “If there is an update:”, “If a nonce is used: hash(hash(nonce) + updateId)”, “If there is not an update:”, “If a nonce is used: hash(hash(nonce))”, and “If a nonce is not used: no value, the index stays empty and its leaf value is cachedZero[0]”. Also: “Participants MUST persist their nonce values.”Aggregate Beacons, “BTCR2 Update Aggregation”, sets the scope of the Aggregate Beacons texts in this list: “A full protocol definition is out of scope for this specification, but a RECOMMENDED example is provided for illustration.”
ADR 029, “Consequences”, “Negative”, says: “The service operator can read plaintext of all directed messages they relay, including SUBMIT_UPDATE payloads. Mitigating factor: those payloads are already intended to be on-chain public data.” The premise is false for a sidecar update. Only the Beacon Signal goes on chain, and the update can stay private.
ADR 029, “Explicitly accepted trade-offs”, also says: “Participants who require end-to-end privacy against the service operator should use the Nostr transport, which offers NIP-44 envelope encryption at the wire layer.” The Nostr transport encrypts each directed message to the key of the recipient. The service is the recipient of SUBMIT_UPDATE, so the service decrypts it. Thus no transport hides the body of SUBMIT_UPDATE from the service.
| Case | Before | After |
|---|---|---|
| An SMT member adds a private service endpoint and keeps the update as sidecar data | The service gets the full update and makes the nonce. | The service gets only hash(hash(nonce) + updateId). The member makes and keeps the nonce. |
| An SMT member has no update | The member sends SUBMIT_NONINCLUDED, so the service knows that the member has no update. | The member sends SUBMIT_UPDATE with hash(hash(nonce)). The service cannot tell it from an update. |
| A CAS member has an update | The service gets the full update and computes its hash. | The service gets the hash. The CAS Announcement holds the same hash. |
| A participant of wire version 1 sees an advert of a service of wire version 2 | Not applicable: each earlier release used wire version 1. | The participant ignores the advert, so it does not join the cohort. |
updateHashThe body of SUBMIT_UPDATE is { cohortId, updateHash }. SubmitUpdateBody.updateHash replaces SubmitUpdateBody.signedUpdate, and BaseBody.updateHash replaces BaseBody.signedUpdate. The value is 32 bytes in base64url with no padding. The name is the specification name for both beacon types:
hash(hash(nonce) + updateId) for an update, or hash(hash(nonce)) for no update.The body has no did field and no didIndex field. The service takes the DID from the sender of the transport envelope, as before. The SMT index is didToIndex(did), the SHA-256 hash of the DID. createSubmitUpdateMessage takes updateHash, and isSubmitUpdateMessage requires an updateHash string.
updateHash#handleSubmitUpdate applies these steps in this order:
cohortId, or if the service does not know the cohort, the service ignores the message. It also ignores the message outside the phases CohortSet and CollectingUpdates. It records no rejection.updateHash is not a string, the service refuses the message with UPDATE_MALFORMED (“SUBMIT_UPDATE has no updateHash string”).NOT_A_MEMBER.updateHash does not decode to exactly 32 bytes, the service refuses the message with UPDATE_MALFORMED (“SUBMIT_UPDATE updateHash is not 32 bytes in base64url”). The decoder base64UrlToHash (smt) is strict: it refuses the padding character = and padding bits that are not zero.DUPLICATE_RESPONSE.addUpdate(participantDid, updateHash) stores the string as the member sent it.The membership check and the DUPLICATE_RESPONSE check keep their order. A refused value is not an answer, so the member can send a good value after it. The first good value stands. UPDATE_MALFORMED now has two causes: no updateHash string, and a value that does not decode to 32 bytes.
The service no longer gets the update. Thus this change removes these items, with no alias:
maxUpdateSizeBytes of AggregationServiceParams, AggregationService, and AggregationServiceRunnerOptions, the constant DEFAULT_MAX_UPDATE_SIZE_BYTES, and the rejection code UPDATE_TOO_LARGE.#submittedUpdateProblem and the rejection code UPDATE_SENDER_MISMATCH.The reasons:
UPDATE_MALFORMED.hash(did) binds a value to the DID of the sender. Thus a bad value harms only the DID of the sender, as a bad update did before (ADR 152, decision 4).maxBodyBytes) with the status 413. Thus with the default values, the old default cap of 256 KiB never applied over HTTP.AggregationCohort.updateHashes: Map<string, string> (DID to updateHash) replaces pendingUpdates: Map<string, SecuredDocument>. addUpdate(participantDid, updateHash) takes the value. AggregationService.collectedUpdateHashes(cohortId) replaces collectedUpdates(cohortId). The cohort holds no update and no nonce.
buildCASAnnouncement maps each DID to its updateHash. Before, it computed canonicalHash of each update. A member that declined is absent from the map, as before.buildSMTTree puts each submitted value at the index didToIndex(did). It computes the root with zeroHashRoot and each proof with generateZeroHashProof. It gives each member serializeProof(root, proof): a proof with id, collapsed, and hashes, and with no nonce and no updateId. Before, the cohort made the nonces and built a BTCR2MerkleTree with addEntries.The signal bytes keep their form: the SHA-256 hash of the canonical CAS Announcement, or the SMT root.
submitUpdate(cohortId, signedUpdate) keeps its signature. The participant computes updateId with canonicalHashBytes(signedUpdate). If an update has no JCS form, submitUpdate throws an AggregationParticipantError of type UPDATE_MALFORMED, as before (ADR 154, decision 7). Then it sends only the value:
updateHash is encode(updateId), the JSON Document Hash of the update in base64url.randomBytes(32). updateHash is hash(hash(nonce) + updateId).The participant keeps updateHash, nonce, and updateId in its cohort state. These three fields replace submittedUpdate. The caller keeps the update. The service gets neither the update nor the nonce.
The action of declineUpdate(cohortId) depends on the beacon type of the cohort:
hash(hash(nonce)). The body has the same fields and the same length as the body of an update. Thus the service cannot tell a decline from an update.In both cases, the phase becomes NonIncluded, and CohortCompleteInfo.included is false. The member stays in the cohort and signs. submitUpdate and declineUpdate use one private helper, #submit.
The service still accepts SUBMIT_NONINCLUDED in an SMT cohort. The membership check and the DUPLICATE_RESPONSE check of #handleSubmitNonInclusion do not change. buildSMTTree puts no leaf at the index of that member, so the index stays empty with the leaf value cachedZero[0]. The member gets a proof of its index, and verifyProof returns true for it with no nonce and no updateId. The library participant does not send SUBMIT_NONINCLUDED in an SMT cohort (decision 6). If another implementation sends it, the service knows that the member has no update.
The SMT strategy takes only id, collapsed, and hashes from the proof of the service. It adds the nonce that the member made and, for an update, the updateId of the member. Then it calls verifyProof. If the service puts a nonce or an updateId in the proof, the strategy ignores them. Thus verifyProof returns true only for the leaf value that the member selected.
The result is the full SMT Proof of the member. PendingValidation.smtProof and CohortCompleteInfo.smtProof hold it. The caller must persist it, because only the member knows the nonce.
The CAS strategy compares the map value of the member with the updateHash that the member kept. A member with no updateHash must be absent from the map, as before. deriveSignal does not change: the SMT signal is the id of the proof (ADR 089, decision 1).
AggregateBeaconStrategy gets the required method prepareSubmission(updateId?): BeaconSubmission. The new type BeaconSubmission is { updateHash?, nonce? }:
{ updateHash: encode(updateId) } for an update, or {} for no update. With no updateHash, the participant sends SUBMIT_NONINCLUDED.nonce and updateHash: hashToBase64Url(leafValue(nonce, updateId)), also for no update.validateParticipantView takes { participantDid, updateHash?, nonce?, updateId?, body }. This change removes the parameters included, submittedUpdate, and expectedHash. The strategy of each beacon type makes and checks its own value, as it already checks its own aggregated data.
buildSMTTree leaves the index empty for a submitted value equal to cachedZero[0]buildSMTTree skips a submitted value equal to cachedZero[0]. The index of that member stays empty, and the root does not change. cachedZero[0] is the value of an empty leaf. A leaf with that value can give another member a sibling hash equal to a cached zero. verifyProof returns false for such a proof. Thus without the skip, one member can make verifyProof return false for the proofs of other members.
AGGREGATION_WIRE_VERSION is 2. The SUBMIT_UPDATE body changes, so a peer of version 1 and a peer of version 2 cannot complete a round together.
AggregationParticipant.receive ignores each message with another wire version, also a COHORT_ADVERT. Thus a participant of version 1 does not join a cohort of version 2. If AggregationService.receive knows the cohort of a message with another wire version, it refuses the message with WRONG_VERSION. Else it ignores the message.
If the wire version stays 1, an older participant joins the new cohort. The service refuses its SUBMIT_UPDATE with UPDATE_MALFORMED, because the body has no updateHash. The participant sends no other answer. cohortTtlMs and phaseTimeoutMs of the service runner are off by default. Thus the cohort waits, and one older participant stops the round of all members.
The method docs (packages/method/docs/aggregation.md, “Wire-format version”) say that a change of the constant “is a breaking protocol change”. ADR 027 (the mitigation of T3) says: “Mismatched messages are rejected, not silently processed as a possibly-incompatible shape.”
| Judgment call | Text | Result |
|---|---|---|
The body names the value updateHash for both beacon types. It has no did field and no didIndex field (decision 1). |
Aggregate Beacons, “Respond to Update Opportunities”: “updateHash: The SHA-256 hash of the BTCR2 Update to be included, created with the JSON Document Hashing algorithm.” Also: “didIndex: The SHA-256 hash of the DID to be updated;”. |
Conforms. The name is the name of the specification. The sender of the transport envelope gives the DID, and the service computes hash(did). |
| The service checks only that the value is 32 bytes. It has no size cap and no sender check (decisions 2 and 3). | Privacy Considerations: “aggregators are able to coordinate Beacon Signals without needing to view or validate DID documents or the updates.” | Conforms. The service cannot validate a hash. A bad value harms only the DID of the sender. The specification sets no message size. |
The participant makes the nonce and the value. For an SMT decline, the participant sends SUBMIT_UPDATE with hash(hash(nonce)) (decisions 5 and 6). |
SMT appendix: “The DID controller selects the value for that index in that signal”. Also: “With a nonce, other parties (aggregators, other DID controllers, verifiers) cannot know if there is an update, or its contents.” Aggregate Beacons: “If a nonce is used: hash(hash(nonce))”. |
Conforms. The service gets only a leaf value, and the two cases have one message type. |
| The service accepts SUBMIT_NONINCLUDED in an SMT cohort and leaves the index empty (decision 7). | Aggregate Beacons: “If a nonce is not used: no value, the index stays empty and its leaf value is cachedZero[0]”. Step 3: “Every registered index MUST appear as a leaf.” |
Conforms. The specification lists this case. The empty index has the leaf value cachedZero[0], and the member gets an SMT Proof of its index. |
The member adds its own nonce and updateId to the proof of the service. CohortCompleteInfo.smtProof holds the full proof (decision 8). |
Aggregate Beacons: “Participants MUST persist their nonce values.” “Confirm Signal Request”: “For SMT Beacon Signals, Aggregation Participants must persist the BTCR2 Updates, nonce values, and SMT Proofs for each index they control.” |
Conforms. The caller gets the nonce in the proof that it must persist. A nonce of the service cannot change the result. |
The strategy interface gets prepareSubmission, and validateParticipantView takes the values that the member kept (decision 9). |
Aggregate Beacons, “BTCR2 Update Aggregation”: “A full protocol definition is out of scope for this specification, but a RECOMMENDED example is provided for illustration.” | The specification is silent. The strategy of each beacon type already selects its aggregated data. |
buildSMTTree leaves the index empty for a submitted value equal to cachedZero[0] (decision 10). |
Algorithms, “SMT Proof Verification”: “A 0 bit of collapsed selects an entry of hashes that is equal to the cached zero of that level.” Also: “No nonce and no updateId: cachedZero[0], the value of an empty leaf.” |
Conforms. The value is the value of an empty leaf, so the root is the same. The skip keeps the proofs of the other members valid. |
AGGREGATION_WIRE_VERSION is 2 (decision 11). |
The specification defines no wire version. The scope text of the row on decision 9 applies. | The specification is silent. A participant of version 1 does not join a cohort that it cannot complete. |
Make the nonce on the participant, but keep the full update in SUBMIT_UPDATE. Rejected. The full update shows the same facts: its text, and that the member has an update. The nonce then hides nothing from the service.
Record the leak in an ADR only. Rejected. Privacy Considerations, “Aggregation Services Only Need Hashes”, says that aggregators “are provided with a hash or Content Identifier (CID) of the update”. The SMT appendix says that, with a nonce, aggregators “cannot know if there is an update”. A record does not stop the leak.
Keep wire version 1. Rejected. An older participant then joins a new cohort, and the service refuses its SUBMIT_UPDATE with UPDATE_MALFORMED. With the default runner options, the cohort then waits with no end.
Refuse SUBMIT_NONINCLUDED in an SMT cohort. Rejected. The SMT response of the specification lists the case “no value, the index stays empty”. A member of another implementation can select it.
Keep a size cap for the body. Rejected. The body has a fixed size. In step 4 of decision 2, the service refuses each value that is not 32 bytes.
docs directory.cohort-complete gives the full SMT Proof with the nonce.SMTBeacon.broadcastSignal (method) does not change. The single party is the DID controller, and it makes its own nonce.BTCR2MerkleTree.addEntries no longer builds the tree of a cohort, so its nonce check (ADR 166, decision 1) does not apply there. prepareSubmission of the SMT strategy makes each nonce with 32 bytes.registerBeaconStrategy must add prepareSubmission and use the new parameters of validateParticipantView. In TypeScript, a strategy without these changes does not compile. In JavaScript, submitUpdate and declineUpdate throw a TypeError for such a strategy.The public API breaks. No alias stays:
SubmitUpdateBody.signedUpdate and BaseBody.signedUpdate become updateHash. createSubmitUpdateMessage takes updateHash. isSubmitUpdateMessage requires an updateHash string.maxUpdateSizeBytes from AggregationServiceParams, AggregationService, and AggregationServiceRunnerOptions. It also removes DEFAULT_MAX_UPDATE_SIZE_BYTES.UPDATE_TOO_LARGE and UPDATE_SENDER_MISMATCH from RejectionReason.AggregationService.collectedUpdates becomes collectedUpdateHashes. AggregationCohort.pendingUpdates becomes updateHashes, and addUpdate takes an updateHash string.AggregateBeaconStrategy gets the required method prepareSubmission and the new parameters of validateParticipantView. BeaconSubmission is new. AGGREGATION_WIRE_VERSION is 2.These residuals stay:
base64UrlToHash decodes the full updateHash string before it checks the length. The cost is linear in the length. By default, the HTTP server limits a body string to 65,536 characters. The Nostr transport sends a plaintext of at most 65,535 bytes. At a receiver, nostr-tools 2.23.3 refuses a longer plaintext, but nostr-tools 2.23.4 and later accept it (ADR 153). InMemoryTransport and a direct caller of receive() have no limit.CohortCompleteInfo.smtProof. The service cannot give the nonce again. The SMT appendix says: “If the DID controller does not have the nonce, the SMT Proof of that signal cannot be verified.”message.from is only a claim on InMemoryTransport and on a custom transport with no sender authentication. It is also only a claim for a direct caller of the state machine. A party that sends messages with the DID of a member can submit a value for that DID before the member. The member then finds a wrong slot and vetoes the signal. ADR 152 records this case in the residual “The structure check and a transport with no inbound authentication”.Superseded.
collectedUpdates in the list of service getters. Decision 4 of this ADR renames it collectedUpdateHashes.maxUpdateSizeBytes enforced in AggregationService.#handleSubmitUpdate before any expensive processing. Oversized updates are dropped with a diagnostic.” “Consequences”, “Positive”: the words “oversized updates are dropped before expensive work”. “Negative”: the bullet that starts “The maxUpdateSizeBytes cap is a protocol parameter”. Decision 3 of this ADR removes the cap. With the form check of decision 2, the service refuses each value that is not 32 bytes.AGGREGATION_WIRE_VERSION = 1 is checked on every message at ingestion.” Decision 11 of this ADR sets the value 2.SignedBTCR2Update is signed at the payload layer;”. The MuSig2 partial signatures still give non-repudiation of the aggregation output. Decision 1 of this ADR removes the update from SUBMIT_UPDATE, so no protocol message holds the update.pendingUpdates. Decision 4 of this ADR renames it updateHashes.buildSMTTree iterates the full participant list, not just pendingUpdates: an inclusion leaf for submitters, a non-inclusion leaf (SHA-256(SHA-256(nonce))) for decliners, with a per-slot nonce generated for every member as today”. Decision 5: the words “emits SUBMIT_NONINCLUDED”, for an SMT cohort. Decision 6: the sentence “The SMT strategy, for a decliner, skips the update-id requirement and recomputes SHA-256(SHA-256(nonce)) before verifying the proof.” Decisions 5 to 8 of this ADR replace these rules: the member makes the nonce, and the strategy uses the nonce of the member.SHA-256(SHA-256(nonce)) and never the literal zero.” Also the clause “the service owns the SMT nonce as it does today”, and the sentence “Participant-owned nonce persistence (the spec notes participants persist their nonces) is a later refinement, not part of this change.” Decisions 5, 7, and 8 of this ADR replace them.SHA-256(SHA-256(nonce))”, for a member that sends SUBMIT_NONINCLUDED in an SMT cohort. Decision 7 of this ADR leaves that index empty. A member that declines with the library participant still has the leaf value hash(hash(nonce)) (decision 6).maxUpdateSizeBytes, defaulting to DEFAULT_MAX_UPDATE_SIZE_BYTES), which a caller can size to its deployment”. Decision 3 of this ADR removes the cap.participantPk is self-declared and not tied to the sender’s DID”: the clause “#verifySubmittedUpdate pins proof.verificationMethod.split('#')[0] === sender (service/service.ts:667), so the proof must at least name the sender’s own DID.” The service reads no proof. The map key or the leaf index binds the value to the DID of the sender, so the residual stays the “pollution of the sender’s own DID”. Decision 3 of this ADR removes the check.SMTBeacon.broadcastSignal and the aggregation cohort build their entries with a 32-byte random nonce.” Decision 5 of this ADR gives the nonce to the participant.split(/[?/#]/)[0]. The service no longer reads a proof id. The “Superseded” block: the sentence “The service now takes the text before the first ?, /, or # (decision 10).” in the ADR 090 bullet. Decision 3 of this ADR removes the check.#submittedUpdateProblem, its checks 1 to 3, the order “the body, NOT_A_MEMBER, the size cap, the new checks, then DUPLICATE_RESPONSE”, the bullet “UPDATE_SENDER_MISMATCH is new (check 3).”, and the bullet “UPDATE_MALFORMED now has four causes”. Decision 9: the two rows that start “The service checks only the structure of the proof and the sender DID.” and “The proof id must be the sender DID”. Decisions 2 and 3 of this ADR replace them.UPDATE_SENDER_MISMATCH” and the sentence “A proof that is not an object, a verificationMethod that is not a string, or a proofValue that is empty or not a string gives UPDATE_MALFORMED (before: UPDATE_VERIFICATION_FAILED).” Decision 3 of this ADR removes these checks.?, /, or #.”, and the sentences “#submittedUpdateProblem now makes this check (decision 4). It also refuses a relative id and the bare DID.” in the ADR 090 bullet. Decision 3 of this ADR removes these checks.updateHash. Decisions 1 to 3 of this ADR replace the rule.addEntries:”, and the bullet “AggregationCohort.buildSMTTree (aggregation): randomBytes(32).” “Consequences”: the words “and AggregationCohort.buildSMTTree” in the bullet “SMTBeacon.broadcastSignal and AggregationCohort.buildSMTTree do not change.” Decisions 4 and 5 of this ADR move the nonce to the participant.Unchanged.
hasAllResponses(). CohortCompleteInfo.included stays. A CAS member with no update sends SUBMIT_NONINCLUDED and is absent from the map (decisions 2 and 4). Decision 7 of this ADR adds the empty index for SUBMIT_NONINCLUDED in an SMT cohort.deriveSignal. Decision 8 of this ADR adds the nonce and the updateId of the member to the SMT Proof that it validates.updateHash: the service records a rejection for a bad value and does not throw.addEntries refuses a nonce that is not 32 bytes, and the verifier accepts a nonce of any length. Decision 9 of this ADR adds a 32-byte nonce in prepareSubmission of the SMT strategy.packages/aggregation/src/core/messages/base.ts: AGGREGATION_WIRE_VERSION = 2 and its JSDoc; BaseBody.updateHash replaces signedUpdate.packages/aggregation/src/core/messages/bodies.ts: SubmitUpdateBody.updateHash and its JSDoc; the JSDoc of SubmitNonIncludedBody; isSubmitUpdateMessage requires an updateHash string.packages/aggregation/src/core/messages/factories.ts: createSubmitUpdateMessage takes updateHash; the JSDoc.packages/aggregation/src/core/cohort.ts: updateHashes, addUpdate(participantDid, updateHash), buildCASAnnouncement, and buildSMTTree with zeroHashRoot, generateZeroHashProof, serializeProof, and the skip of cachedZero[0].packages/aggregation/src/core/beacon-strategy.ts: BeaconSubmission, prepareSubmission of both strategies, and the new parameters of validateParticipantView.packages/aggregation/src/participant/participant.ts: the state fields updateHash, nonce, and updateId; submitUpdate and declineUpdate call #submit; #handleDistributeAggregatedData gives the values that the member kept to the strategy; the JSDoc of PendingValidation.smtProof and PendingValidation.expectedHash.packages/aggregation/src/participant/events.ts: the JSDoc of CohortCompleteInfo.smtProof and update-submitted.packages/aggregation/src/service/service.ts: #handleSubmitUpdate with the form check; collectedUpdateHashes; the removal of #submittedUpdateProblem, maxUpdateSizeBytes, DEFAULT_MAX_UPDATE_SIZE_BYTES, UPDATE_TOO_LARGE, and UPDATE_SENDER_MISMATCH.packages/aggregation/src/service/service-runner.ts: the removal of maxUpdateSizeBytes.packages/aggregation/src/service/events.ts: the JSDoc of update-received and message-rejected.packages/aggregation/README.md, packages/method/docs/aggregation.md, packages/method/docs/beacon-system-overview.md, packages/method/docs/http-transport.md.packages/aggregation/tests/):
aggregation-submit-update-hash.spec.ts (new): the form check (6 values that are not a string, 7 strings that do not decode to 32 bytes), the string as sent, the CAS map, the SMT tree and its proofs with no nonce, the membership check before the decode check (step 4 of decision 2), and the refused value that is not an answer.aggregation-submit-proof-id.spec.ts (removed): the tests of the sender check of ADR 152, decision 4.aggregation-noninclusion.spec.ts: the empty index for SUBMIT_NONINCLUDED (decision 7), the skip of cachedZero[0] (decision 10), the strategy ignores a service nonce (decision 8), prepareSubmission of both strategies, the SMT decline sends SUBMIT_UPDATE (decision 6), and the CAS body { cohortId, updateHash }.aggregation-receive-path-dos.spec.ts: the helper newUpdateHash(); an updateHash that is not a string gets UPDATE_MALFORMED.aggregation-security.spec.ts: T2.1, a 4 KiB updateHash gets UPDATE_MALFORMED.aggregation-cohort-binding.spec.ts: the SMT Proof of cohort-complete has a nonce, and verifyProof returns true for it.aggregation-http-envelope.spec.ts, aggregation-transport-sender-auth.spec.ts: the version values use AGGREGATION_WIRE_VERSION, not 1.cc96c580): Aggregate Beacons (“BTCR2 Update Aggregation”, “Respond to Update Opportunities”, “Step 3: Aggregate & Request Signal Confirmation”, “Confirm Signal Request”), Beacons (“SMT Beacon”), Algorithms (“SMT Proof Verification”), Optimized Sparse Merkle Tree Implementation, Privacy Considerations (“Updates Can Be Private”, “Aggregation Services Only Need Hashes”, “Aggregation Participants Provide DIDs to Aggregation Services”).packages/method/docs/aggregation.md: the wire version.