You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Missing UnsignedEncryptedInput struct in ICofhe.sol #118
Description: ICofhe.sol does not define the UnsignedEncryptedInput struct, but it is referenced by downstream packages (e.g. @cofhe/mock-contracts). This causes compilation failures in any project that imports both packages.
Steps to reproduce:
Install @fhenixprotocol/cofhe-contracts and @cofhe/mock-contracts in the same Hardhat project
Run npx hardhat compile
Compilation fails with:
DeclarationError: Declaration "UnsignedEncryptedInput" not found in "@fhenixprotocol/cofhe-contracts/ICofhe.sol"
Current workaround:
Manually patching node_modules/@fhenixprotocol/cofhe-contracts/ICofhe.sol to add the struct.
Additional context: @cofhe/mock-contracts imports UnsignedEncryptedInput from @fhenixprotocol/cofhe-contracts/ICofhe.sol in MockTaskManager.sol, but the struct does not exist in the source file.
Looks like this is already fixed on current master — UnsignedEncryptedInput is defined in contracts/ICofhe.sol (alongside EncryptedInput). Happy to close if maintainers agree; otherwise shout if a published npm package is still missing it.
Activity
anaraydinli55 commentedon Aug 25, 2026
Related: FhenixProtocol/cofhe-mock-contracts#14
kutluhaneth46 commentedon Sep 7, 2026
Taking this — adding
UnsignedEncryptedInputtoICofhe.solso downstream mock-contracts can compile.kutluhaneth46 commentedon Sep 7, 2026
Looks like this is already fixed on current
master—UnsignedEncryptedInputis defined incontracts/ICofhe.sol(alongsideEncryptedInput). Happy to close if maintainers agree; otherwise shout if a published npm package is still missing it.