Javascript library implementing common utilities for polygon-hermez zkevm
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
In order to test, the following private keys are being used. This keys are not meant to be used in any production environment:
- private key:
0x28b2b0318721be8c8339199172cd7cc8f5e273800a35616ec893083a4b32c02e
- address:
0x617b3a3528F9cDd6630fd3301B9c8911F7Bf063D
- address:
- private key:
0x4d27a600dce8c29b7bd080e29a26972377dbb04d7a27d919adbb602bf13cfd23
- address:
0x4d5Cf5032B2a844602278b01199ED191A86c93ff
- address:
- private key:
0x1d0722aff4b29780e9a78e0bf28d5e127fb276cfbb0c3eb6a0e1728401777f17
- address:
0xeB17ce701E9D92724AA2ABAdA7E4B28830597Dd9
- address:
- private key:
0xd049e68efa0d85a3824c0b79f6817a986bb0cb3a075bcc2699118eca881d70ce
- address:
0x187Bd40226A7073b49163b1f6c2b73d8F2aa8478
- address:
- private key:
0x0b929d50d7fda8155539e6befa96ff297e3e9ebce4d908f570310bdf774cb32b
- address:
0xabCcEd19d7f290B84608feC510bEe872CC8F5112
- address:
- private key:
0xdfd01798f92667dbf91df722434e8fbe96af0211d4d1b82bbbbc8f1def7a814f
- address:
0xc949254d682d8c9ad5682521675b8f43b102aec4
- address: