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

Add feature to disable decryptions in transaction #36

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

david-zk
Copy link
Collaborator

Adds customization option to disable decryptions in transactions, blockchain will return an error if decryption attempted during transaction when flag is set

@dartdart26 @youben11

@david-zk david-zk force-pushed the feat/disable-decryptions-during-trx branch from 308955e to b987e4e Compare November 13, 2023 07:21
Copy link
Collaborator

@dartdart26 dartdart26 left a comment

Choose a reason for hiding this comment

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

Nice!

environment.fhevmParams.DisableDecryptionsInTransaction = true
addr := common.Address{}
readOnly := false
// Call optimistic require with a false value and expect it succeeds.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: This comment is not relevant here.

@david-zk david-zk force-pushed the feat/disable-decryptions-during-trx branch from b987e4e to c2ca675 Compare November 13, 2023 09:07
@david-zk david-zk merged commit b32ca7a into main Nov 13, 2023
1 check passed
@david-zk david-zk deleted the feat/disable-decryptions-during-trx branch November 13, 2023 09:18
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.

3 participants