Skip to content

Expose allowForDecryption through ITaskManager and FHE - #105

Open
Dusk1e wants to merge 1 commit into
FhenixProtocol:masterfrom
Dusk1e:allow-for-decryption-wrapper
Open

Expose allowForDecryption through ITaskManager and FHE#105
Dusk1e wants to merge 1 commit into
FhenixProtocol:masterfrom
Dusk1e:allow-for-decryption-wrapper

Conversation

@Dusk1e

@Dusk1e Dusk1e commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

TaskManager.allowForDecryption is external with no access control and is in the ABI of both task managers, but ITaskManager never declares it, so library FHE cannot wrap it. FHE.sol already exposes the read half of that flow through getDecryptResult, and the SDK's MockTaskManager logs the call as FHE.allowForDecryption, so the library is expected to carry the name.

Added the declaration and wrappers for all seven encrypted types, following the allowGlobal and allowTransient blocks, plus the matching bindings entries. Nothing under detereministic-tm changes, so DeterministicTM keeps compiling against its own interface copy.

Tests: 65 of 65 pass, same as master. compile, storage-layout:check, check:size and solhint are clean. One thing worth flagging: ACL gains 69 bytes with no ABI change, which is viaIR whole-unit compilation shifting Yul function offsets. Compiled on its own, ACL is byte identical before and after, and TaskManager stays at 17863 bytes.

TaskManager.allowForDecryption is external with no access control and is in the
ABI of both task managers, but ITaskManager never declared it, so library FHE
had no wrapper for it. FHE.sol already exposes the read half of that flow
through getDecryptResult.

Added the declaration and wrappers for all seven encrypted types, following the
allowGlobal and allowTransient blocks, plus the matching bindings entries.
Nothing under detereministic-tm changes.
@Dusk1e
Dusk1e requested a review from a team as a code owner August 19, 2026 11:47

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant