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

wip: Get ct data #158

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open

wip: Get ct data #158

wants to merge 14 commits into from

Conversation

eshelB
Copy link
Contributor

@eshelB eshelB commented Oct 20, 2024

adding precompiled function that gets a ciphertext's data by hash

Issue: the precompiled contract is probably not the owner of the ciphertext, which makes it impossible to get it from storage.
probably this should be done instead with an rpc call outside the evm. Otherwise ownership can be bypassed if another contract calls this method.

minor open question:
assuming we go forward, solving the ownership issue, do we need to return only the .Data field of the ct, or also the other metadata fields we store such as compressed, compact, type, triviallyEncrypted, SecurityZone, etc.? currently returning only data, but trivial to add the other fields.

@Cashmaney
Copy link
Contributor

Yeah, as you said this should be an RPC call, not a call that is done via solidity. What we'd want is to create some API in fheos that exposes the functionality and have the Nitro node add a new set of RPC functions (similar to web3/net/arbdebug/etc.)

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.

2 participants