Skip to content

Missing UnsignedEncryptedInput struct in ICofhe.sol #118

Open

Description

@anaraydinli55

Package version: @fhenixprotocol/cofhe-contracts (latest)

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:

  1. Install @fhenixprotocol/cofhe-contracts and @cofhe/mock-contracts in the same Hardhat project
  2. Run npx hardhat compile
  3. Compilation fails with:
DeclarationError: Declaration "UnsignedEncryptedInput" not found in "@fhenixprotocol/cofhe-contracts/ICofhe.sol"

Expected behavior:
ICofhe.sol should export:

struct UnsignedEncryptedInput {
    uint256 ctHash;
    uint8 securityZone;
    uint8 utype;
}

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.

Activity

  1. anaraydinli55 commented on Aug 25, 2026

    @anaraydinli55
    Author
  2. kutluhaneth46 commented on Sep 7, 2026

    @kutluhaneth46

    Taking this — adding UnsignedEncryptedInput to ICofhe.sol so downstream mock-contracts can compile.

  3. kutluhaneth46 commented on Sep 7, 2026

    @kutluhaneth46

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions