Expose RSA keys only for now, because we are waiting for more browsers to support ECC.
Create an instance with Keys.create b/c async.
Keys.create
Get the public encryption key as a string.
Return a string b/c mostly would use this for serializing the public encryption key.
Sign a string. Return the signature as Uint8Array.
The message to sign
Optional
The signature
Static
Return a 32-character, DNS-friendly hash of the given DID.
a DID format string
32 character, base32 hash of the DID
Restore some keys from indexedDB.
Strings to use as keys in indexedDB.
Expose RSA keys only for now, because we are waiting for more browsers to support ECC.
Create an instance with
Keys.create
b/c async.