From 8a4af0c0ea1235a2b5579c4923ff85be17ccc9c0 Mon Sep 17 00:00:00 2001 From: Sorunome Date: Wed, 3 Feb 2021 13:02:38 +0100 Subject: [PATCH] chore: add keyOrPassphrase to cross-signing selfVerify --- lib/encryption/cross_signing.dart | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/encryption/cross_signing.dart b/lib/encryption/cross_signing.dart index b1fc9f44..e35c3a4a 100644 --- a/lib/encryption/cross_signing.dart +++ b/lib/encryption/cross_signing.dart @@ -70,9 +70,13 @@ class CrossSigning { null; } - Future selfSign({String passphrase, String recoveryKey}) async { + Future selfSign( + {String passphrase, String recoveryKey, String keyOrPassphrase}) async { final handle = encryption.ssss.open(EventTypes.CrossSigningMasterKey); - await handle.unlock(passphrase: passphrase, recoveryKey: recoveryKey); + await handle.unlock( + passphrase: passphrase, + recoveryKey: recoveryKey, + keyOrPassphrase: keyOrPassphrase); await handle.maybeCacheAll(); final masterPrivateKey = base64.decode(await handle.getStored(EventTypes.CrossSigningMasterKey));