diff --git a/lib/src/omemo/device.dart b/lib/src/omemo/device.dart index 5e3f41e..c98619b 100644 --- a/lib/src/omemo/device.dart +++ b/lib/src/omemo/device.dart @@ -101,6 +101,7 @@ class Device { /// This replaces the Onetime-Prekey with id [id] with a completely new one. Returns /// a new Device object that copies over everything but replaces said key. + @internal Future replaceOnetimePrekey(int id) async { opks[id] = await OmemoKeyPair.generateNewPair(KeyPairType.x25519); @@ -117,6 +118,7 @@ class Device { /// This replaces the Signed-Prekey with a completely new one. Returns a new Device object /// that copies over everything but replaces the Signed-Prekey and its signature. + @internal Future replaceSignedPrekey() async { final newSpk = await OmemoKeyPair.generateNewPair(KeyPairType.x25519); final newSpkId = generateRandom32BitNumber();