Wondering what’s next for npm?Check out our public roadmap! »

    @hermeznetwork/commonjs

    0.3.0 • Public • Published

    Commonjs

    Javascript library implementing common utilities for hermez network

    Main CI npm license

    Usage

    const hermezCommons = require("@hermeznetwork/commonjs");
    

    You will find the following modules inside the package:

    • float16: custom float 16 bits to encode large integers
    • HermezAccount: class to create ethereum/babyjubjub keys
    • txUtils: transaction utils
    • stateUtils: account state utils
    • utils: global utils
    • feeTable: utils to
    • SMTTmpDb: sparse merkle tree temporary database
    • Constants: hermez network global constants
    • RollupDB: class to create rollup database
    • BatchBuilder: class to create batch-builder

    Test

    npm run eslint & npm run test
    

    WARNING All code here is in WIP

    License

    commonjs is part of the iden3 project copyright 2020 HermezDAO and published with AGPL-3 license. Please check the LICENSE file for more details.

    Install

    npm i @hermeznetwork/commonjs

    DownloadsWeekly Downloads

    103

    Version

    0.3.0

    License

    AGPL-3.0

    Unpacked Size

    225 kB

    Total Files

    32

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar