• Decrypt the given encrypted (AES) key. Get your keys from indexedDB, or use the use the passed in key to decrypt the given encrypted AES key.

    Parameters

    • encryptedKey: string

      The encrypted key, returned by create -- message.devices[name].aes

    • Optionalkeypair: CryptoKeyPair

      The keypair to use to decrypt

    Returns Promise<CryptoKey>

    The symmetric key