Encrypted Payloads
Learn how to encrypt payloads on EVM with secret-network-ccl npm package
With encryptData
you can encrypt a string
in a Secret Network smart contract which can be queried with a password.
Select the EVM chain that you want to use to execute the Secret Network smart contract and update your secretPathAddress with the correct gateway contract address. For this example we are using Sepolia:
encryptData
requires privateKey
, endpoint
, secretPathAddress
, network,
data,
and password
parameters:
Execute the function to encrypt your data on EVM:
Last updated