@@ -46,17 +46,24 @@ enum ComputeKeyType {
4646
4747message KeySetAddedInfo {
4848 // Must be set if KeyGenSecretKeyConfig::UseExistingCompressionSecretKey is used
49- RequestId compression_keyset_id = 1 ;
49+ RequestId existing_compression_keyset_id = 1 ;
50+
51+ // Can be set if KeyGenSecretKeyConfig::UseExistingCompressionSecretKey is used,
52+ // if it's not set then the epoch ID from the KeyGenRequest is used.
53+ RequestId compression_epoch_id = 2 ;
5054
5155 // Must be set if KeySetType::DecompressionOnly is used
52- RequestId from_keyset_id_decompression_only = 2 ;
56+ RequestId from_keyset_id_decompression_only = 3 ;
5357
5458 // Must be set if KeySetType::DecompressionOnly is used
55- RequestId to_keyset_id_decompression_only = 3 ;
59+ RequestId to_keyset_id_decompression_only = 4 ;
5660
5761 // Must be set if KeyGenSecretKeyConfig::UseExisting is used
58- RequestId existing_keyset_id = 4 ;
59- RequestId existing_epoch_id = 5 ;
62+ RequestId existing_keyset_id = 5 ;
63+
64+ // Can be set if KeyGenSecretKeyConfig::UseExisting is used,
65+ // if it's not set then the epoch ID from the KeyGenRequest is used.
66+ RequestId existing_epoch_id = 6 ;
6067}
6168
6269// The keyset configuration message.
@@ -111,9 +118,16 @@ message PartialKeyGenPreprocRequest {
111118}
112119
113120enum KeyGenSecretKeyConfig {
114- // The default must be represented by 0.
121+ // The default must be represented by 0, which is to generate all the secret keys .
115122 GenerateAll = 0 ;
123+
124+ // Use existing secret shares to generate the keyset, the key ID and epoch ID
125+ // that points to the shares must be given by KeySetAddedInfo.
116126 UseExisting = 1 ;
127+
128+ // Use the secret share from an existing compression secret key,
129+ // but generate the other shares. The share of the existing compresssion secret key
130+ // must be given by KeySetAddedInfo.
117131 UseExistingCompressionSecretKey = 2 ;
118132}
119133
@@ -178,7 +192,8 @@ message KeyGenRequest {
178192 // See https://github.com/zama-ai/kms-internal/issues/2530
179193 RequestId context_id = 7 ;
180194
181- // The epoch number placeholder (zama-ai/kms-internal#2743).
195+ // The epoch ID for the key generation, i.e., the shares produced
196+ // under this keygen will be stored and registered under this epoch.
182197 RequestId epoch_id = 8 ;
183198}
184199
0 commit comments