@cello-protocol/protocol-types 0.0.11 → 0.0.13
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/registration.d.ts +15 -2
- package/dist/registration.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/registration.d.ts
CHANGED
|
@@ -63,6 +63,13 @@ export interface RegisterRequest {
|
|
|
63
63
|
k_local_pubkey: string;
|
|
64
64
|
/** Hex-encoded ML-DSA-44 public key (1312 bytes, NIST FIPS 204) */
|
|
65
65
|
ml_dsa_pubkey: string;
|
|
66
|
+
/**
|
|
67
|
+
* M8B quorum registration: nodeIds (stable manifest labels, e.g. "us-east-1") of the consortium
|
|
68
|
+
* directory nodes the client resolved / can reach right now (its live roster). The directory picks the
|
|
69
|
+
* DKG quorum Q from this set ∩ its own signed manifest, requiring |Q| ≥ T = majority(N) = floor(N/2)+1.
|
|
70
|
+
* Absent on the single-node back-compat path (no manifest).
|
|
71
|
+
*/
|
|
72
|
+
reachable_node_ids?: string[];
|
|
66
73
|
}
|
|
67
74
|
/**
|
|
68
75
|
* Step 2: Client completes local DKG and sends primary_pubkey.
|
|
@@ -84,9 +91,15 @@ export interface DkgReady {
|
|
|
84
91
|
type: "dkg_ready";
|
|
85
92
|
/** Epoch ID for this DKG instance: "${k_local_pubkey}:epoch:1" */
|
|
86
93
|
epochId: string;
|
|
87
|
-
/**
|
|
94
|
+
/**
|
|
95
|
+
* M8B quorum: the size of the DKG quorum Q the directory picked (directory nodes = |Q|; total FROST
|
|
96
|
+
* participants = |Q| + 1 client). The directory sets this to |R ∩ manifest| from the client's
|
|
97
|
+
* `reachable_node_ids`. The client already knows Q's identities (Q == its resolved roster), so only the
|
|
98
|
+
* count crosses the wire — the client validates `roster.length === participants` (which also catches
|
|
99
|
+
* manifest version skew) before fanning the DKG.
|
|
100
|
+
*/
|
|
88
101
|
participants: number;
|
|
89
|
-
/** Minimum threshold for signing */
|
|
102
|
+
/** Minimum threshold for signing (T = majority(N) = floor(N/2)+1, counts the client). */
|
|
90
103
|
threshold: number;
|
|
91
104
|
}
|
|
92
105
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registration.d.ts","sourceRoot":"","sources":["../src/registration.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AAIH;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,kBAAkB,CAAC;IACzB,gFAAgF;IAChF,UAAU,EAAE,MAAM,CAAC;IACnB,gDAAgD;IAChD,cAAc,EAAE,MAAM,CAAC;IACvB,mEAAmE;IACnE,aAAa,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"registration.d.ts","sourceRoot":"","sources":["../src/registration.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AAIH;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,kBAAkB,CAAC;IACzB,gFAAgF;IAChF,UAAU,EAAE,MAAM,CAAC;IACnB,gDAAgD;IAChD,cAAc,EAAE,MAAM,CAAC;IACvB,mEAAmE;IACnE,aAAa,EAAE,MAAM,CAAC;IACtB;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC/B;AAED;;;;GAIG;AACH,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,cAAc,CAAC;IACrB,mFAAmF;IACnF,cAAc,EAAE,MAAM,CAAC;CACxB;AAID;;;;;GAKG;AACH,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,WAAW,CAAC;IAClB,kEAAkE;IAClE,OAAO,EAAE,MAAM,CAAC;IAChB;;;;;;OAMG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB,yFAAyF;IACzF,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;GAGG;AACH,MAAM,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 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cello-protocol/protocol-types",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"cbor-x": "^1.6.4",
|
|
26
|
-
"@cello-protocol/crypto": "0.0.
|
|
26
|
+
"@cello-protocol/crypto": "0.0.15"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@claude-flow/testing": "3.0.0-alpha.6",
|