-
Notifications
You must be signed in to change notification settings - Fork 227
Remove enclave_time
#7153
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
Remove enclave_time
#7153
Conversation
I think it's arguably useful to preserve the shim, and expose a single time at least in JS execution sandboxes. Edit: thought about this some more, and I think this is best done as a |
While this is a plausibly useful feature, it is not the semantics we previously offered - this would be a new feature. The JS sandboxes didn't get a fixed-at-transaction-start time. Calling This PR is aiming to simply remove the concept of "untrusted host time", since it was SGX-specific. This also provides parity between C++ and JS - their natural builtin time-fetching APIs work lift-and-shift style. I think this is the right place for us to be, and any app that needs deterministic fixed timestamps for reproducibility can do so themselves? * TODO - I need to deprecate, and document the deprecation of, this API. |
@eddyashton I agree it's a new feature, but I think it's one to consider for applications where replayability is important. There's a range of options we can provide:
Across a few API choices:
With one more dimension:
The monotonicity has non trivial implications on concurrency control, by the way. |
…o_more_time_hacks
No longer need to separate these - all code can call standard library functions to access time.