MetaMask / providers

An Ethereum Provider that connects over a stream, as injected into websites by MetaMask
MIT License
217 stars 123 forks source link

Protect internals of the provider classes using hash names #243

Open Mrtenz opened 1 year ago

Mrtenz commented 1 year ago

Currently in snaps-monorepo we wrap the Ethereum provider in a Proxy, to prevent access to internal fields. A better alternative would be to protect these fields in the first place using hash names, which are not accessible in any way.