zkbnb-crypto
is the crypto library for ZkBNB Protocol. It implements rollup block circuit and supports exporting groth16/plonk proving key, verifying key and solidity verifier contract.
cd circuit/solidity;
go test -run TestExportSolGroth16 -count=1 -timeout 99999s
After this command is finished, there will be 3 generated files: zkbnb.pk_groth16
, zkbnb.vk_groth16
and ZkBNBVerifier.sol
cd circuit/solidity;
go test -run TestExportSolPlonk -count=1 -timeout 99999s
After this command is finished, there will be 4 generated files: zkbnb.pk_plonk
, zkbnb.vk_plonk
, zkbnb.srs_plonk
and ZkBNBPlonkVerifier.sol
NOTICE: The generated proving and verifying key shouldn't be used in production environment, it's only for test purpose.
Welcome to make contributions to github.com/bnb-chain/zkbnb-crypto
. Thanks!