Skip to content

Commit 066c57c

Browse files
Lawliet-Chanxinran chen0xmountaintop
authored
feat(libzkp): upgrade zkevm to v0.3 (#458)
Co-authored-by: xinran chen <[email protected]> Co-authored-by: HAOYUatHZ <[email protected]>
1 parent da5fb4e commit 066c57c

File tree

1 file changed

+39
-39
lines changed

1 file changed

+39
-39
lines changed

src/libraries/verifier/RollupVerifier.sol

+39-39
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ library RollupVerifier {
404404
t1
405405
)
406406
);
407-
update_hash_scalar(16714713909008743871958519800387174981836263428094013165455393524274317552599, absorbing, 0);
407+
update_hash_scalar(2139959605475961860937015093717899596443860272195454718006038460622762772338, absorbing, 0);
408408
update_hash_point(m[0], m[1], absorbing, 2);
409409
for (t0 = 0; t0 <= 4; t0++) {
410410
update_hash_point(proof[0 + t0 * 2], proof[1 + t0 * 2], absorbing, 5 + t0 * 3);
@@ -768,53 +768,53 @@ library RollupVerifier {
768768
(t0, t1) = (ecc_mul_add_pm(m, proof, 1461486238301980199876269201563775120819706402602, t0, t1));
769769
(t0, t1) = (
770770
ecc_mul_add(
771-
1166255827574633395469889753099263335112651429543747917860844891223509395230,
772-
18119530258797056675590474142263379269133137917926199526995010149706608452268,
771+
12307352371204071280982447264592356604770557236167151424765174303760462590176,
772+
6738828114747374257112102922036038748323647805843324928244611619348440720206,
773773
m[78],
774774
t0,
775775
t1
776776
)
777777
);
778778
(t0, t1) = (
779779
ecc_mul_add(
780-
479654250230311733675045936187074887335076118790675548184957988765243051391,
781-
3100719863754926915077773261837642988281275398456491618898287285885297258973,
780+
3572242117438706971950566231972492037272493617550220451749916794782159485990,
781+
16886246169673548502689746904271067387916898759455168062589790036798273590349,
782782
m[77],
783783
t0,
784784
t1
785785
)
786786
);
787787
(t0, t1) = (
788788
ecc_mul_add(
789-
3244117516185602927429536955777596704962143625995582449305913349309466588374,
790-
4949447249861524239830935874731901209583893161129086694779290040738731707868,
789+
11667701672179251391428332036216303114114878686596844372637022183683605784102,
790+
4424360138861548935598382331834755349352382522764859897096077224499379358893,
791791
m[76],
792792
t0,
793793
t1
794794
)
795795
);
796796
(t0, t1) = (
797797
ecc_mul_add(
798-
14948547489533026990535642276664751166524290089518721217701084060838942037816,
799-
4158304819018152066924650590566402375351800342702049911667413813453648544913,
798+
11240594699132670076282994399620649156234033942671103470791998382362667407672,
799+
17410590891928584702846573685036010315759947034684539213237289080064757682376,
800800
m[75],
801801
t0,
802802
t1
803803
)
804804
);
805805
(t0, t1) = (
806806
ecc_mul_add(
807-
12409839630787558779666051790740339639835641801241950167020910758875751567721,
808-
10190386726927990167988725115981898191213252554332296547744162818590468069671,
807+
10431705595614601525988802826965197285907257500319030545448174217748190806819,
808+
1722933959999977963181823060205533471550038234474886371618129746215350346061,
809809
m[74],
810810
t0,
811811
t1
812812
)
813813
);
814814
(t0, t1) = (
815815
ecc_mul_add(
816-
17970998203939514710036667497443822563987440725661639935300105673829885028203,
817-
5681616020208389658397995048088678631695525787311431942560298329387592854586,
816+
14863668788118458080709552309780821215832907388990302710391373385352975619400,
817+
9169018986198736700730396443421849971028048839478170199874313312628076354525,
818818
m[73],
819819
t0,
820820
t1
@@ -831,8 +831,8 @@ library RollupVerifier {
831831
);
832832
(t0, t1) = (
833833
ecc_mul_add(
834-
3955318928206501525438681058758319558200398421433597349851235741670899388496,
835-
15892053452767975688653514510353871405466169306176036727161401156637227884251,
834+
16688566313919879798220881603072582217705901250983507280549353151657923151225,
835+
445098670208016740953162173980757005967278816602831621939241146108331296000,
836836
m[71],
837837
t0,
838838
t1
@@ -849,8 +849,8 @@ library RollupVerifier {
849849
);
850850
(t0, t1) = (
851851
ecc_mul_add(
852-
847101878434221983907574308143360385944534458215526175646288607915875901481,
853-
2846353475656269162370753247605184679473264230467654203502980134120309217445,
852+
513112338211370645376563601122653940299862742690848745156963955674379550556,
853+
19810928912892354135597308070341362773960905471215656964629317311935270323996,
854854
m[69],
855855
t0,
856856
t1
@@ -867,8 +867,8 @@ library RollupVerifier {
867867
);
868868
(t0, t1) = (
869869
ecc_mul_add(
870-
12355852135968866678343538084506414981897123075397230437920965961095525036339,
871-
19173350083521771086213125757940272853888577158427508914933730457941026326040,
870+
17445679909532066182757122062586547291967150697181781539174006766798005273657,
871+
17920199801340037140434307313099628133732498466723263177150297206806678079555,
872872
m[67],
873873
t0,
874874
t1
@@ -885,89 +885,89 @@ library RollupVerifier {
885885
);
886886
(t0, t1) = (
887887
ecc_mul_add(
888-
20702481083445183838662364419201395944400358423071711333544748994437443350157,
889-
21729036491728923882358088642589857779818948470983153549909552615176584955200,
888+
13379886303467716633100661055108788127518098273159576422399393845531832231957,
889+
21249906638915552082114032161592926549649883644681146775463416600414893201674,
890890
m[65],
891891
t0,
892892
t1
893893
)
894894
);
895895
(t0, t1) = (
896896
ecc_mul_add(
897-
5211075648402252045446907842677410998750480902260529776286467677659191740672,
898-
17759936859541227097052484319437171023743724174885338509498798745592136568923,
897+
15157693885943911041713554408535787389704098552723039519149609571282120709253,
898+
8962689722656126928294285568371442660369086845752902597634306189893971808811,
899899
m[64],
900900
t0,
901901
t1
902902
)
903903
);
904904
(t0, t1) = (
905905
ecc_mul_add(
906-
5685082624811934526131077036509066197941130699019907200139767495570575867807,
907-
9975752329518147542127949868789945608848626426600733728808879384778577859545,
906+
282500810502773337615392632832701051006147314629556169662041861893490731214,
907+
1405529063404455180686378299193347180609188503983796479637225424184561469680,
908908
m[63],
909909
t0,
910910
t1
911911
)
912912
);
913913
(t0, t1) = (
914914
ecc_mul_add(
915-
1845955600044282712468400114813806019045133083112296001842856684609288249746,
916-
6677624509889210837770197526955652810854887548330294041671470991988491766303,
915+
11581441121680069988106695739022834936323842874155303510513226862110129423436,
916+
2637320643329934410767647331146883629269877662310710930543876671326457005009,
917917
m[62],
918918
t0,
919919
t1
920920
)
921921
);
922922
(t0, t1) = (
923923
ecc_mul_add(
924-
17721426954552427189787075605835833086212392642349293317822925006771731953198,
925-
10818582862561493154030196266254401851195091198556669943079029419869326006448,
924+
6360815457536167490502686961772031084682621045969143466863419537587018809166,
925+
10001859183015380960752959272517632163813167330052728059681917034087071226990,
926926
m[61],
927927
t0,
928928
t1
929929
)
930930
);
931931
(t0, t1) = (
932932
ecc_mul_add(
933-
10224195420706066705577574946990328089867884648164309818089282930621493257750,
934-
3961164971057442035153270823831734824136501489880082889417523554417504868473,
933+
21781254208176618175216351429386597067185902632164357922466579817402010196650,
934+
18011967939699408822151124361783982305672777114883443865079846085493004089455,
935935
m[60],
936936
t0,
937937
t1
938938
)
939939
);
940940
(t0, t1) = (
941941
ecc_mul_add(
942-
4155760488117491189818018229959225087159948854404593659816501566044290851616,
943-
7849169269773333823959590214273366557169699873629739076719523623811579483219,
942+
12550056285320974621731132541688213633166264204189969052965198828791126689449,
943+
12418566505549505379214997261574757719056298067095922377233136904055538090780,
944944
m[59],
945945
t0,
946946
t1
947947
)
948948
);
949949
(t0, t1) = (
950950
ecc_mul_add(
951-
9303688548891777886487749234688027352493881691026887577351708905397127609597,
952-
15420408437274623857443274867832176492025874147466147921781316121716419230415,
951+
9820677253892770121706802995351466260380886278639412117111326545845072594611,
952+
2704926883961612314233615484035572222203996626426533880905375148146034288774,
953953
m[58],
954954
t0,
955955
t1
956956
)
957957
);
958958
(t0, t1) = (
959959
ecc_mul_add(
960-
1713011977361327447402228333889074876456179272285913377605323580535155713105,
961-
17494574374943878587945090358233307058027002207479570017169918665020362475592,
960+
3929991866827575569085896493971875891867580103388188978578999736252850472742,
961+
19719633293434441328320083084584841400798470465761819534504206259130079607839,
962962
m[57],
963963
t0,
964964
t1
965965
)
966966
);
967967
(t0, t1) = (
968968
ecc_mul_add(
969-
688560977158667877997491129442687540611216305867558421257325952561991356422,
970-
1877117185103259325255107191485730322497880777053300656925558921917058739650,
969+
7226449887868214736840321440792751573104787954076714575187805312000538789936,
970+
10412613750159988958028585780050254212547419910094153825608548817586948534492,
971971
m[56],
972972
t0,
973973
t1

0 commit comments

Comments
 (0)