eth2
TypeScript icon, indicating that this package has built-in type declarations

0.2.3 • Public • Published

WebAssembly-compiled Beacon Chain State Transition Function

This library compiles the beacon crate into WebAssembly, exposes it with a Javascript interface, and thus allow it to run in a browser.

Quickstart

Add eth2 to your dependency. After that, run:

const beacon = import('eth2');
beacon.then(m => m.execute_minimal(block, state));

/eth2/

    Package Sidebar

    Install

    npm i eth2

    Weekly Downloads

    5

    Version

    0.2.3

    License

    GPL-3.0

    Unpacked Size

    629 kB

    Total Files

    5

    Last publish

    Collaborators

    • sorpaas