4 Commits

Author SHA1 Message Date
023c2f640b Make private key extractable too.
Main reason: https://bugzilla.mozilla.org/show_bug.cgi?id=1133698

Unfortunately, because of this bug Firefox cannot save non-exportable
keys to IndexedDB. As a workaround, we call exportKey before saving and
store JsonWebKey instead. We use importKey again while reading the key
from the database.

Extra reason for this change - during testing isomorphic-webcrypto
complains about keys read from IndexedDB.

While being less secure, this could also help users export their keys if
they want to migrate their identities to another computer...
2020-01-07 18:11:22 +01:00
dd8c11bea4 Add ability to import exported public key 2020-01-04 12:46:35 +01:00
67c38498f4 Add methods to generate keys using ECDH 2019-12-07 10:14:01 -03:00
d0f14f83f9 Add test for IndexedDB 2019-12-02 22:42:18 -03:00