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

runtime-sdk/callformat: randomize deoxysii nonce in simulation #1171

Merged
merged 2 commits into from Oct 19, 2022

Conversation

nhynes
Copy link
Contributor

@nhynes nhynes commented Oct 19, 2022

This PR randomizes the nonce used to encrypt runtime responses when in simulate mode. This is useful for encrypted queries (as used by confidential EVM) which may see many queries being dispatched per block with corresponding loss of complete privacy. This could be fixed in client implementations, but you'd have to know to rekey your cipher before each call, which is not the most obvious thing to do.

@codecov
Copy link

codecov bot commented Oct 19, 2022

Codecov Report

Merging #1171 (c8c0161) into main (2ae6f57) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1171   +/-   ##
=======================================
  Coverage   65.40%   65.41%           
=======================================
  Files         134      134           
  Lines       12225    12227    +2     
=======================================
+ Hits         7996     7998    +2     
  Misses       4197     4197           
  Partials       32       32           
Impacted Files Coverage Δ
runtime-sdk/src/callformat.rs 65.87% <100.00%> (+0.55%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@nhynes nhynes changed the title runtime-sdk/callforamt: randomize deoxysii nonce in simulation runtime-sdk/callformat: randomize deoxysii nonce in simulation Oct 19, 2022
@nhynes nhynes enabled auto-merge October 19, 2022 19:46
@nhynes nhynes merged commit 09b5313 into main Oct 19, 2022
@nhynes nhynes deleted the nhynes/rand-sim-nonce branch October 19, 2022 19:51
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.

None yet

2 participants