Javascript library implementing common utilities for polygon-hermez zkevm
WARNING: All code here is in WIP
const zkevmCommon = require("@0xpolygonhermez/zkevm-commonjs");
You will find the following modules inside the package:
Constants
: zkevm global constantscontractUtils
: zkevm smart contract utilsProcessor
: class to add transactions and process themprocessorUtils
: utils used in processorMemDb
: class implementing memory databasesmtUtils
: sparse-merkle-tree utilsSMT
: class implementing the zkevm sparse-merkle-treestateUtils
: zkevm state utilsTmpSmtDB
: temporary sparse-merkle-tree databaseutils
: general utilsZkEVMDB
: class implementing the zkevm databasegetPoseidon
: singleton to build poseidon just only onceMTBridge
: Merkle tree implementation used by the bridgemtBridgeUtils
: Merkle tree bridge utils
npm run eslint & npm run test
Copyright
Polygon zkevm-commonjs
was developed by Polygon. While we plan to adopt an open source license, we haven’t selected one yet, so all rights are reserved for the time being. Please reach out to us if you have thoughts on licensing.
This code has not yet been audited, and should not be used in any production systems.