Coder Social home page Coder Social logo

hyvm's Introduction

๐Ÿ‘‹ Hi ! I'm a technologist, and an opensource enthusiast.

Twitter LinkedIn Dev.to blog


I mostly maintain:

pg-mem

pgsql-ast-parser

pg-server

... among others ๐Ÿ˜€


I usualy prefer...

NodeJS TypeScript C#

GraphQL React Vue.js Angular

Postgres Cassandra DynamoDB ElasticSearch

But I'm playing with/interested in...

Haskell ELM Clojure Kotlin Scala Rust Elixir

...so I may switch to one of those soon

I also know quite well, but dont like as much...

Java Python C++

hyvm's People

Contributors

erjanmx avatar maximebrugel avatar obatirou avatar oguimbal avatar yashiru avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

hyvm's Issues

How to interact with the HyVM?

As a new user, how can I interact with the HyVM?

Are there tools available to compile to the bytecode executable by the HyVM? Or alternatively, Is there a particular method of extracting a specific function's bytecode from a previously compiled evm contract?

Verifier feature development

At this time, HyVM do not use a verifier but it can be enabled. A verifier can be used to add some check on calls to the HyVM. For example prevent specific opcodes to be executed or being able to only call one contract with the HyVM.
Other checks can be implemented at the discretion of the user.

The feature is not maintained for now, it needs tests, refactor and fixes.

refactor: improve static wrapper

I think the flow would be a bit more consistent if staticExec was actually just a fallback.

staticHyvm.staticcall("")

vs

staticHyvm.staticExec("")

There's an example here. ๐Ÿซก

Jump destination validity

At this time, op_jump only checks if the destination is equal to 0x5B (jumpdest). But this is not sufficient to validate that the destination is valid: 0x5B could be a value inside a PUSH. More checks need to be done.
In case checks consume too much gas, those could be made optional as not verifying them would not prevent correct bytecode to be correctly executed (for example if bytecode was compiled using solc or equivalent).

https://ethereum.org/en/developers/tutorials/yellow-paper-evm/#943-jump-dest-valid

Feat request: Calldata

Right now it appears like calldata opcodes are essentially unused, they appear to just load zeros.

Would it make sense to add a calldata mechanism where calldata can be appended to the bytecode?

This might be a breaking change though.

Our use case would be that users can sign bytecode they wish to execute (eg. bytecode to do a limit order), but then the executing agent can add some execution-time variables in (eg. the execution fee recipient wallet or an extra slippage parameter).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.