Experimental light client for Ethereum
As the Ethereum blockchain has evolved, the need for an optimized mobile implementation has increased. Rethereum tackles this challenge by implementing the light client protocol. Switiching from Geth to Rethereum brought the sync time from 4 hrs to just 20 min.
First, to obtain the binaries, you can use npm. So you'll need to make sure you have Node installed on your system.
$ npm i -g rethereumRun make to compile the libraries and executables that are
meant to be installed.
$ make$ make testUse jbuilder utop DIR where DIR if the folder contains the jbuild
file for a library. For instance, our sub2 sample library can be
used as follows:
$ jbuilder utop rlp/lib
...
utop # open Rethereum_rlp;;
utop # Rlp.encode (Rlp.empty ());;
- : unit = ()The project can be installed with or without opam. Without opam, you can run the following which relies directly on dune/jbuilder:
$ make installSimilarly:
$ make uninstallWith opam, you can install the current development version of your project as a single opam package. It will override the currently installed package of the same name, if any:
$ opam pin add proj .For more information on opam pin, please consult the opam documentation.
The advantage of the opam-based method is that other opam packages can depend on this one, and opam will recompile them automatically as necessary.
