Fix initial kyber key hydration; improve generation and logging

This commit is contained in:
Scott Nonnenberg 2023-07-14 12:18:32 -07:00 committed by Fedor Indutnyy
parent 3f399b1329
commit 9d03d9b59c
2 changed files with 11 additions and 7 deletions

View file

@ -281,7 +281,7 @@ async function bulkAddKyberPreKeys(
await channels.bulkAddKyberPreKeys(updated);
}
async function getAllKyberPreKeys(): Promise<Array<KyberPreKeyType>> {
const keys = await channels.getAllPreKeys();
const keys = await channels.getAllKyberPreKeys();
return keys.map(key => specToBytes(KYBER_PRE_KEY_SPEC, key));
}