From 1c0a7adcc4e46801e3529e1b5ab630c4edf6dad8 Mon Sep 17 00:00:00 2001 From: sripwoud Date: Mon, 22 Jul 2024 12:05:15 +0200 Subject: [PATCH 1/3] chore(poseidon): add verification key json files --- packages/poseidon/poseidon-1.json | 99 ++++++++++++++++++++++++++++++ packages/poseidon/poseidon-10.json | 99 ++++++++++++++++++++++++++++++ packages/poseidon/poseidon-11.json | 99 ++++++++++++++++++++++++++++++ packages/poseidon/poseidon-12.json | 99 ++++++++++++++++++++++++++++++ packages/poseidon/poseidon-13.json | 99 ++++++++++++++++++++++++++++++ packages/poseidon/poseidon-14.json | 99 ++++++++++++++++++++++++++++++ packages/poseidon/poseidon-15.json | 99 ++++++++++++++++++++++++++++++ packages/poseidon/poseidon-16.json | 99 ++++++++++++++++++++++++++++++ packages/poseidon/poseidon-2.json | 99 ++++++++++++++++++++++++++++++ packages/poseidon/poseidon-3.json | 99 ++++++++++++++++++++++++++++++ packages/poseidon/poseidon-4.json | 99 ++++++++++++++++++++++++++++++ packages/poseidon/poseidon-5.json | 99 ++++++++++++++++++++++++++++++ packages/poseidon/poseidon-6.json | 99 ++++++++++++++++++++++++++++++ packages/poseidon/poseidon-7.json | 99 ++++++++++++++++++++++++++++++ packages/poseidon/poseidon-8.json | 99 ++++++++++++++++++++++++++++++ packages/poseidon/poseidon-9.json | 99 ++++++++++++++++++++++++++++++ 16 files changed, 1584 insertions(+) create mode 100644 packages/poseidon/poseidon-1.json create mode 100644 packages/poseidon/poseidon-10.json create mode 100644 packages/poseidon/poseidon-11.json create mode 100644 packages/poseidon/poseidon-12.json create mode 100644 packages/poseidon/poseidon-13.json create mode 100644 packages/poseidon/poseidon-14.json create mode 100644 packages/poseidon/poseidon-15.json create mode 100644 packages/poseidon/poseidon-16.json create mode 100644 packages/poseidon/poseidon-2.json create mode 100644 packages/poseidon/poseidon-3.json create mode 100644 packages/poseidon/poseidon-4.json create mode 100644 packages/poseidon/poseidon-5.json create mode 100644 packages/poseidon/poseidon-6.json create mode 100644 packages/poseidon/poseidon-7.json create mode 100644 packages/poseidon/poseidon-8.json create mode 100644 packages/poseidon/poseidon-9.json diff --git a/packages/poseidon/poseidon-1.json b/packages/poseidon/poseidon-1.json new file mode 100644 index 0000000..ec9b606 --- /dev/null +++ b/packages/poseidon/poseidon-1.json @@ -0,0 +1,99 @@ +{ + "protocol": "groth16", + "curve": "bn128", + "nPublic": 2, + "vk_alpha_1": [ + "20491192805390485299153009773594534940189261866228447918068658471970481763042", + "9383485363053290200918347156157836566562967994039712273449902621266178545958", + "1" + ], + "vk_beta_2": [ + [ + "6375614351688725206403948262868962793625744043794305715222011528459656738731", + "4252822878758300859123897981450591353533073413197771768651442665752259397132" + ], + [ + "10505242626370262277552901082094356697409835680220590971873171140371331206856", + "21847035105528745403288232691147584728191162732299865338377159692350059136679" + ], + [ + "1", + "0" + ] + ], + "vk_gamma_2": [ + [ + "10857046999023057135944570762232829481370756359578518086990519993285655852781", + "11559732032986387107991004021392285783925812861821192530917403151452391805634" + ], + [ + "8495653923123431417604973247489272438418190587263600148770280649306958101930", + "4082367875863433681332203403145435568316851327593401208105741076214120093531" + ], + [ + "1", + "0" + ] + ], + "vk_delta_2": [ + [ + "2163542928548905947896678956684071685423781099324882879510801721907989064888", + "2340618149359620585312321030878631999659039320231581359038219236149631763816" + ], + [ + "5870132499270633845244269499623164405548018862360596940485582800596774127452", + "9254036701666827375186896088687192458784874184085158589215912574071739326602" + ], + [ + "1", + "0" + ] + ], + "vk_alphabeta_12": [ + [ + [ + "2029413683389138792403550203267699914886160938906632433982220835551125967885", + "21072700047562757817161031222997517981543347628379360635925549008442030252106" + ], + [ + "5940354580057074848093997050200682056184807770593307860589430076672439820312", + "12156638873931618554171829126792193045421052652279363021382169897324752428276" + ], + [ + "7898200236362823042373859371574133993780991612861777490112507062703164551277", + "7074218545237549455313236346927434013100842096812539264420499035217050630853" + ] + ], + [ + [ + "7077479683546002997211712695946002074877511277312570035766170199895071832130", + "10093483419865920389913245021038182291233451549023025229112148274109565435465" + ], + [ + "4595479056700221319381530156280926371456704509942304414423590385166031118820", + "19831328484489333784475432780421641293929726139240675179672856274388269393268" + ], + [ + "11934129596455521040620786944827826205713621633706285934057045369193958244500", + "8037395052364110730298837004334506829870972346962140206007064471173334027475" + ] + ] + ], + "IC": [ + [ + "19490069286251317200471893224761952280235157078692599655063040494106083015102", + "15613730057977833735664106983317680013118142165231654768046521650638333652991", + "1" + ], + [ + "1563543155852853229359605494188815884199915022658219002707722789976065966419", + "858819375930654753672617171465307097688802650498051619587167586479724200799", + "1" + ], + [ + "3808889614445935800597561392085733302718838702771107544944545050886958022904", + "13293649293049947010793838294353767499934999769633605908974566715226392122400", + "1" + ] + ] +} diff --git a/packages/poseidon/poseidon-10.json b/packages/poseidon/poseidon-10.json new file mode 100644 index 0000000..6810aa9 --- /dev/null +++ b/packages/poseidon/poseidon-10.json @@ -0,0 +1,99 @@ +{ + "protocol": "groth16", + "curve": "bn128", + "nPublic": 2, + "vk_alpha_1": [ + "20491192805390485299153009773594534940189261866228447918068658471970481763042", + "9383485363053290200918347156157836566562967994039712273449902621266178545958", + "1" + ], + "vk_beta_2": [ + [ + "6375614351688725206403948262868962793625744043794305715222011528459656738731", + "4252822878758300859123897981450591353533073413197771768651442665752259397132" + ], + [ + "10505242626370262277552901082094356697409835680220590971873171140371331206856", + "21847035105528745403288232691147584728191162732299865338377159692350059136679" + ], + [ + "1", + "0" + ] + ], + "vk_gamma_2": [ + [ + "10857046999023057135944570762232829481370756359578518086990519993285655852781", + "11559732032986387107991004021392285783925812861821192530917403151452391805634" + ], + [ + "8495653923123431417604973247489272438418190587263600148770280649306958101930", + "4082367875863433681332203403145435568316851327593401208105741076214120093531" + ], + [ + "1", + "0" + ] + ], + "vk_delta_2": [ + [ + "1112447314063621540315834780069198739002661672132959536184933052484914376519", + "1474992390694772487643449158097297401087693785980712157977498493771925998352" + ], + [ + "7924668040342389689612350942509944838038496518970823739437452459671381800836", + "4724890550148168571595368666952711364466408779834445834046301015190767072984" + ], + [ + "1", + "0" + ] + ], + "vk_alphabeta_12": [ + [ + [ + "2029413683389138792403550203267699914886160938906632433982220835551125967885", + "21072700047562757817161031222997517981543347628379360635925549008442030252106" + ], + [ + "5940354580057074848093997050200682056184807770593307860589430076672439820312", + "12156638873931618554171829126792193045421052652279363021382169897324752428276" + ], + [ + "7898200236362823042373859371574133993780991612861777490112507062703164551277", + "7074218545237549455313236346927434013100842096812539264420499035217050630853" + ] + ], + [ + [ + "7077479683546002997211712695946002074877511277312570035766170199895071832130", + "10093483419865920389913245021038182291233451549023025229112148274109565435465" + ], + [ + "4595479056700221319381530156280926371456704509942304414423590385166031118820", + "19831328484489333784475432780421641293929726139240675179672856274388269393268" + ], + [ + "11934129596455521040620786944827826205713621633706285934057045369193958244500", + "8037395052364110730298837004334506829870972346962140206007064471173334027475" + ] + ] + ], + "IC": [ + [ + "798266006634704296356807896304782617057267109446481684272074776676559365377", + "2119139191057773416624154862008823601747165120947596460685518302760052477540", + "1" + ], + [ + "17743954615775269739473094351635203185883870143434239552566169722164063573412", + "4830438380339493939707702694553275524057591153138914848741234629532535265855", + "1" + ], + [ + "3796651289821923027753272300677071875561083096603899517484713434570556592125", + "6095027127012064440741913106185486005983523295112206123623056096004008125125", + "1" + ] + ] +} diff --git a/packages/poseidon/poseidon-11.json b/packages/poseidon/poseidon-11.json new file mode 100644 index 0000000..2f91d6c --- /dev/null +++ b/packages/poseidon/poseidon-11.json @@ -0,0 +1,99 @@ +{ + "protocol": "groth16", + "curve": "bn128", + "nPublic": 2, + "vk_alpha_1": [ + "20491192805390485299153009773594534940189261866228447918068658471970481763042", + "9383485363053290200918347156157836566562967994039712273449902621266178545958", + "1" + ], + "vk_beta_2": [ + [ + "6375614351688725206403948262868962793625744043794305715222011528459656738731", + "4252822878758300859123897981450591353533073413197771768651442665752259397132" + ], + [ + "10505242626370262277552901082094356697409835680220590971873171140371331206856", + "21847035105528745403288232691147584728191162732299865338377159692350059136679" + ], + [ + "1", + "0" + ] + ], + "vk_gamma_2": [ + [ + "10857046999023057135944570762232829481370756359578518086990519993285655852781", + "11559732032986387107991004021392285783925812861821192530917403151452391805634" + ], + [ + "8495653923123431417604973247489272438418190587263600148770280649306958101930", + "4082367875863433681332203403145435568316851327593401208105741076214120093531" + ], + [ + "1", + "0" + ] + ], + "vk_delta_2": [ + [ + "12249968644662304834073133907153089873558962714475272702200787816924511201762", + "10329255749665680246220781455468288633915525329241470488612989993889528759647" + ], + [ + "8379477850573296064523394139829085376151866600926553474464842731460723220137", + "13975202135139105440811287339327408011019650210177592566571220927186055282367" + ], + [ + "1", + "0" + ] + ], + "vk_alphabeta_12": [ + [ + [ + "2029413683389138792403550203267699914886160938906632433982220835551125967885", + "21072700047562757817161031222997517981543347628379360635925549008442030252106" + ], + [ + "5940354580057074848093997050200682056184807770593307860589430076672439820312", + "12156638873931618554171829126792193045421052652279363021382169897324752428276" + ], + [ + "7898200236362823042373859371574133993780991612861777490112507062703164551277", + "7074218545237549455313236346927434013100842096812539264420499035217050630853" + ] + ], + [ + [ + "7077479683546002997211712695946002074877511277312570035766170199895071832130", + "10093483419865920389913245021038182291233451549023025229112148274109565435465" + ], + [ + "4595479056700221319381530156280926371456704509942304414423590385166031118820", + "19831328484489333784475432780421641293929726139240675179672856274388269393268" + ], + [ + "11934129596455521040620786944827826205713621633706285934057045369193958244500", + "8037395052364110730298837004334506829870972346962140206007064471173334027475" + ] + ] + ], + "IC": [ + [ + "20896314949419669765122080719670563957005377809880391165219112342045724637250", + "4832396215740174951649707718991048955348422076401947958263135738277030640702", + "1" + ], + [ + "16593634394872419207033083223572861328698354554381035892795187358904450228380", + "9701239775839670407542964511868405320901788463030859950701125893205826970190", + "1" + ], + [ + "9167350343757520738096817169608613527226407725783625898259506700381039420314", + "15333436194900493791133741272915135408304144665526863658315589456211375313779", + "1" + ] + ] +} diff --git a/packages/poseidon/poseidon-12.json b/packages/poseidon/poseidon-12.json new file mode 100644 index 0000000..b27bcee --- /dev/null +++ b/packages/poseidon/poseidon-12.json @@ -0,0 +1,99 @@ +{ + "protocol": "groth16", + "curve": "bn128", + "nPublic": 2, + "vk_alpha_1": [ + "20491192805390485299153009773594534940189261866228447918068658471970481763042", + "9383485363053290200918347156157836566562967994039712273449902621266178545958", + "1" + ], + "vk_beta_2": [ + [ + "6375614351688725206403948262868962793625744043794305715222011528459656738731", + "4252822878758300859123897981450591353533073413197771768651442665752259397132" + ], + [ + "10505242626370262277552901082094356697409835680220590971873171140371331206856", + "21847035105528745403288232691147584728191162732299865338377159692350059136679" + ], + [ + "1", + "0" + ] + ], + "vk_gamma_2": [ + [ + "10857046999023057135944570762232829481370756359578518086990519993285655852781", + "11559732032986387107991004021392285783925812861821192530917403151452391805634" + ], + [ + "8495653923123431417604973247489272438418190587263600148770280649306958101930", + "4082367875863433681332203403145435568316851327593401208105741076214120093531" + ], + [ + "1", + "0" + ] + ], + "vk_delta_2": [ + [ + "1603577461351145237460259381405283204774341184168675781740422925920213054841", + "3706733735985448047029179710310913715814938499559216050701016544129786573466" + ], + [ + "4065106517364216611140084351997247697763474657001728606625823626051222410744", + "17902902272455153114942885527802151180849763508206164697426845376254122674939" + ], + [ + "1", + "0" + ] + ], + "vk_alphabeta_12": [ + [ + [ + "2029413683389138792403550203267699914886160938906632433982220835551125967885", + "21072700047562757817161031222997517981543347628379360635925549008442030252106" + ], + [ + "5940354580057074848093997050200682056184807770593307860589430076672439820312", + "12156638873931618554171829126792193045421052652279363021382169897324752428276" + ], + [ + "7898200236362823042373859371574133993780991612861777490112507062703164551277", + "7074218545237549455313236346927434013100842096812539264420499035217050630853" + ] + ], + [ + [ + "7077479683546002997211712695946002074877511277312570035766170199895071832130", + "10093483419865920389913245021038182291233451549023025229112148274109565435465" + ], + [ + "4595479056700221319381530156280926371456704509942304414423590385166031118820", + "19831328484489333784475432780421641293929726139240675179672856274388269393268" + ], + [ + "11934129596455521040620786944827826205713621633706285934057045369193958244500", + "8037395052364110730298837004334506829870972346962140206007064471173334027475" + ] + ] + ], + "IC": [ + [ + "16543510929460662532386886546901011043138961778902766992229923474505072642586", + "7288111264950369152610735086150458884933258785894500389698639872930852462663", + "1" + ], + [ + "1994453756596995022826442237786101382469308865506647442894126417820462624694", + "12283578265208666129358338863068849999489745351625672248537470813852350624388", + "1" + ], + [ + "15764090122090539610137315975980769027497965597241892197050094573700859685031", + "16127936860826353217400374080861290401287757977000068338683474176835798271546", + "1" + ] + ] +} diff --git a/packages/poseidon/poseidon-13.json b/packages/poseidon/poseidon-13.json new file mode 100644 index 0000000..a69b130 --- /dev/null +++ b/packages/poseidon/poseidon-13.json @@ -0,0 +1,99 @@ +{ + "protocol": "groth16", + "curve": "bn128", + "nPublic": 2, + "vk_alpha_1": [ + "20491192805390485299153009773594534940189261866228447918068658471970481763042", + "9383485363053290200918347156157836566562967994039712273449902621266178545958", + "1" + ], + "vk_beta_2": [ + [ + "6375614351688725206403948262868962793625744043794305715222011528459656738731", + "4252822878758300859123897981450591353533073413197771768651442665752259397132" + ], + [ + "10505242626370262277552901082094356697409835680220590971873171140371331206856", + "21847035105528745403288232691147584728191162732299865338377159692350059136679" + ], + [ + "1", + "0" + ] + ], + "vk_gamma_2": [ + [ + "10857046999023057135944570762232829481370756359578518086990519993285655852781", + "11559732032986387107991004021392285783925812861821192530917403151452391805634" + ], + [ + "8495653923123431417604973247489272438418190587263600148770280649306958101930", + "4082367875863433681332203403145435568316851327593401208105741076214120093531" + ], + [ + "1", + "0" + ] + ], + "vk_delta_2": [ + [ + "4281465055183353693988009657665874937810486095924525481588770496591745047662", + "14733852396156516682305809378247487074191841227114452424922891448115104473763" + ], + [ + "755966731121265617758834569131541156421143272832152711477254809755056847203", + "2944551669155086262712412251653281938667416282998406018010801454995774750756" + ], + [ + "1", + "0" + ] + ], + "vk_alphabeta_12": [ + [ + [ + "2029413683389138792403550203267699914886160938906632433982220835551125967885", + "21072700047562757817161031222997517981543347628379360635925549008442030252106" + ], + [ + "5940354580057074848093997050200682056184807770593307860589430076672439820312", + "12156638873931618554171829126792193045421052652279363021382169897324752428276" + ], + [ + "7898200236362823042373859371574133993780991612861777490112507062703164551277", + "7074218545237549455313236346927434013100842096812539264420499035217050630853" + ] + ], + [ + [ + "7077479683546002997211712695946002074877511277312570035766170199895071832130", + "10093483419865920389913245021038182291233451549023025229112148274109565435465" + ], + [ + "4595479056700221319381530156280926371456704509942304414423590385166031118820", + "19831328484489333784475432780421641293929726139240675179672856274388269393268" + ], + [ + "11934129596455521040620786944827826205713621633706285934057045369193958244500", + "8037395052364110730298837004334506829870972346962140206007064471173334027475" + ] + ] + ], + "IC": [ + [ + "6814792559890925047818282843694260141378659909315003118590070069849331402952", + "11487140246612953459078678078682837634162621680655211065906468894225318882237", + "1" + ], + [ + "17360742729430479877984059553981878760229504858672709960462279772992971228248", + "13690322572462596796349153488376752918916016991516526844586250585646241977694", + "1" + ], + [ + "4906588735496489330523967649950093670925034337304754138190133951387294341057", + "5218460120914285994082898891708144613476357035579628488245805720152917550286", + "1" + ] + ] +} diff --git a/packages/poseidon/poseidon-14.json b/packages/poseidon/poseidon-14.json new file mode 100644 index 0000000..50ddfe1 --- /dev/null +++ b/packages/poseidon/poseidon-14.json @@ -0,0 +1,99 @@ +{ + "protocol": "groth16", + "curve": "bn128", + "nPublic": 2, + "vk_alpha_1": [ + "20491192805390485299153009773594534940189261866228447918068658471970481763042", + "9383485363053290200918347156157836566562967994039712273449902621266178545958", + "1" + ], + "vk_beta_2": [ + [ + "6375614351688725206403948262868962793625744043794305715222011528459656738731", + "4252822878758300859123897981450591353533073413197771768651442665752259397132" + ], + [ + "10505242626370262277552901082094356697409835680220590971873171140371331206856", + "21847035105528745403288232691147584728191162732299865338377159692350059136679" + ], + [ + "1", + "0" + ] + ], + "vk_gamma_2": [ + [ + "10857046999023057135944570762232829481370756359578518086990519993285655852781", + "11559732032986387107991004021392285783925812861821192530917403151452391805634" + ], + [ + "8495653923123431417604973247489272438418190587263600148770280649306958101930", + "4082367875863433681332203403145435568316851327593401208105741076214120093531" + ], + [ + "1", + "0" + ] + ], + "vk_delta_2": [ + [ + "19303084202081721369960581062929081833499721886906545686247356570351459509808", + "15284269166986159757834994903138310865044992939113922450772748822018365848457" + ], + [ + "17830772301034645801268170157618501426832080945298848662179427190843279075372", + "8279399622872373522939906429873377013471372836150957365733383388045403114539" + ], + [ + "1", + "0" + ] + ], + "vk_alphabeta_12": [ + [ + [ + "2029413683389138792403550203267699914886160938906632433982220835551125967885", + "21072700047562757817161031222997517981543347628379360635925549008442030252106" + ], + [ + "5940354580057074848093997050200682056184807770593307860589430076672439820312", + "12156638873931618554171829126792193045421052652279363021382169897324752428276" + ], + [ + "7898200236362823042373859371574133993780991612861777490112507062703164551277", + "7074218545237549455313236346927434013100842096812539264420499035217050630853" + ] + ], + [ + [ + "7077479683546002997211712695946002074877511277312570035766170199895071832130", + "10093483419865920389913245021038182291233451549023025229112148274109565435465" + ], + [ + "4595479056700221319381530156280926371456704509942304414423590385166031118820", + "19831328484489333784475432780421641293929726139240675179672856274388269393268" + ], + [ + "11934129596455521040620786944827826205713621633706285934057045369193958244500", + "8037395052364110730298837004334506829870972346962140206007064471173334027475" + ] + ] + ], + "IC": [ + [ + "13282248485020570420370930767608741307342877737916403488447236834118682154819", + "13643529490169828084500852304502939907684096114138860997087808495233563072227", + "1" + ], + [ + "5830864539585072595043466360478712864357530872155710302353766522442537458812", + "19630573211115930246472127117269713022239927640438155481395734635211224817450", + "1" + ], + [ + "19595834379767327691325219705384917752650436054074663235665180007150886015402", + "21776132326533679474262043062256203971768128822420306261908561590372896137645", + "1" + ] + ] +} diff --git a/packages/poseidon/poseidon-15.json b/packages/poseidon/poseidon-15.json new file mode 100644 index 0000000..42d2826 --- /dev/null +++ b/packages/poseidon/poseidon-15.json @@ -0,0 +1,99 @@ +{ + "protocol": "groth16", + "curve": "bn128", + "nPublic": 2, + "vk_alpha_1": [ + "20491192805390485299153009773594534940189261866228447918068658471970481763042", + "9383485363053290200918347156157836566562967994039712273449902621266178545958", + "1" + ], + "vk_beta_2": [ + [ + "6375614351688725206403948262868962793625744043794305715222011528459656738731", + "4252822878758300859123897981450591353533073413197771768651442665752259397132" + ], + [ + "10505242626370262277552901082094356697409835680220590971873171140371331206856", + "21847035105528745403288232691147584728191162732299865338377159692350059136679" + ], + [ + "1", + "0" + ] + ], + "vk_gamma_2": [ + [ + "10857046999023057135944570762232829481370756359578518086990519993285655852781", + "11559732032986387107991004021392285783925812861821192530917403151452391805634" + ], + [ + "8495653923123431417604973247489272438418190587263600148770280649306958101930", + "4082367875863433681332203403145435568316851327593401208105741076214120093531" + ], + [ + "1", + "0" + ] + ], + "vk_delta_2": [ + [ + "12411829451512518181461157908903404032923838709254036314205661356527904248619", + "4958744684982942420487257140698262775285068527464835611752422791919533930766" + ], + [ + "4609026343236083006594282485360505356960664679372824283978241025060255488051", + "6602919418691384495761993774556460651989803266493302358110580271458101895907" + ], + [ + "1", + "0" + ] + ], + "vk_alphabeta_12": [ + [ + [ + "2029413683389138792403550203267699914886160938906632433982220835551125967885", + "21072700047562757817161031222997517981543347628379360635925549008442030252106" + ], + [ + "5940354580057074848093997050200682056184807770593307860589430076672439820312", + "12156638873931618554171829126792193045421052652279363021382169897324752428276" + ], + [ + "7898200236362823042373859371574133993780991612861777490112507062703164551277", + "7074218545237549455313236346927434013100842096812539264420499035217050630853" + ] + ], + [ + [ + "7077479683546002997211712695946002074877511277312570035766170199895071832130", + "10093483419865920389913245021038182291233451549023025229112148274109565435465" + ], + [ + "4595479056700221319381530156280926371456704509942304414423590385166031118820", + "19831328484489333784475432780421641293929726139240675179672856274388269393268" + ], + [ + "11934129596455521040620786944827826205713621633706285934057045369193958244500", + "8037395052364110730298837004334506829870972346962140206007064471173334027475" + ] + ] + ], + "IC": [ + [ + "10672190684358488826593441743377739192693575863202325591312856408936680120020", + "9717978615445017015997632608006427441955061002796104162232282550809107181476", + "1" + ], + [ + "5828007128983331222838337093606954646925973608593933197261396517201848325094", + "12964702707860770903006771736549085339329027071623624221129924563214896441694", + "1" + ], + [ + "11332800322397218917690923441720418652504295099919694685995980166401299180449", + "277445635710795537937356070051610985002729781994507435749406622715010456375", + "1" + ] + ] +} diff --git a/packages/poseidon/poseidon-16.json b/packages/poseidon/poseidon-16.json new file mode 100644 index 0000000..1c4b70e --- /dev/null +++ b/packages/poseidon/poseidon-16.json @@ -0,0 +1,99 @@ +{ + "protocol": "groth16", + "curve": "bn128", + "nPublic": 2, + "vk_alpha_1": [ + "20491192805390485299153009773594534940189261866228447918068658471970481763042", + "9383485363053290200918347156157836566562967994039712273449902621266178545958", + "1" + ], + "vk_beta_2": [ + [ + "6375614351688725206403948262868962793625744043794305715222011528459656738731", + "4252822878758300859123897981450591353533073413197771768651442665752259397132" + ], + [ + "10505242626370262277552901082094356697409835680220590971873171140371331206856", + "21847035105528745403288232691147584728191162732299865338377159692350059136679" + ], + [ + "1", + "0" + ] + ], + "vk_gamma_2": [ + [ + "10857046999023057135944570762232829481370756359578518086990519993285655852781", + "11559732032986387107991004021392285783925812861821192530917403151452391805634" + ], + [ + "8495653923123431417604973247489272438418190587263600148770280649306958101930", + "4082367875863433681332203403145435568316851327593401208105741076214120093531" + ], + [ + "1", + "0" + ] + ], + "vk_delta_2": [ + [ + "12928936783476847217385944194400683124825241799984261666857761218864690391243", + "5278595026692792620013955098153554211519181151043920167982617557972134904932" + ], + [ + "7867254378080502591737112588884439947487170763984145898218659231729439552260", + "20894185823432548986429317839038397565626988045178879632731554286681669819601" + ], + [ + "1", + "0" + ] + ], + "vk_alphabeta_12": [ + [ + [ + "2029413683389138792403550203267699914886160938906632433982220835551125967885", + "21072700047562757817161031222997517981543347628379360635925549008442030252106" + ], + [ + "5940354580057074848093997050200682056184807770593307860589430076672439820312", + "12156638873931618554171829126792193045421052652279363021382169897324752428276" + ], + [ + "7898200236362823042373859371574133993780991612861777490112507062703164551277", + "7074218545237549455313236346927434013100842096812539264420499035217050630853" + ] + ], + [ + [ + "7077479683546002997211712695946002074877511277312570035766170199895071832130", + "10093483419865920389913245021038182291233451549023025229112148274109565435465" + ], + [ + "4595479056700221319381530156280926371456704509942304414423590385166031118820", + "19831328484489333784475432780421641293929726139240675179672856274388269393268" + ], + [ + "11934129596455521040620786944827826205713621633706285934057045369193958244500", + "8037395052364110730298837004334506829870972346962140206007064471173334027475" + ] + ] + ], + "IC": [ + [ + "86775556699891941583123276431604861117607918118921404923042712889138274879", + "14759328092142878568124943477991930809809651785962195940712634115221722222569", + "1" + ], + [ + "20587317296408903557562082822150306305156789836788233257760942330988928993338", + "12774638026052488480510449004117723866673354480831773481619251986421580001942", + "1" + ], + [ + "18790156527059336816249174042938006922945801451739084347405900279382431369589", + "20245819713646952948400401365133759240714478548907783423055257617618511044262", + "1" + ] + ] +} diff --git a/packages/poseidon/poseidon-2.json b/packages/poseidon/poseidon-2.json new file mode 100644 index 0000000..7058608 --- /dev/null +++ b/packages/poseidon/poseidon-2.json @@ -0,0 +1,99 @@ +{ + "protocol": "groth16", + "curve": "bn128", + "nPublic": 2, + "vk_alpha_1": [ + "20491192805390485299153009773594534940189261866228447918068658471970481763042", + "9383485363053290200918347156157836566562967994039712273449902621266178545958", + "1" + ], + "vk_beta_2": [ + [ + "6375614351688725206403948262868962793625744043794305715222011528459656738731", + "4252822878758300859123897981450591353533073413197771768651442665752259397132" + ], + [ + "10505242626370262277552901082094356697409835680220590971873171140371331206856", + "21847035105528745403288232691147584728191162732299865338377159692350059136679" + ], + [ + "1", + "0" + ] + ], + "vk_gamma_2": [ + [ + "10857046999023057135944570762232829481370756359578518086990519993285655852781", + "11559732032986387107991004021392285783925812861821192530917403151452391805634" + ], + [ + "8495653923123431417604973247489272438418190587263600148770280649306958101930", + "4082367875863433681332203403145435568316851327593401208105741076214120093531" + ], + [ + "1", + "0" + ] + ], + "vk_delta_2": [ + [ + "11597085962373264741787738810412732414001483222790338589263789867385105816193", + "9684028789987950378488052403724245187777989077610031995248901636110806228559" + ], + [ + "14265974566219699840965400998024428268636295502188066134807073682424442059158", + "7682059532839722071283529712550937619568030056243233974772939041622885083728" + ], + [ + "1", + "0" + ] + ], + "vk_alphabeta_12": [ + [ + [ + "2029413683389138792403550203267699914886160938906632433982220835551125967885", + "21072700047562757817161031222997517981543347628379360635925549008442030252106" + ], + [ + "5940354580057074848093997050200682056184807770593307860589430076672439820312", + "12156638873931618554171829126792193045421052652279363021382169897324752428276" + ], + [ + "7898200236362823042373859371574133993780991612861777490112507062703164551277", + "7074218545237549455313236346927434013100842096812539264420499035217050630853" + ] + ], + [ + [ + "7077479683546002997211712695946002074877511277312570035766170199895071832130", + "10093483419865920389913245021038182291233451549023025229112148274109565435465" + ], + [ + "4595479056700221319381530156280926371456704509942304414423590385166031118820", + "19831328484489333784475432780421641293929726139240675179672856274388269393268" + ], + [ + "11934129596455521040620786944827826205713621633706285934057045369193958244500", + "8037395052364110730298837004334506829870972346962140206007064471173334027475" + ] + ] + ], + "IC": [ + [ + "16314216713263812259250797674288246089499962988847721936436321307378336592095", + "11117018508219521589294010525047040473526927855655175840819026305851777765475", + "1" + ], + [ + "1489322533177716064948875575926922312447753206440552240050276050387942900438", + "12165171936521766159101308675345703232678022163590860407018275007604526533982", + "1" + ], + [ + "6960512141760522400088094283402946234174678264161998436678471144494429317205", + "20452221478986281611081187536083135297872601218015116497971140905889313743165", + "1" + ] + ] +} diff --git a/packages/poseidon/poseidon-3.json b/packages/poseidon/poseidon-3.json new file mode 100644 index 0000000..881829a --- /dev/null +++ b/packages/poseidon/poseidon-3.json @@ -0,0 +1,99 @@ +{ + "protocol": "groth16", + "curve": "bn128", + "nPublic": 2, + "vk_alpha_1": [ + "20491192805390485299153009773594534940189261866228447918068658471970481763042", + "9383485363053290200918347156157836566562967994039712273449902621266178545958", + "1" + ], + "vk_beta_2": [ + [ + "6375614351688725206403948262868962793625744043794305715222011528459656738731", + "4252822878758300859123897981450591353533073413197771768651442665752259397132" + ], + [ + "10505242626370262277552901082094356697409835680220590971873171140371331206856", + "21847035105528745403288232691147584728191162732299865338377159692350059136679" + ], + [ + "1", + "0" + ] + ], + "vk_gamma_2": [ + [ + "10857046999023057135944570762232829481370756359578518086990519993285655852781", + "11559732032986387107991004021392285783925812861821192530917403151452391805634" + ], + [ + "8495653923123431417604973247489272438418190587263600148770280649306958101930", + "4082367875863433681332203403145435568316851327593401208105741076214120093531" + ], + [ + "1", + "0" + ] + ], + "vk_delta_2": [ + [ + "6685537916456848135905043733984210781235911598053650787649696672105615471589", + "4999068386653762840183953305887648112172454352590713735285282585987843625952" + ], + [ + "7562777810542667870247390569172382232273288141005419040386988445062777091441", + "18838516022099664284309978116940665524574745964406600980699171945581491267052" + ], + [ + "1", + "0" + ] + ], + "vk_alphabeta_12": [ + [ + [ + "2029413683389138792403550203267699914886160938906632433982220835551125967885", + "21072700047562757817161031222997517981543347628379360635925549008442030252106" + ], + [ + "5940354580057074848093997050200682056184807770593307860589430076672439820312", + "12156638873931618554171829126792193045421052652279363021382169897324752428276" + ], + [ + "7898200236362823042373859371574133993780991612861777490112507062703164551277", + "7074218545237549455313236346927434013100842096812539264420499035217050630853" + ] + ], + [ + [ + "7077479683546002997211712695946002074877511277312570035766170199895071832130", + "10093483419865920389913245021038182291233451549023025229112148274109565435465" + ], + [ + "4595479056700221319381530156280926371456704509942304414423590385166031118820", + "19831328484489333784475432780421641293929726139240675179672856274388269393268" + ], + [ + "11934129596455521040620786944827826205713621633706285934057045369193958244500", + "8037395052364110730298837004334506829870972346962140206007064471173334027475" + ] + ] + ], + "IC": [ + [ + "5777689742082005715270723054664547692838725793611115367188093577876286319897", + "10454075320040159670083485671678517137046698003354189208581600890161008983741", + "1" + ], + [ + "2642098050452795834338379096531211995188230502015980900343056782376948339687", + "14124928114351826183770480091879839058993316965479121067425548494569501532377", + "1" + ], + [ + "15148305354610832828183744524377641188304327550206135491675778059310640673138", + "4893932453452103247939341257230497114673566246321965048356049178501986246725", + "1" + ] + ] +} diff --git a/packages/poseidon/poseidon-4.json b/packages/poseidon/poseidon-4.json new file mode 100644 index 0000000..b3ea93b --- /dev/null +++ b/packages/poseidon/poseidon-4.json @@ -0,0 +1,99 @@ +{ + "protocol": "groth16", + "curve": "bn128", + "nPublic": 2, + "vk_alpha_1": [ + "20491192805390485299153009773594534940189261866228447918068658471970481763042", + "9383485363053290200918347156157836566562967994039712273449902621266178545958", + "1" + ], + "vk_beta_2": [ + [ + "6375614351688725206403948262868962793625744043794305715222011528459656738731", + "4252822878758300859123897981450591353533073413197771768651442665752259397132" + ], + [ + "10505242626370262277552901082094356697409835680220590971873171140371331206856", + "21847035105528745403288232691147584728191162732299865338377159692350059136679" + ], + [ + "1", + "0" + ] + ], + "vk_gamma_2": [ + [ + "10857046999023057135944570762232829481370756359578518086990519993285655852781", + "11559732032986387107991004021392285783925812861821192530917403151452391805634" + ], + [ + "8495653923123431417604973247489272438418190587263600148770280649306958101930", + "4082367875863433681332203403145435568316851327593401208105741076214120093531" + ], + [ + "1", + "0" + ] + ], + "vk_delta_2": [ + [ + "1230510908880405763189288581880774857842159161223291051087755925911803529709", + "15032319326781222060204241946787011433707667192194769324650036015880042636858" + ], + [ + "1065294179497945063549862159748472950954924872723911419102341965446016325659", + "7506683237738223019558423299049435299658241265741313175280873344350180726218" + ], + [ + "1", + "0" + ] + ], + "vk_alphabeta_12": [ + [ + [ + "2029413683389138792403550203267699914886160938906632433982220835551125967885", + "21072700047562757817161031222997517981543347628379360635925549008442030252106" + ], + [ + "5940354580057074848093997050200682056184807770593307860589430076672439820312", + "12156638873931618554171829126792193045421052652279363021382169897324752428276" + ], + [ + "7898200236362823042373859371574133993780991612861777490112507062703164551277", + "7074218545237549455313236346927434013100842096812539264420499035217050630853" + ] + ], + [ + [ + "7077479683546002997211712695946002074877511277312570035766170199895071832130", + "10093483419865920389913245021038182291233451549023025229112148274109565435465" + ], + [ + "4595479056700221319381530156280926371456704509942304414423590385166031118820", + "19831328484489333784475432780421641293929726139240675179672856274388269393268" + ], + [ + "11934129596455521040620786944827826205713621633706285934057045369193958244500", + "8037395052364110730298837004334506829870972346962140206007064471173334027475" + ] + ] + ], + "IC": [ + [ + "20915408346262913832848096115897083424191782014558753292028210172329556489891", + "20477324302289652567921221514286340472175521364608819396373915910203052137234", + "1" + ], + [ + "18109741480520484438583085965849393053790689016366934256867378379242288457686", + "13619404282196516647345713373498249513238472014983969488668509336400876494311", + "1" + ], + [ + "11765051984214979755732420036077340861427462185621265051697279669517347262729", + "17955014055238146126632398568346244655216767709119096967135392509704733491844", + "1" + ] + ] +} diff --git a/packages/poseidon/poseidon-5.json b/packages/poseidon/poseidon-5.json new file mode 100644 index 0000000..37353e1 --- /dev/null +++ b/packages/poseidon/poseidon-5.json @@ -0,0 +1,99 @@ +{ + "protocol": "groth16", + "curve": "bn128", + "nPublic": 2, + "vk_alpha_1": [ + "20491192805390485299153009773594534940189261866228447918068658471970481763042", + "9383485363053290200918347156157836566562967994039712273449902621266178545958", + "1" + ], + "vk_beta_2": [ + [ + "6375614351688725206403948262868962793625744043794305715222011528459656738731", + "4252822878758300859123897981450591353533073413197771768651442665752259397132" + ], + [ + "10505242626370262277552901082094356697409835680220590971873171140371331206856", + "21847035105528745403288232691147584728191162732299865338377159692350059136679" + ], + [ + "1", + "0" + ] + ], + "vk_gamma_2": [ + [ + "10857046999023057135944570762232829481370756359578518086990519993285655852781", + "11559732032986387107991004021392285783925812861821192530917403151452391805634" + ], + [ + "8495653923123431417604973247489272438418190587263600148770280649306958101930", + "4082367875863433681332203403145435568316851327593401208105741076214120093531" + ], + [ + "1", + "0" + ] + ], + "vk_delta_2": [ + [ + "3332561388079145293539340567095722854648291881966697742998831262621614350903", + "4641909917350496764727779263769343442148045679052315322239628277062497349427" + ], + [ + "20710194718456677486083562904418802040550072048117906394979262172778698170003", + "19521702746046620319045856237170226191691697492926377487166441809896081939362" + ], + [ + "1", + "0" + ] + ], + "vk_alphabeta_12": [ + [ + [ + "2029413683389138792403550203267699914886160938906632433982220835551125967885", + "21072700047562757817161031222997517981543347628379360635925549008442030252106" + ], + [ + "5940354580057074848093997050200682056184807770593307860589430076672439820312", + "12156638873931618554171829126792193045421052652279363021382169897324752428276" + ], + [ + "7898200236362823042373859371574133993780991612861777490112507062703164551277", + "7074218545237549455313236346927434013100842096812539264420499035217050630853" + ] + ], + [ + [ + "7077479683546002997211712695946002074877511277312570035766170199895071832130", + "10093483419865920389913245021038182291233451549023025229112148274109565435465" + ], + [ + "4595479056700221319381530156280926371456704509942304414423590385166031118820", + "19831328484489333784475432780421641293929726139240675179672856274388269393268" + ], + [ + "11934129596455521040620786944827826205713621633706285934057045369193958244500", + "8037395052364110730298837004334506829870972346962140206007064471173334027475" + ] + ] + ], + "IC": [ + [ + "16481192909169214010392200653283275987325709982486805651427539789368110643965", + "9600634861073295096550032788240078277063249868126439630400649560046604582951", + "1" + ], + [ + "8716855468226815195040220782769615065622022528430076687863434910949019560115", + "5144800664114113488204783976150442697336491675680169297817164380798395482501", + "1" + ], + [ + "14279736595764028921246337982363760894086288686502096693089864776683515170827", + "6403920333376154835269627270297651759933138762638770910356946391337790253284", + "1" + ] + ] +} diff --git a/packages/poseidon/poseidon-6.json b/packages/poseidon/poseidon-6.json new file mode 100644 index 0000000..6adc19c --- /dev/null +++ b/packages/poseidon/poseidon-6.json @@ -0,0 +1,99 @@ +{ + "protocol": "groth16", + "curve": "bn128", + "nPublic": 2, + "vk_alpha_1": [ + "20491192805390485299153009773594534940189261866228447918068658471970481763042", + "9383485363053290200918347156157836566562967994039712273449902621266178545958", + "1" + ], + "vk_beta_2": [ + [ + "6375614351688725206403948262868962793625744043794305715222011528459656738731", + "4252822878758300859123897981450591353533073413197771768651442665752259397132" + ], + [ + "10505242626370262277552901082094356697409835680220590971873171140371331206856", + "21847035105528745403288232691147584728191162732299865338377159692350059136679" + ], + [ + "1", + "0" + ] + ], + "vk_gamma_2": [ + [ + "10857046999023057135944570762232829481370756359578518086990519993285655852781", + "11559732032986387107991004021392285783925812861821192530917403151452391805634" + ], + [ + "8495653923123431417604973247489272438418190587263600148770280649306958101930", + "4082367875863433681332203403145435568316851327593401208105741076214120093531" + ], + [ + "1", + "0" + ] + ], + "vk_delta_2": [ + [ + "14590292206961468421223207396714533258302778556989983837481276592565497800051", + "9740345798856908736849632486375222910738734220441075087870013183678921330745" + ], + [ + "19428201489472525105764795680037226172921095971777975281692473314225221954240", + "20999561231871487937853264915257929043059601914889020187888986635108818309617" + ], + [ + "1", + "0" + ] + ], + "vk_alphabeta_12": [ + [ + [ + "2029413683389138792403550203267699914886160938906632433982220835551125967885", + "21072700047562757817161031222997517981543347628379360635925549008442030252106" + ], + [ + "5940354580057074848093997050200682056184807770593307860589430076672439820312", + "12156638873931618554171829126792193045421052652279363021382169897324752428276" + ], + [ + "7898200236362823042373859371574133993780991612861777490112507062703164551277", + "7074218545237549455313236346927434013100842096812539264420499035217050630853" + ] + ], + [ + [ + "7077479683546002997211712695946002074877511277312570035766170199895071832130", + "10093483419865920389913245021038182291233451549023025229112148274109565435465" + ], + [ + "4595479056700221319381530156280926371456704509942304414423590385166031118820", + "19831328484489333784475432780421641293929726139240675179672856274388269393268" + ], + [ + "11934129596455521040620786944827826205713621633706285934057045369193958244500", + "8037395052364110730298837004334506829870972346962140206007064471173334027475" + ] + ] + ], + "IC": [ + [ + "19427312127307233114043544532010141761737668406845711063737151756341969518115", + "19497001261488307700108517382899830645465934586931341109009380207822933853538", + "1" + ], + [ + "18850362688565117327473227965231396785394256896015207979763863952560092318905", + "19845569423696587838445968823785398846474692097131528981298815653580718689592", + "1" + ], + [ + "840756707954101069142723209419963051403617828309738249721569313340266702555", + "5780878828618912743300640785478897234401371585090207748306483967163886135973", + "1" + ] + ] +} diff --git a/packages/poseidon/poseidon-7.json b/packages/poseidon/poseidon-7.json new file mode 100644 index 0000000..a904308 --- /dev/null +++ b/packages/poseidon/poseidon-7.json @@ -0,0 +1,99 @@ +{ + "protocol": "groth16", + "curve": "bn128", + "nPublic": 2, + "vk_alpha_1": [ + "20491192805390485299153009773594534940189261866228447918068658471970481763042", + "9383485363053290200918347156157836566562967994039712273449902621266178545958", + "1" + ], + "vk_beta_2": [ + [ + "6375614351688725206403948262868962793625744043794305715222011528459656738731", + "4252822878758300859123897981450591353533073413197771768651442665752259397132" + ], + [ + "10505242626370262277552901082094356697409835680220590971873171140371331206856", + "21847035105528745403288232691147584728191162732299865338377159692350059136679" + ], + [ + "1", + "0" + ] + ], + "vk_gamma_2": [ + [ + "10857046999023057135944570762232829481370756359578518086990519993285655852781", + "11559732032986387107991004021392285783925812861821192530917403151452391805634" + ], + [ + "8495653923123431417604973247489272438418190587263600148770280649306958101930", + "4082367875863433681332203403145435568316851327593401208105741076214120093531" + ], + [ + "1", + "0" + ] + ], + "vk_delta_2": [ + [ + "10086573973375336606781540335737425506744810250524881182947444066746367979907", + "10752964947502277655667834717626476384348321296470405368797417419990288507546" + ], + [ + "19568430897410023920798569115713294036094673010445606958970068217793872425417", + "14717704036647232908571534830833102887523440823244420669911537731805911669455" + ], + [ + "1", + "0" + ] + ], + "vk_alphabeta_12": [ + [ + [ + "2029413683389138792403550203267699914886160938906632433982220835551125967885", + "21072700047562757817161031222997517981543347628379360635925549008442030252106" + ], + [ + "5940354580057074848093997050200682056184807770593307860589430076672439820312", + "12156638873931618554171829126792193045421052652279363021382169897324752428276" + ], + [ + "7898200236362823042373859371574133993780991612861777490112507062703164551277", + "7074218545237549455313236346927434013100842096812539264420499035217050630853" + ] + ], + [ + [ + "7077479683546002997211712695946002074877511277312570035766170199895071832130", + "10093483419865920389913245021038182291233451549023025229112148274109565435465" + ], + [ + "4595479056700221319381530156280926371456704509942304414423590385166031118820", + "19831328484489333784475432780421641293929726139240675179672856274388269393268" + ], + [ + "11934129596455521040620786944827826205713621633706285934057045369193958244500", + "8037395052364110730298837004334506829870972346962140206007064471173334027475" + ] + ] + ], + "IC": [ + [ + "546027003027570802029398089463935069893813566041096597150463996505426053761", + "14014506297856732287662693039958827017385498211983409974050280467221019100956", + "1" + ], + [ + "11189450817957093937106621030429756748082057026435929105575426657564882386802", + "4509940161802247020195238005432388756974430777298874217078810778762343128329", + "1" + ], + [ + "17755051906548101790853642244089657439893646632620305489913721603670784250069", + "8904395938511806014192726926365647143660749609881308620335528629337973923713", + "1" + ] + ] +} diff --git a/packages/poseidon/poseidon-8.json b/packages/poseidon/poseidon-8.json new file mode 100644 index 0000000..8b51aa2 --- /dev/null +++ b/packages/poseidon/poseidon-8.json @@ -0,0 +1,99 @@ +{ + "protocol": "groth16", + "curve": "bn128", + "nPublic": 2, + "vk_alpha_1": [ + "20491192805390485299153009773594534940189261866228447918068658471970481763042", + "9383485363053290200918347156157836566562967994039712273449902621266178545958", + "1" + ], + "vk_beta_2": [ + [ + "6375614351688725206403948262868962793625744043794305715222011528459656738731", + "4252822878758300859123897981450591353533073413197771768651442665752259397132" + ], + [ + "10505242626370262277552901082094356697409835680220590971873171140371331206856", + "21847035105528745403288232691147584728191162732299865338377159692350059136679" + ], + [ + "1", + "0" + ] + ], + "vk_gamma_2": [ + [ + "10857046999023057135944570762232829481370756359578518086990519993285655852781", + "11559732032986387107991004021392285783925812861821192530917403151452391805634" + ], + [ + "8495653923123431417604973247489272438418190587263600148770280649306958101930", + "4082367875863433681332203403145435568316851327593401208105741076214120093531" + ], + [ + "1", + "0" + ] + ], + "vk_delta_2": [ + [ + "9424125205111831644772936795524229948594184913979507003980592496573121284564", + "11927591795353150792507857368506405899688456871939644997611456687794189434480" + ], + [ + "12999058844307653922967860098056375012389745038052809477767445005523359662722", + "21662626325651457259392606625769061561863040556170224567564600671595630907122" + ], + [ + "1", + "0" + ] + ], + "vk_alphabeta_12": [ + [ + [ + "2029413683389138792403550203267699914886160938906632433982220835551125967885", + "21072700047562757817161031222997517981543347628379360635925549008442030252106" + ], + [ + "5940354580057074848093997050200682056184807770593307860589430076672439820312", + "12156638873931618554171829126792193045421052652279363021382169897324752428276" + ], + [ + "7898200236362823042373859371574133993780991612861777490112507062703164551277", + "7074218545237549455313236346927434013100842096812539264420499035217050630853" + ] + ], + [ + [ + "7077479683546002997211712695946002074877511277312570035766170199895071832130", + "10093483419865920389913245021038182291233451549023025229112148274109565435465" + ], + [ + "4595479056700221319381530156280926371456704509942304414423590385166031118820", + "19831328484489333784475432780421641293929726139240675179672856274388269393268" + ], + [ + "11934129596455521040620786944827826205713621633706285934057045369193958244500", + "8037395052364110730298837004334506829870972346962140206007064471173334027475" + ] + ] + ], + "IC": [ + [ + "13213356598199847269699632272566750853813594809392061230885705868548131437637", + "895153038996134925237046737026834738970028513999527722413774967155341310435", + "1" + ], + [ + "471993200552326549203598917362027198173949469152420169709884479126339292271", + "14174598991630085582601473833852162779297438091497079256707119545704654236327", + "1" + ], + [ + "12711216628891510607753358833453031250654744351039303007840207871043484081967", + "2173441600878949731991469203266793443327643325686272565914594621955348362526", + "1" + ] + ] +} diff --git a/packages/poseidon/poseidon-9.json b/packages/poseidon/poseidon-9.json new file mode 100644 index 0000000..4f4033b --- /dev/null +++ b/packages/poseidon/poseidon-9.json @@ -0,0 +1,99 @@ +{ + "protocol": "groth16", + "curve": "bn128", + "nPublic": 2, + "vk_alpha_1": [ + "20491192805390485299153009773594534940189261866228447918068658471970481763042", + "9383485363053290200918347156157836566562967994039712273449902621266178545958", + "1" + ], + "vk_beta_2": [ + [ + "6375614351688725206403948262868962793625744043794305715222011528459656738731", + "4252822878758300859123897981450591353533073413197771768651442665752259397132" + ], + [ + "10505242626370262277552901082094356697409835680220590971873171140371331206856", + "21847035105528745403288232691147584728191162732299865338377159692350059136679" + ], + [ + "1", + "0" + ] + ], + "vk_gamma_2": [ + [ + "10857046999023057135944570762232829481370756359578518086990519993285655852781", + "11559732032986387107991004021392285783925812861821192530917403151452391805634" + ], + [ + "8495653923123431417604973247489272438418190587263600148770280649306958101930", + "4082367875863433681332203403145435568316851327593401208105741076214120093531" + ], + [ + "1", + "0" + ] + ], + "vk_delta_2": [ + [ + "13028964641235010509763790729215103326900296627536321612058746312688547034670", + "16324553039003065334447402342069175399339068040769911759747263040625011528366" + ], + [ + "17335818574442198168390186053780061320311987265042351970987309586944491315714", + "4202928487741725086735594049814542514124477956150138854463112082481470550791" + ], + [ + "1", + "0" + ] + ], + "vk_alphabeta_12": [ + [ + [ + "2029413683389138792403550203267699914886160938906632433982220835551125967885", + "21072700047562757817161031222997517981543347628379360635925549008442030252106" + ], + [ + "5940354580057074848093997050200682056184807770593307860589430076672439820312", + "12156638873931618554171829126792193045421052652279363021382169897324752428276" + ], + [ + "7898200236362823042373859371574133993780991612861777490112507062703164551277", + "7074218545237549455313236346927434013100842096812539264420499035217050630853" + ] + ], + [ + [ + "7077479683546002997211712695946002074877511277312570035766170199895071832130", + "10093483419865920389913245021038182291233451549023025229112148274109565435465" + ], + [ + "4595479056700221319381530156280926371456704509942304414423590385166031118820", + "19831328484489333784475432780421641293929726139240675179672856274388269393268" + ], + [ + "11934129596455521040620786944827826205713621633706285934057045369193958244500", + "8037395052364110730298837004334506829870972346962140206007064471173334027475" + ] + ] + ], + "IC": [ + [ + "18887882527574578188655084466752577798014308073107368854351124461973580787910", + "651081314890381475167064795691942982045799761791181574107224090162291115938", + "1" + ], + [ + "18346790043873442676694511075634026436566932544111333965589071781644561478536", + "17900923331213210712376047327769111823453727818721826870886503477889503452320", + "1" + ], + [ + "8253813990164202614612417399858531257146056572623956512005125798531486848635", + "1912679600385690796934031421829930466203893397004242578775877223967293806293", + "1" + ] + ] +} From 0f4d6f15d3c0259ff8d0885e0c4af04c2427604d Mon Sep 17 00:00:00 2001 From: sripwoud Date: Mon, 22 Jul 2024 12:06:38 +0200 Subject: [PATCH 2/3] chore(poseidon): bump version in package.json --- packages/poseidon/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/poseidon/package.json b/packages/poseidon/package.json index 80ad7fd..3626508 100644 --- a/packages/poseidon/package.json +++ b/packages/poseidon/package.json @@ -2,7 +2,7 @@ "name": "@zk-kit/poseidon-artifacts", "description": "zk-kit poseidon artifacts", "license": "MIT", - "version": "1.0.0-beta.1", + "version": "1.0.0-beta.4", "repository": { "type": "git", "url": "https://github.com/privacy-scaling-explorations/snark-artifacts.git" From af03b05cd0b5d8c775714fb6058d588ae933ca46 Mon Sep 17 00:00:00 2001 From: sripwoud Date: Tue, 23 Jul 2024 22:12:21 +0200 Subject: [PATCH 3/3] test(poseidon): verify proofs --- packages/poseidon/index.test.mjs | 69 +++++++++ packages/poseidon/package.json | 13 ++ pnpm-lock.yaml | 239 ++++++++++++++++++++++++++----- 3 files changed, 287 insertions(+), 34 deletions(-) create mode 100644 packages/poseidon/index.test.mjs diff --git a/packages/poseidon/index.test.mjs b/packages/poseidon/index.test.mjs new file mode 100644 index 0000000..728b49a --- /dev/null +++ b/packages/poseidon/index.test.mjs @@ -0,0 +1,69 @@ +import { generate } from '@zk-kit/poseidon-proof' +import { unpackGroth16Proof } from '@zk-kit/utils/proof-packing' +import { keccak256 } from 'ethers/crypto' +import { toBeHex } from 'ethers/utils' +import { getCurveFromName } from 'ffjavascript' +import assert from 'node:assert/strict' +import { readFileSync } from 'node:fs' +import { dirname, join } from 'node:path' +import { after, before, describe, it } from 'node:test' +import * as poseidons from 'poseidon-lite' +import { groth16 } from 'snarkjs' + +function hash(message) { + return (BigInt(keccak256(toBeHex(message, 32))) >> BigInt(8)).toString() +} + +const PWD = dirname(import.meta.url.replace('file://', '')) +const SCOPE = 'scope' +const INPUTS = Array.from({ length: 16 }, (_, i) => i + 1).map(i => Array.from({ length: i }, (_, j) => j + 1)) + +async function generateProof(inputs) { + const numParams = inputs.length + + return generate(inputs, SCOPE, { + wasm: join(PWD, `poseidon-${numParams}.wasm`), + zkey: join(PWD, `poseidon-${numParams}.zkey`), + }) +} + +async function verifyProof({ digest, numberOfInputs, proof, scope }) { + const verifKey = JSON.parse(readFileSync(join(PWD, `poseidon-${numberOfInputs}.json`))) + return groth16.verify(verifKey, [digest, hash(scope)], unpackGroth16Proof(proof)) +} + +describe('poseidon', () => { + const scope = 'scope' + let curve + let digest + const proofs = [] + + before(async () => { + curve = await getCurveFromName('bn128') + + for (const inputs of INPUTS) { + const proof = await generateProof(inputs) + proofs.push(proof) + } + }, 30_000) + + after(async () => { + await curve.terminate() + }) + + it('Should verify a Poseidon proof', async () => { + const errors = [] + + for (const proof of proofs) { + const result = await verifyProof(proof) + try { + assert.strictEqual(result, true, `proof verification failed for ${proof.numberOfInputs}`) + } catch (error) { + errors.push(error) + } + } + + if (errors.length > 0) + throw new Error(errors.map(error => error.message).join('\n')) + }) +}) diff --git a/packages/poseidon/package.json b/packages/poseidon/package.json index 3626508..7eb46e8 100644 --- a/packages/poseidon/package.json +++ b/packages/poseidon/package.json @@ -13,5 +13,18 @@ }, "publishConfig": { "access": "public" + }, + "scripts": { + "test": "node --test index.test.mjs" + }, + "files": ["poseidon-*"], + "devDependencies": { + "@ethersproject/bignumber": "^5.7.0", + "@zk-kit/poseidon-proof": "1.0.0-beta.4", + "@zk-kit/utils": "^1.2.0", + "ethers": "^6.13.1", + "ffjavascript": "^0.3.0", + "poseidon-lite": "^0.2.0", + "snarkjs": "^0.7.4" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 24cdc8f..f3cd09c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -34,7 +34,7 @@ importers: version: 0.45.1 jest: specifier: ^29.7.0 - version: 29.7.0(@types/node@20.14.11)(ts-node@10.9.2) + version: 29.7.0(@types/node@20.14.11)(ts-node@10.9.2(@types/node@20.14.11)(typescript@5.5.3)) rimraf: specifier: ^5.0.7 version: 5.0.9 @@ -43,7 +43,7 @@ importers: version: 4.18.1 ts-jest: specifier: ^29.1.3 - version: 29.2.2(@babel/core@7.24.9)(jest@29.7.0)(typescript@5.5.3) + version: 29.2.2(@babel/core@7.24.9)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.24.9))(jest@29.7.0(@types/node@20.14.11)(ts-node@10.9.2(@types/node@20.14.11)(typescript@5.5.3)))(typescript@5.5.3) ts-node: specifier: ^10.9.2 version: 10.9.2(@types/node@20.14.11)(typescript@5.5.3) @@ -61,7 +61,7 @@ importers: version: 21.0.1 '@zk-kit/artifacts': specifier: 1.9.0 - version: link:../../packages/artifacts + version: 1.9.0 jotai: specifier: ^2.8.3 version: 2.9.0(react@18.3.1) @@ -77,7 +77,7 @@ importers: devDependencies: '@preact/preset-vite': specifier: ^2.8.2 - version: 2.9.0(@babel/core@7.24.9)(preact@10.22.1)(vite@5.3.4) + version: 2.9.0(@babel/core@7.24.9)(preact@10.22.1)(vite@5.3.4(@types/node@20.14.11)) '@types/semver': specifier: ^7.5.8 version: 7.5.8 @@ -89,7 +89,7 @@ importers: version: 8.4.39 tailwindcss: specifier: ^3.4.4 - version: 3.4.6(ts-node@10.9.2) + version: 3.4.6(ts-node@10.9.2(@types/node@20.14.11)(typescript@5.5.3)) typescript: specifier: ^5.2.2 version: 5.5.3 @@ -143,7 +143,29 @@ importers: specifier: ^4.17.2 version: 4.18.1 - packages/poseidon: {} + packages/poseidon: + devDependencies: + '@ethersproject/bignumber': + specifier: ^5.7.0 + version: 5.7.0 + '@zk-kit/poseidon-proof': + specifier: 1.0.0-beta.4 + version: 1.0.0-beta.4 + '@zk-kit/utils': + specifier: ^1.2.0 + version: 1.2.0 + ethers: + specifier: ^6.13.1 + version: 6.13.1 + ffjavascript: + specifier: ^0.3.0 + version: 0.3.0 + poseidon-lite: + specifier: ^0.2.0 + version: 0.2.0 + snarkjs: + specifier: ^0.7.4 + version: 0.7.4 packages/semaphore: {} @@ -151,6 +173,9 @@ importers: packages: + '@adraffy/ens-normalize@1.10.1': + resolution: {integrity: sha512-96Z2IP3mYmF1Xg2cDm8f1gWGf/HUVedQ3FMifV4kG/PQ4yEP51xDtRAEfhVNt5f/uzpNkZHwWQuUcu6D6K+Ekw==} + '@alloc/quick-lru@5.2.0': resolution: {integrity: sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==} engines: {node: '>=10'} @@ -642,6 +667,15 @@ packages: cpu: [x64] os: [win32] + '@ethersproject/bignumber@5.7.0': + resolution: {integrity: sha512-n1CAdIHRWjSucQO3MC1zPSVgV/6dy/fjL9pMrPP9peL+QxEg9wOsVqwD4+818B6LUEtaXzVHQiuivzRoxPxUGw==} + + '@ethersproject/bytes@5.7.0': + resolution: {integrity: sha512-nsbxwgFXWh9NyYWo+U8atvmMsSdKJprTcICAkvbBffT75qDocbuggBU0SJiVK2MuTrp0q+xvLkTnGMPK1+uA9A==} + + '@ethersproject/logger@5.7.0': + resolution: {integrity: sha512-0odtFdXu/XHtjQXJYA3u9G0G8btm0ND5Cu8M7i5vhEcE8/HmF4Lbdqanwyv4uQTr2tx6b7fQRmgLrsnpQlmnig==} + '@iden3/bigarray@0.0.2': resolution: {integrity: sha512-Xzdyxqm1bOFF6pdIsiHLLl3HkSLjbhqJHVyqaTxXt3RqXBEnmsUmEW47H7VOi/ak7TdkRpNkxjyK5Zbkm+y52g==} @@ -776,6 +810,13 @@ packages: '@manypkg/get-packages@1.1.3': resolution: {integrity: sha512-fo+QhuU3qE/2TQMQmbVMqaQ6EWbMhi4ABWP+O4AM1NqPBuy0OrApV5LO6BrrgnhtAHS2NH6RrVk9OL181tTi8A==} + '@noble/curves@1.2.0': + resolution: {integrity: sha512-oYclrNgRaM9SsBUBVbb8M6DTV7ZHRTKugureoYEncY5c65HOmRzvSiTE3y5CYaPYJA/GVkrhXEoF0M3Ya9PMnw==} + + '@noble/hashes@1.3.2': + resolution: {integrity: sha512-MVC8EAQp7MvEcm30KWENFjgR+Mkmf+D189XJTkFIlwohU5hcBbn1ZkKq7KVTi2Hme3PMGF390DaL52beVrIihQ==} + engines: {node: '>= 16'} + '@nodelib/fs.scandir@2.1.5': resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} engines: {node: '>= 8'} @@ -1039,6 +1080,9 @@ packages: '@types/node@12.20.55': resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==} + '@types/node@18.15.13': + resolution: {integrity: sha512-N+0kuo9KgrUQ1Sn/ifDXsvg0TTleP7rIy4zOBGECxAljqvqfqpTfzx0Q1NUedOixRMBfe2Whhb056a42cWs26Q==} + '@types/node@20.14.11': resolution: {integrity: sha512-kprQpL8MMeszbz6ojB5/tU8PLN4kesnN8Gjzw349rDlNgsSzg90lAVj3llK99Dh7JON+t9AuscPPFW6mPbTnSA==} @@ -1060,9 +1104,24 @@ packages: '@types/yargs@17.0.32': resolution: {integrity: sha512-xQ67Yc/laOG5uMfX/093MRlGGCIBzZMarVa+gfNKJxWAIgykYpVGkBdbqEzGDDfCrVUj6Hiff4mTZ5BA6TmAog==} + '@zk-kit/artifacts@1.4.1': + resolution: {integrity: sha512-OR1mrDBWJNT2NYdQpRmVL5pWxeNmQTzLy9Q5vDMtDISkoYW7l2cs2aLsNREBzy4wcxdR/52lE45AtShMmKQVIg==} + '@zk-kit/artifacts@1.6.0': resolution: {integrity: sha512-vNhVvKy5EjLAZcfm0cHkbputecXgtoW9hpPGRc5aNmv94zGk9owNA+EuG7YghP88D/iNlvA+80rwlw5qMdSYlA==} + '@zk-kit/artifacts@1.9.0': + resolution: {integrity: sha512-Dl8bJLWnSw0NGT1/p5UKmp4Zgr+evyyvgyi2pwDzdPuT0RKMRkgNIC4ai1j58utwWR9tczGNQlDPdpdZNqFfmA==} + + '@zk-kit/poseidon-proof@1.0.0-beta.4': + resolution: {integrity: sha512-F4H6GA18NRh/nqJLYKsgysX29rMbUSwam5dBBIaeWryFzJ0iHYMYgdnKQamBt00tsSMgOTxW4UiT/oK5ioyswQ==} + + '@zk-kit/utils@1.0.0': + resolution: {integrity: sha512-v5UjrZiaRNAN2UJmTFHvlMktaA2Efc2qN1Mwd4060ExX12yRhY8ZhzdlDODhnuHkvW5zPukuBHgQhHMScNP3Pg==} + + '@zk-kit/utils@1.2.0': + resolution: {integrity: sha512-Ut9zfnlBVpopZG/s600Ds/FPSWXiPhO4q8949kmXTzwDXytjnvFbDZIFdWqE/lA7/NZjvykiTnnVwmanMxv2+w==} + acorn-walk@8.3.3: resolution: {integrity: sha512-MxXdReSRhGO7VlFe1bRG/oI7/mdLV9B9JJT0N8vZOhF7gFRR5l3M8W9G8JxmKV+JC5mGqJ0QvqfSOLsCPa4nUw==} engines: {node: '>=0.4.0'} @@ -1072,6 +1131,9 @@ packages: engines: {node: '>=0.4.0'} hasBin: true + aes-js@4.0.0-beta.5: + resolution: {integrity: sha512-G965FqalsNyrPqgEGON7nIx1e/OVENSgiEIzyC63haUMuvNnwIgIjMs52hlTCKhkBny7A2ORNlfY9Zu+jmGk1Q==} + ansi-colors@4.1.3: resolution: {integrity: sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==} engines: {node: '>=6'} @@ -1208,6 +1270,9 @@ packages: bluebird@3.7.2: resolution: {integrity: sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==} + bn.js@5.2.1: + resolution: {integrity: sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==} + boolbase@1.0.0: resolution: {integrity: sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==} @@ -1242,6 +1307,9 @@ packages: buffer@5.7.1: resolution: {integrity: sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==} + buffer@6.0.3: + resolution: {integrity: sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==} + call-bind@1.0.7: resolution: {integrity: sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==} engines: {node: '>= 0.4'} @@ -1575,6 +1643,10 @@ packages: resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} engines: {node: '>=0.10.0'} + ethers@6.13.1: + resolution: {integrity: sha512-hdJ2HOxg/xx97Lm9HdCWk949BfYqYWpyw4//78SiwOLgASyfrNszfMUNB2joKjvGUdwhHfaiMMFFwacVVoLR9A==} + engines: {node: '>=14.0.0'} + execa@5.1.1: resolution: {integrity: sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==} engines: {node: '>=10'} @@ -2372,6 +2444,9 @@ packages: resolution: {integrity: sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==} engines: {node: '>=8'} + poseidon-lite@0.2.0: + resolution: {integrity: sha512-vivDZnGmz8W4G/GzVA72PXkfYStjilu83rjjUfpL4PueKcC8nfX6hCPh2XhoC5FBgC6y0TA3YuUeUo5YCcNoig==} + possible-typed-array-names@1.0.0: resolution: {integrity: sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==} engines: {node: '>= 0.4'} @@ -2784,6 +2859,9 @@ packages: '@swc/wasm': optional: true + tslib@2.4.0: + resolution: {integrity: sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==} + tslib@2.6.3: resolution: {integrity: sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==} @@ -2934,6 +3012,18 @@ packages: resolution: {integrity: sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==} engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} + ws@8.17.1: + resolution: {integrity: sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ==} + engines: {node: '>=10.0.0'} + peerDependencies: + bufferutil: ^4.0.1 + utf-8-validate: '>=5.0.2' + peerDependenciesMeta: + bufferutil: + optional: true + utf-8-validate: + optional: true + y18n@5.0.8: resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==} engines: {node: '>=10'} @@ -2971,6 +3061,8 @@ packages: snapshots: + '@adraffy/ens-normalize@1.10.1': {} + '@alloc/quick-lru@5.2.0': {} '@ampproject/remapping@2.3.0': @@ -3515,6 +3607,18 @@ snapshots: '@esbuild/win32-x64@0.21.5': optional: true + '@ethersproject/bignumber@5.7.0': + dependencies: + '@ethersproject/bytes': 5.7.0 + '@ethersproject/logger': 5.7.0 + bn.js: 5.2.1 + + '@ethersproject/bytes@5.7.0': + dependencies: + '@ethersproject/logger': 5.7.0 + + '@ethersproject/logger@5.7.0': {} + '@iden3/bigarray@0.0.2': {} '@iden3/binfileutils@0.0.11': @@ -3590,7 +3694,7 @@ snapshots: jest-util: 29.7.0 slash: 3.0.0 - '@jest/core@29.7.0(ts-node@10.9.2)': + '@jest/core@29.7.0(ts-node@10.9.2(@types/node@20.14.11)(typescript@5.5.3))': dependencies: '@jest/console': 29.7.0 '@jest/reporters': 29.7.0 @@ -3604,7 +3708,7 @@ snapshots: exit: 0.1.2 graceful-fs: 4.2.11 jest-changed-files: 29.7.0 - jest-config: 29.7.0(@types/node@20.14.11)(ts-node@10.9.2) + jest-config: 29.7.0(@types/node@20.14.11)(ts-node@10.9.2(@types/node@20.14.11)(typescript@5.5.3)) jest-haste-map: 29.7.0 jest-message-util: 29.7.0 jest-regex-util: 29.6.3 @@ -3781,6 +3885,12 @@ snapshots: globby: 11.1.0 read-yaml-file: 1.1.0 + '@noble/curves@1.2.0': + dependencies: + '@noble/hashes': 1.3.2 + + '@noble/hashes@1.3.2': {} + '@nodelib/fs.scandir@2.1.5': dependencies: '@nodelib/fs.stat': 2.0.5 @@ -3857,13 +3967,13 @@ snapshots: '@pkgjs/parseargs@0.11.0': optional: true - '@preact/preset-vite@2.9.0(@babel/core@7.24.9)(preact@10.22.1)(vite@5.3.4)': + '@preact/preset-vite@2.9.0(@babel/core@7.24.9)(preact@10.22.1)(vite@5.3.4(@types/node@20.14.11))': dependencies: '@babel/code-frame': 7.24.7 '@babel/core': 7.24.9 '@babel/plugin-transform-react-jsx': 7.24.7(@babel/core@7.24.9) '@babel/plugin-transform-react-jsx-development': 7.24.7(@babel/core@7.24.9) - '@prefresh/vite': 2.4.6(preact@10.22.1)(vite@5.3.4) + '@prefresh/vite': 2.4.6(preact@10.22.1)(vite@5.3.4(@types/node@20.14.11)) '@rollup/pluginutils': 4.2.1 babel-plugin-transform-hook-names: 1.0.2(@babel/core@7.24.9) debug: 4.3.5 @@ -3886,7 +3996,7 @@ snapshots: '@prefresh/utils@1.2.0': {} - '@prefresh/vite@2.4.6(preact@10.22.1)(vite@5.3.4)': + '@prefresh/vite@2.4.6(preact@10.22.1)(vite@5.3.4(@types/node@20.14.11))': dependencies: '@babel/core': 7.24.9 '@prefresh/babel-plugin': 0.5.1 @@ -3900,16 +4010,18 @@ snapshots: '@rollup/plugin-alias@5.1.0(rollup@4.18.1)': dependencies: - rollup: 4.18.1 slash: 4.0.0 + optionalDependencies: + rollup: 4.18.1 '@rollup/plugin-typescript@11.1.6(rollup@4.18.1)(tslib@2.6.3)(typescript@5.5.3)': dependencies: '@rollup/pluginutils': 5.1.0(rollup@4.18.1) resolve: 1.22.8 + typescript: 5.5.3 + optionalDependencies: rollup: 4.18.1 tslib: 2.6.3 - typescript: 5.5.3 '@rollup/pluginutils@4.2.1': dependencies: @@ -3921,6 +4033,7 @@ snapshots: '@types/estree': 1.0.5 estree-walker: 2.0.2 picomatch: 2.3.1 + optionalDependencies: rollup: 4.18.1 '@rollup/rollup-android-arm-eabi@4.18.1': @@ -4037,6 +4150,8 @@ snapshots: '@types/node@12.20.55': {} + '@types/node@18.15.13': {} + '@types/node@20.14.11': dependencies: undici-types: 5.26.5 @@ -4055,14 +4170,38 @@ snapshots: dependencies: '@types/yargs-parser': 21.0.3 + '@zk-kit/artifacts@1.4.1': {} + '@zk-kit/artifacts@1.6.0': {} + '@zk-kit/artifacts@1.9.0': {} + + '@zk-kit/poseidon-proof@1.0.0-beta.4': + dependencies: + '@zk-kit/artifacts': 1.4.1 + '@zk-kit/utils': 1.0.0 + ethers: 6.13.1 + snarkjs: 0.7.4 + transitivePeerDependencies: + - bufferutil + - utf-8-validate + + '@zk-kit/utils@1.0.0': + dependencies: + buffer: 6.0.3 + + '@zk-kit/utils@1.2.0': + dependencies: + buffer: 6.0.3 + acorn-walk@8.3.3: dependencies: acorn: 8.12.1 acorn@8.12.1: {} + aes-js@4.0.0-beta.5: {} + ansi-colors@4.1.3: {} ansi-escapes@4.3.2: @@ -4213,6 +4352,8 @@ snapshots: bluebird@3.7.2: {} + bn.js@5.2.1: {} + boolbase@1.0.0: {} brace-expansion@1.1.11: @@ -4261,6 +4402,11 @@ snapshots: base64-js: 1.5.1 ieee754: 1.2.1 + buffer@6.0.3: + dependencies: + base64-js: 1.5.1 + ieee754: 1.2.1 + call-bind@1.0.7: dependencies: es-define-property: 1.0.0 @@ -4395,13 +4541,13 @@ snapshots: convert-source-map@2.0.0: {} - create-jest@29.7.0(@types/node@20.14.11)(ts-node@10.9.2): + create-jest@29.7.0(@types/node@20.14.11)(ts-node@10.9.2(@types/node@20.14.11)(typescript@5.5.3)): dependencies: '@jest/types': 29.6.3 chalk: 4.1.2 exit: 0.1.2 graceful-fs: 4.2.11 - jest-config: 29.7.0(@types/node@20.14.11)(ts-node@10.9.2) + jest-config: 29.7.0(@types/node@20.14.11)(ts-node@10.9.2(@types/node@20.14.11)(typescript@5.5.3)) jest-util: 29.7.0 prompts: 2.4.2 transitivePeerDependencies: @@ -4592,6 +4738,19 @@ snapshots: esutils@2.0.3: {} + ethers@6.13.1: + dependencies: + '@adraffy/ens-normalize': 1.10.1 + '@noble/curves': 1.2.0 + '@noble/hashes': 1.3.2 + '@types/node': 18.15.13 + aes-js: 4.0.0-beta.5 + tslib: 2.4.0 + ws: 8.17.1 + transitivePeerDependencies: + - bufferutil + - utf-8-validate + execa@5.1.1: dependencies: cross-spawn: 7.0.3 @@ -4967,16 +5126,16 @@ snapshots: - babel-plugin-macros - supports-color - jest-cli@29.7.0(@types/node@20.14.11)(ts-node@10.9.2): + jest-cli@29.7.0(@types/node@20.14.11)(ts-node@10.9.2(@types/node@20.14.11)(typescript@5.5.3)): dependencies: - '@jest/core': 29.7.0(ts-node@10.9.2) + '@jest/core': 29.7.0(ts-node@10.9.2(@types/node@20.14.11)(typescript@5.5.3)) '@jest/test-result': 29.7.0 '@jest/types': 29.6.3 chalk: 4.1.2 - create-jest: 29.7.0(@types/node@20.14.11)(ts-node@10.9.2) + create-jest: 29.7.0(@types/node@20.14.11)(ts-node@10.9.2(@types/node@20.14.11)(typescript@5.5.3)) exit: 0.1.2 import-local: 3.1.0 - jest-config: 29.7.0(@types/node@20.14.11)(ts-node@10.9.2) + jest-config: 29.7.0(@types/node@20.14.11)(ts-node@10.9.2(@types/node@20.14.11)(typescript@5.5.3)) jest-util: 29.7.0 jest-validate: 29.7.0 yargs: 17.7.2 @@ -4986,12 +5145,11 @@ snapshots: - supports-color - ts-node - jest-config@29.7.0(@types/node@20.14.11)(ts-node@10.9.2): + jest-config@29.7.0(@types/node@20.14.11)(ts-node@10.9.2(@types/node@20.14.11)(typescript@5.5.3)): dependencies: '@babel/core': 7.24.9 '@jest/test-sequencer': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 20.14.11 babel-jest: 29.7.0(@babel/core@7.24.9) chalk: 4.1.2 ci-info: 3.9.0 @@ -5011,6 +5169,8 @@ snapshots: pretty-format: 29.7.0 slash: 3.0.0 strip-json-comments: 3.1.1 + optionalDependencies: + '@types/node': 20.14.11 ts-node: 10.9.2(@types/node@20.14.11)(typescript@5.5.3) transitivePeerDependencies: - babel-plugin-macros @@ -5093,7 +5253,7 @@ snapshots: jest-util: 29.7.0 jest-pnp-resolver@1.2.3(jest-resolve@29.7.0): - dependencies: + optionalDependencies: jest-resolve: 29.7.0 jest-regex-util@29.6.3: {} @@ -5231,12 +5391,12 @@ snapshots: merge-stream: 2.0.0 supports-color: 8.1.1 - jest@29.7.0(@types/node@20.14.11)(ts-node@10.9.2): + jest@29.7.0(@types/node@20.14.11)(ts-node@10.9.2(@types/node@20.14.11)(typescript@5.5.3)): dependencies: - '@jest/core': 29.7.0(ts-node@10.9.2) + '@jest/core': 29.7.0(ts-node@10.9.2(@types/node@20.14.11)(typescript@5.5.3)) '@jest/types': 29.6.3 import-local: 3.1.0 - jest-cli: 29.7.0(@types/node@20.14.11)(ts-node@10.9.2) + jest-cli: 29.7.0(@types/node@20.14.11)(ts-node@10.9.2(@types/node@20.14.11)(typescript@5.5.3)) transitivePeerDependencies: - '@types/node' - babel-plugin-macros @@ -5246,7 +5406,7 @@ snapshots: jiti@1.21.6: {} jotai@2.9.0(react@18.3.1): - dependencies: + optionalDependencies: react: 18.3.1 js-sha3@0.8.0: {} @@ -5534,6 +5694,8 @@ snapshots: dependencies: find-up: 4.1.0 + poseidon-lite@0.2.0: {} + possible-typed-array-names@1.0.0: {} postcss-import@15.1.0(postcss@8.4.39): @@ -5548,12 +5710,13 @@ snapshots: camelcase-css: 2.0.1 postcss: 8.4.39 - postcss-load-config@4.0.2(postcss@8.4.39)(ts-node@10.9.2): + postcss-load-config@4.0.2(postcss@8.4.39)(ts-node@10.9.2(@types/node@20.14.11)(typescript@5.5.3)): dependencies: lilconfig: 3.1.2 + yaml: 2.4.5 + optionalDependencies: postcss: 8.4.39 ts-node: 10.9.2(@types/node@20.14.11)(typescript@5.5.3) - yaml: 2.4.5 postcss-nested@6.0.1(postcss@8.4.39): dependencies: @@ -5866,7 +6029,7 @@ snapshots: supports-preserve-symlinks-flag@1.0.0: {} - tailwindcss@3.4.6(ts-node@10.9.2): + tailwindcss@3.4.6(ts-node@10.9.2(@types/node@20.14.11)(typescript@5.5.3)): dependencies: '@alloc/quick-lru': 5.2.0 arg: 5.0.2 @@ -5885,7 +6048,7 @@ snapshots: postcss: 8.4.39 postcss-import: 15.1.0(postcss@8.4.39) postcss-js: 4.0.1(postcss@8.4.39) - postcss-load-config: 4.0.2(postcss@8.4.39)(ts-node@10.9.2) + postcss-load-config: 4.0.2(postcss@8.4.39)(ts-node@10.9.2(@types/node@20.14.11)(typescript@5.5.3)) postcss-nested: 6.0.1(postcss@8.4.39) postcss-selector-parser: 6.1.1 resolve: 1.22.8 @@ -5933,13 +6096,12 @@ snapshots: ts-interface-checker@0.1.13: {} - ts-jest@29.2.2(@babel/core@7.24.9)(jest@29.7.0)(typescript@5.5.3): + ts-jest@29.2.2(@babel/core@7.24.9)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.24.9))(jest@29.7.0(@types/node@20.14.11)(ts-node@10.9.2(@types/node@20.14.11)(typescript@5.5.3)))(typescript@5.5.3): dependencies: - '@babel/core': 7.24.9 bs-logger: 0.2.6 ejs: 3.1.10 fast-json-stable-stringify: 2.1.0 - jest: 29.7.0(@types/node@20.14.11)(ts-node@10.9.2) + jest: 29.7.0(@types/node@20.14.11)(ts-node@10.9.2(@types/node@20.14.11)(typescript@5.5.3)) jest-util: 29.7.0 json5: 2.2.3 lodash.memoize: 4.1.2 @@ -5947,6 +6109,11 @@ snapshots: semver: 7.6.3 typescript: 5.5.3 yargs-parser: 21.1.1 + optionalDependencies: + '@babel/core': 7.24.9 + '@jest/transform': 29.7.0 + '@jest/types': 29.6.3 + babel-jest: 29.7.0(@babel/core@7.24.9) ts-node@10.9.2(@types/node@20.14.11)(typescript@5.5.3): dependencies: @@ -5966,6 +6133,8 @@ snapshots: v8-compile-cache-lib: 3.0.1 yn: 3.1.1 + tslib@2.4.0: {} + tslib@2.6.3: {} type-check@0.3.2: @@ -6017,11 +6186,11 @@ snapshots: vite@5.3.4(@types/node@20.14.11): dependencies: - '@types/node': 20.14.11 esbuild: 0.21.5 postcss: 8.4.39 rollup: 4.18.1 optionalDependencies: + '@types/node': 20.14.11 fsevents: 2.3.3 walker@1.0.8: @@ -6101,6 +6270,8 @@ snapshots: imurmurhash: 0.1.4 signal-exit: 3.0.7 + ws@8.17.1: {} + y18n@5.0.8: {} yallist@2.1.2: {}