ZkLink is a cross chain protocol powered by ZK-Rollup. It currently supports evm based chain such as Ethereum, Binance Smart Chain, Heco Chain.
npm install
Before compile contracts, you should generate KeysWithPlonkVerifier.sol and put it to contracts/zksync directory. For local development, you could copy and rename the KeysWithPlonkVerifier.example at the root path.
cp KeysWithPlonkVerifier.example contracts/zksync/KeysWithPlonkVerifier.solnpx hardhat compile
Run all unit tests:
npx hardhat test
Run a unit test:
npx hardhat test test/bytes_test.jsFor developers, static analysis need to be done before committing code. Read more of SecurityCheck.