Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Changed hash func from keccak to sha256 for block commitment * update nameHash to address * add NftContentType of NFT * add NftContentType of NFT * update Address []byte to string * add ChangePubKey deal with * Added gkr for merkle proof * add NftContentType,GetAccountIndex,GetToAccountIndex * isTransferTx to isChangePubKey * add l1Sig * add l1Sig * add l1 account index * adjust pubdata sort * update L1Address string to []byte * update after address * update accountDelta * update NftContentType int64 * update NftContentType int64 * Replaced poseidon with mimc gkr for node hash calculation * update NftContentType int8 * update NbAccountsPerTx to 5 * update L1Signature * add GetPubKey * remove L1Signature * check Sig * Adjust the double signature logic in the crypto part * remove mark code * Adjust the double signature logic in the crypto part * check Sig * check full exit * check full exit * check full exit * update NftContentType init64 * remove withdraw NftContentType * update NftContentType int64 * check full exit * check full exit * check l1 address * Change all poseidon to mimc with gkr, include inside smt * Bump gnark lib * create account when transfer nft * AllocateGKRCircuit while setting witness * Debug unsatisfied constraint * Debug unsatisfied constraint * Testing Gkr mimc * create account when transfer nft * Zns 2 l2 offer (#2) * add offer Chanel * add offer Chanel * add offer Chanel * add offer Chanel * deal with CallData length * add check field --------- Co-authored-by: toni.x <toni.x@binance.com> * update offer Protocol * update offer Protocol * Enlarge bN to 19 * Revert "Enlarge bN to 19" This reverts commit 3e1dc6a. * Remove obsolete sparse_merkle.go * fix: generation problems * Enlarge bN to 19 * add protocol account (#3) (#5) Co-authored-by: toni.x <toni.x@binance.com> * Adapted zkbnb-crypto for gnark v0.8.0 * Adapted zkbnb-crypto for gnark v0.8.0, added support for split ccs file loading * change bN to 17 * cancel offer accountIndex error information * change bN to 15 * Adapted zkbnb-crypto for gnark v0.8.0, added support for split ccs file loading * update channel * change bN to 16 * Added support for persisting r1cs len * Added support for persisting r1cs len * Added support for persisting r1cs len * fixed mimc hash calculation * fixed empty asset root * added different batch sizes * Fix gkr under 0.8 * added different batch sizes * update NftContentType * Replace Deprecated GetNbVariables() * Fix README.md * Ignore generated files * update NftContentType * update NftContentType * updated gnark version * Bump gnark, gkr ontop 0.8 * debug gkr * Tmp fix commitment * rollback asset root * UnpackAmount * updated gnark versions * updated gnark version * lazify + change to getNbR1C * amount precision check * hack to fix creation of r1cs * Bump gnark * Bump gnark & gnark-crypto * Choose bN from block size * check whether offer id is too high * check whether offer id is too high * Fix AssertIsLessOrEqual and enlarge bN * mintnft toaddress not exist * mintnft toaddress not exist * mintnft toaddress not exist * mintnft toaddress not exist * mintnft toaddress not exist * Use BlockCommitment for AssertValid * Use bnb-chain gnark, gkr mimc function to zkbnb * Use golang 1.18 * test solve under block size 1 * fixes mimc call data hash calculation * Fixes signature generation after crypto lib update (#9) * Fixes signature generation after crypto lib update (#10) * fix maxOfferId too high * added flag to not generate pk and vk (#11) * added flag to not generate pk and vk * changed flag name * changed flag name * adjust account index * addressed audit review * addressed audit review (#12) * adjust account index * addressed audit review * addressed audit review * fixed wrong assert * addressed audit review * addressed audit review * addressed audit review * rollback unnecessary changes * Revert "Bugfix/audit changes" --------- Co-authored-by: toni.x <toni.x@binance.com> Co-authored-by: markc <mark.c@binance.com> Co-authored-by: Smith S <smith.s@binance.com> Co-authored-by: qct <tango.qct@gmail.com> Co-authored-by: toni <98298250+15000785133@users.noreply.github.com> Co-authored-by: garyxiong123 <502238410@qq.com>
- Loading branch information