Solidity contracts for working with FHE smart contracts on CoFHE.
Need help getting started? Check out the Fhenix documentation!
These contracts are still under heavy construction and will be changing frequently. Consider binding your contracts to a specific version
npm install @fhenixprotocol/cofhe-contracts
Import FHE.sol or any of the helper contracts
import "@fhenixprotocol/cofhe-contracts/FHE.sol";pragma solidity ^0.8.20;
import {FHE, euint8, InEuint8} from "@fhenixprotocol/cofhe-contracts/FHE.sol";
contract Example {
euint8 _output;
function setOutput(InEuint8 calldata _encryptedNumber) public {
_output = FHE.asEuint8(_encryptedNumber);
FHE.allowThis(_output);
}
}This project is licensed under MIT.