Foundry Guide
Import Inco in your contract
Use the Inco library to enable confidentiality in your contract
To start using Inco features in your contract, all you need is to add this line at the top of your solidity file:
and add this line at the top of the contract body:
Now you have access to encrypted types and operations in your contract. Here is a full example of a simple fungible token:
The following example is present with comments explaining the code here in the lightning-rod template.
This contract is explained in depth in the Concepts Guide.
Was this page helpful?