@substrate-system/keys
    Preparing search index...

    Function decryptBytes

    • Decrypt the given message with the given key. We expect the iv to be prefixed to the encrypted message.

      Parameters

      • msg: Msg

        The message to decrypt

      • key: string | CryptoKey

        The key to decrypt with

      • Optionalopts: Partial<{ alg: SymmAlgorithm; iv: ArrayBuffer; length: SymmKeyLength }>

        Optional args for algorithm and stuff

      Returns Promise<ArrayBuffer>