#89 Added signing using GnuPG

This commit is contained in:
the-djmaze 2022-02-09 22:58:47 +01:00
parent 8d0154530c
commit 2c5322129c
5 changed files with 59 additions and 28 deletions

View file

@ -114,17 +114,16 @@ export const PgpUserStore = new class {
* Returns the first library that can.
*/
async getKeyForSigning(email) {
/* // TODO: sign in PHP fails
let key = GnuPGUserStore.getPrivateKeyFor(email, 1);
if (key) {
return ['gnupg', key];
}
*/
let key = OpenPGPUserStore.getPrivateKeyFor(email, 1);
if (key) {
return ['openpgp', key];
}
key = GnuPGUserStore.getPrivateKeyFor(email, 1);
if (key) {
return ['gnupg', key];
}
// return await this.getMailvelopePrivateKeyFor(email, 1);
}