Encrypt a data for a given public key using AES algorithm
@param {String | Uint8List} data Data to encrypt
@param {String | Uint8List} key Symmetric key
Generate a keypair using a derivation function with a seed and an index. Each keys is prepending with a curve identification.
@param {String} seed Keypair derivation seed
@param {int} index Number to identify the order of keys to generate
@param {String} curve Elliptic curve to use (P256", "secp256k1", "ed25519")
Encrypt a data for a given public key using ECIES algorithm
@param {String | Uint8List} data Data to encrypt
@param {String | Uint8List} publicKey Public key for the shared secret encryption