@kumiai/mls-rpc 0.10.3 → 0.11.0
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/README.md +2 -2
- package/lib/apply-commit.js +4 -1
- package/lib/mls.js +4 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -56,8 +56,8 @@ Its configuration path is `MlsContext.clientConfig.keyRetentionConfig.maximumFor
|
|
|
56
56
|
The sender uses half the smaller of its configured window and that default. Members must use compatible receiver windows.
|
|
57
57
|
Missing key retention configuration uses the default window. A window below 2 throws `HandshakeWindowConfigError` on reservation.
|
|
58
58
|
Consuming a stale reservation throws `HandshakeReservationError`, including after an epoch advance.
|
|
59
|
-
|
|
60
|
-
The decoder refuses
|
|
59
|
+
All checkpoints use client-state format v2, including optional reservation evidence and leaf-zero proposal sender references.
|
|
60
|
+
The decoder refuses every other version with an unsupported-version error. There is no migration path.
|
|
61
61
|
Each framed attempt adds a consumption save before journalling.
|
|
62
62
|
Durable hosts must supply `simpleHandleAccess.persist` or an equivalent transactional `HandleAccess`.
|
|
63
63
|
Persistence must resolve after a durable write and reject without changing storage.
|
package/lib/apply-commit.js
CHANGED
|
@@ -5,7 +5,10 @@ function rosterOf(handle) {
|
|
|
5
5
|
return handle.listMembers().map((member)=>({
|
|
6
6
|
did: member.id,
|
|
7
7
|
leafIndex: member.leafIndex,
|
|
8
|
-
longForm: member.longForm
|
|
8
|
+
longForm: member.longForm,
|
|
9
|
+
...member.admission != null && {
|
|
10
|
+
admission: member.admission
|
|
11
|
+
}
|
|
9
12
|
}));
|
|
10
13
|
}
|
|
11
14
|
/**
|
package/lib/mls.js
CHANGED
|
@@ -168,7 +168,10 @@ export async function deriveRecoverySecret(handle) {
|
|
|
168
168
|
return await access.read((group)=>group.listMembers().map((member)=>({
|
|
169
169
|
did: member.id,
|
|
170
170
|
leafIndex: member.leafIndex,
|
|
171
|
-
longForm: member.longForm
|
|
171
|
+
longForm: member.longForm,
|
|
172
|
+
...member.admission != null && {
|
|
173
|
+
admission: member.admission
|
|
174
|
+
}
|
|
172
175
|
})));
|
|
173
176
|
},
|
|
174
177
|
async readCommitHeader (commit) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kumiai/mls-rpc",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "The @kumiai/rpc consumer ports (GroupCrypto, GroupMLS) implemented over @kumiai/mls",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mls",
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
"lib/*"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@kokuin/token": "^0.
|
|
29
|
-
"@kumiai/mls": "^0.
|
|
30
|
-
"@kumiai/rpc": "^0.
|
|
28
|
+
"@kokuin/token": "^0.6.1",
|
|
29
|
+
"@kumiai/mls": "^0.11.0",
|
|
30
|
+
"@kumiai/rpc": "^0.11.0",
|
|
31
31
|
"@noble/ciphers": "^2.4.0",
|
|
32
32
|
"@sozai/runtime": "^0.1.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@kumiai/rpc-conformance": "^0.
|
|
35
|
+
"@kumiai/rpc-conformance": "^0.11.0",
|
|
36
36
|
"ts-mls": "2.0.0-rc.13",
|
|
37
37
|
"vitest": "^5.0.5"
|
|
38
38
|
},
|