Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

native: The fheDiv operation is not supported #224

Open
goshawk-3 opened this issue Dec 30, 2024 · 0 comments · May be fixed by #225
Open

native: The fheDiv operation is not supported #224

goshawk-3 opened this issue Dec 30, 2024 · 0 comments · May be fixed by #225
Assignees
Labels
bug Something isn't working

Comments

@goshawk-3
Copy link
Contributor

Description

When running a FHE division operation, it fails with error signature 1320155232 not recognized

function runDiv(uint256 lhs, uint256 rhs) external virtual returns (uint256 result) {
        bytes1 toType = 0x03;
        lhs = this.trivialEncrypt(lhs, toType);
        rhs = this.trivialEncrypt(rhs, toType);
        result = this.fheDiv(lhs, rhs, 0x00);
    }

function runDivByScalar(uint256 lhs, uint256 rhs) external virtual returns (uint256 result) {
      bytes1 toType = 0x03;
      lhs = this.trivialEncrypt(lhs, toType);
      result = this.fheDiv(lhs, rhs, 0x01);
}
@goshawk-3 goshawk-3 added the bug Something isn't working label Dec 30, 2024
@goshawk-3 goshawk-3 self-assigned this Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant