MetaMask / metamask-snaps-beta

Fork of MetaMask that supports plugins! Read the Wiki!
https://github.com/MetaMask/metamask-snaps-beta/wiki
MIT License
142 stars 57 forks source link

Add low-resolution wrappers for timing functions #135

Closed danfinlay closed 3 years ago

danfinlay commented 4 years ago

We should not provide high-resolution timers to plugins, but some plugins do require a sense of time. For those, we should provide a low-resolution access to time, and probably make it a permission, too.

Added timers for beta purposes (ethers uses timers to monitor transaction completion) in https://github.com/MetaMask/metamask-snaps-beta/pull/134

kumavis commented 3 years ago

i assume this is related to timing attacks, including spectre style vulns