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

feat: first working fhevm-native implementation #151

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

david-zk
Copy link
Collaborator

Trivial encryption and adding numbers are working, all operands not thoroughly tested yet

Some changes to the api:

  • Commit function now should be called at the end of every block, it will do two things: 1) insert ciphertexts to the evm storage queue 2) flush pending ciphertexts from the cache to the evm storage

Still to be done:

  • track SSTORE opcode to see which ciphertexts are allowed to be persisted inside the cache
  • implement API call on blockchain first startup to load relevant ciphertexts from evm storage to the ciphertext cache (using evm ciphertext queue to know which ones are to be computed next)
  • add magic number to know whether we're reading ciphertext from the storage
  • support ciphertext input transactions

@antoniupop @dartdart26

@david-zk david-zk force-pushed the davidk/implement-grpc branch from 0fcc9a7 to aaca753 Compare November 29, 2024 07:06
@david-zk david-zk changed the title First working fhevm-native implementation feat: first working fhevm-native implementation Nov 29, 2024
@david-zk david-zk merged commit 1165bd3 into main Dec 10, 2024
2 of 3 checks passed
@david-zk david-zk deleted the davidk/implement-grpc branch December 10, 2024 06:10
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