@cello-protocol/protocol-types 0.0.33 → 0.0.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/trust-signal.d.ts
CHANGED
|
@@ -109,7 +109,7 @@ export declare function verifyTrustSignalHash(envelope: TrustSignalEnvelope, exp
|
|
|
109
109
|
* Decode canonical envelope bytes back into the envelope — the inverse of `encodeTrustSignalEnvelope`,
|
|
110
110
|
* and the ONE decoder every party shares (INV-CANONICAL / M10-D7 — the holder's daemon that RECEIVES a
|
|
111
111
|
* delivered signal must decode with the SAME code the directory and portal encode with, never a vendored
|
|
112
|
-
* copy). The preimage is a fixed-order
|
|
112
|
+
* copy). The preimage is a fixed-order 12-element ARRAY (M10-D15); element 0 is the domain tag.
|
|
113
113
|
*
|
|
114
114
|
* REFUSES anything that is not EXACTLY canonical: it re-encodes the decoded envelope with
|
|
115
115
|
* `encodeTrustSignalEnvelope` and compares the bytes to the input. If they differ — a number that came
|
package/dist/trust-signal.js
CHANGED
|
@@ -262,7 +262,7 @@ export function verifyTrustSignalHash(envelope, expected) {
|
|
|
262
262
|
* Decode canonical envelope bytes back into the envelope — the inverse of `encodeTrustSignalEnvelope`,
|
|
263
263
|
* and the ONE decoder every party shares (INV-CANONICAL / M10-D7 — the holder's daemon that RECEIVES a
|
|
264
264
|
* delivered signal must decode with the SAME code the directory and portal encode with, never a vendored
|
|
265
|
-
* copy). The preimage is a fixed-order
|
|
265
|
+
* copy). The preimage is a fixed-order 12-element ARRAY (M10-D15); element 0 is the domain tag.
|
|
266
266
|
*
|
|
267
267
|
* REFUSES anything that is not EXACTLY canonical: it re-encodes the decoded envelope with
|
|
268
268
|
* `encodeTrustSignalEnvelope` and compares the bytes to the input. If they differ — a number that came
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cello-protocol/protocol-types",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.34",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"cbor-x": "^1.6.4",
|
|
29
|
-
"@cello-protocol/crypto": "0.0.
|
|
29
|
+
"@cello-protocol/crypto": "0.0.32"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@claude-flow/testing": "3.0.0-alpha.6",
|
|
@@ -138,6 +138,24 @@
|
|
|
138
138
|
},
|
|
139
139
|
"preimage_hex": "8c6d43454c4c4f2d545349472d7631656167656e74676167656e742d3166706f7274616c64616162626570686f6e650144010203041a69618a001b0000000125413e00f6f4",
|
|
140
140
|
"signal_hash_hex": "0c96c300e89a039a7fc967d555711db009aa7404256e009d2bd1b79aad52fdd7"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"name": "SAME-OPERATOR true — co-owned endorsement (M10B slot 12 must encode f5, not f4)",
|
|
144
|
+
"envelope": {
|
|
145
|
+
"subject_kind": "agent",
|
|
146
|
+
"subject": "agent-1",
|
|
147
|
+
"issuer_kind": "agent",
|
|
148
|
+
"issuer_pubkey": "ccdd",
|
|
149
|
+
"type": "endorsement",
|
|
150
|
+
"schema_version": 1,
|
|
151
|
+
"payload": "01020304",
|
|
152
|
+
"issued_at": 1000000000,
|
|
153
|
+
"expires_at": null,
|
|
154
|
+
"supersedes_hash": null,
|
|
155
|
+
"same_operator": true
|
|
156
|
+
},
|
|
157
|
+
"preimage_hex": "8c6d43454c4c4f2d545349472d7631656167656e74676167656e742d31656167656e7464636364646b656e646f7273656d656e740144010203041a3b9aca00f6f6f5",
|
|
158
|
+
"signal_hash_hex": "d2ea0c5ff8b556a11f836517cd778c476cfae0f7cad07794736f6921f44fd36b"
|
|
141
159
|
}
|
|
142
160
|
],
|
|
143
161
|
"wire_version_note": "REGENERATED 2026-07-30 for the M10B envelope change: `same_operator` was APPENDED as slot 12 (DOD-END-COUNT-1). This was a deliberate PROTOCOL BREAK, not a drift — every hash below differs from its pre-M10B value, and any signal minted under the 11-slot shape is unreadable by the current decoder (it refuses on arity rather than defaulting the flag, so an old signal can never be silently treated as same_operator:false). Taken now precisely because the stranded set is empty: alpha, no users, no production signals. Doing it after launch would strand real endorsements."
|