Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

Commit 7f69cd9

Browse files
committed
feat: lastResort keypackages, minMax len for id
1 parent 811415d commit 7f69cd9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

polyproto/mls/types.tsp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ namespace polyproto.mls;
88
*/
99
model KeyPackage {
1010
@doc("Unique identifier for this key package")
11+
@minLength(8)
12+
@maxLength(128)
1113
id: string;
1214

1315
@doc("The client's public key")
@@ -18,6 +20,9 @@ model KeyPackage {
1820

1921
@doc("The client's signature over the key package")
2022
signature: bytes;
23+
24+
@doc("Whether this KeyPackage is to act as a \"last resort\" KeyPackage, for when all other KeyPackages have been exhausted.")
25+
lastResort: boolean = false;
2126
}
2227

2328
/**

0 commit comments

Comments
 (0)