chore: add keyOrPassphrase to cross-signing selfVerify

This commit is contained in:
Sorunome 2021-02-03 13:02:38 +01:00
parent 3e7ce2fe13
commit 8a4af0c0ea
No known key found for this signature in database
GPG Key ID: B19471D07FC9BE9C
1 changed files with 6 additions and 2 deletions

View File

@ -70,9 +70,13 @@ class CrossSigning {
null;
}
Future<void> selfSign({String passphrase, String recoveryKey}) async {
Future<void> 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));