Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Precompiled contracts... #11

Closed
b00f opened this issue Nov 28, 2018 · 4 comments
Closed

Precompiled contracts... #11

b00f opened this issue Nov 28, 2018 · 4 comments

Comments

@b00f
Copy link

b00f commented Nov 28, 2018

Does eEVM support ethereum pre-compiled contracts?

@eddyashton
Copy link
Member

We don't currently implement the precompiled contracts at addresses 1 to 8, as we didn't need them. I'll update the README to make note of this.

If you run bytecode that tries to call one of these contracts, it will throw a notImplemented Exception.

@b00f
Copy link
Author

b00f commented Nov 29, 2018

Do you have any plan to add pre-compiled contracts or at least providing an option to call pre-compiled contracts from evm (call opcode)?

@microsoft microsoft deleted a comment from flxflx Nov 29, 2018
@eddyashton
Copy link
Member

This isn't a high priority for us, but we'd be happy to take a PR. Given implementations of the precompiled contracts, it should be a small change to the call opcode handler to forward a call to a precompiled contract rather than throwing an error.

@saurik
Copy link

saurik commented May 20, 2019

We don't currently implement the precompiled contracts at addresses 1 to 8, as we didn't need them.

Is there somewhere I can read about the intended use cases for this VM? It just seems strange to me that it is targeting a multi-year old version of the EVM spec (Homestead) and doesn't intend to provide support for basic functionality like ecrecover, so I'm probably misunderstanding what it was made for.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants