Encrypted inputs
What are encrypted inputs?
Key characteristics of encrypted inputs:
Parameters in encrypted functions
function exampleFunction(
externalEbool param1,
externalEuint64 param2,
externalEuint8 param3,
bytes calldata inputProof
) public {
// Function logic here
}Input Generation using Hardhat
Input Order
Validating encrypted inputs
Example validation
Example validation in the ConfidentialERC20.sol smart contract
ConfidentialERC20.sol smart contractHow validation works
Best Practices
Last updated