commit
43f224fab9
@ -30,6 +30,7 @@
|
||||
"dependencies": {
|
||||
"big-integer": "^1.6.35",
|
||||
"chai": "^4.1.2",
|
||||
"escape-string-regexp": "^1.0.5",
|
||||
"eslint": "^5.3.0",
|
||||
"yargs": "^12.0.2"
|
||||
},
|
||||
|
@ -189,8 +189,9 @@ function calculateEncriptedValuesAtT(setup, circuit) {
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
setup.vk_proof.Ap[s] = G1.affine(G1.mulScalar(A, setup.toxic.ka));
|
||||
if (s > setup.vk_proof.nPublic) {
|
||||
setup.vk_proof.Ap[s] = G1.affine(G1.mulScalar(A, setup.toxic.ka));
|
||||
}
|
||||
setup.vk_proof.Bp[s] = G1.affine(G1.mulScalar(B1, setup.toxic.kb));
|
||||
setup.vk_proof.Cp[s] = G1.affine(G1.mulScalar(C, setup.toxic.kc));
|
||||
setup.vk_proof.Kp[s] = G1.affine(G1.mulScalar(K, setup.toxic.kbeta));
|
||||
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
{"protocol":"original","nPublic":2,"IC":[["8849055511082207197386816220933697359788971969723311105914207102749058732262","16959719579845113100884343214094921890994800988324717557455180752030411170003","1"],["2484443707386195254509798174506364533244136674881306666282125111587938066433","19427682058362356154903959035863203819006762969409806927732486823153723237810","1"],["7130785916432156053719609234300145030816421804617499884567479079011422988955","6189201216535197259817162464187743592146560869870792185911497850033335074298","1"]],"vk_a":[["9872559917844294477536347504934832320655533991650169902417802683379346119997","843772301140357563436689776827970926589741902080524202569657734909662469474"],["7531191948728096398667205760901764150746858276390769174947239681261174603496","19390457837724221793002986178650274717908327325393349077639674652630431124169"],["1","0"]],"vk_b":["501420461369693852599229883919204710886593732833724468965832578166009925713","10317710816126649044200749005377880660464978872377653125422472992191645650124","1"],"vk_c":[["10051649206767283312353552575431286293027310220624929913814364593030185419531","14791785180254274883514790322022956673529295334754985355268675419718338162079"],["7936893319622378351783826963378019679916863061363731322724584049671768481832","14935855848155905276829387453433187422477676703547349346896558674964769292707"],["1","0"]],"vk_gb_1":["16883378629371629842761088081108977348103248355774740955500038886325479370413","1920838522949484267352900228504548578245603817578514439559866317386119521003","1"],"vk_gb_2":[["11108842905356484096288635838337079212811899426526012687887143514045721790804","21031591569096646322506103672254640960873689370092824091794804577786886967908"],["817213165866263014069075203124784173584879880614844748456154653668382729159","864218259110131214014552546475739264317537208733507094863210326585244180593"],["1","0"]],"vk_g":[["14650542782728886534422292348945287981512706836643134176709351124791472680543","18960277976951274828172086500759014849906184580071220971216975068158250858162"],["14398341775515438116369872062699814349975225443081016536963355934433867545051","7430323674093579778297501612631986638268006525016526795405658142628213235594"],["1","0"]],"vk_z":[["9232595145194514136236063963352093468662621616460757765591947153028653483170","21870021077089796283233323883357370909479704574901541789297553490533610487318"],["1344881225032961007807685156782552847773328464965034725847677510387048101542","17695086597077289574292295853159694727053610025432390166769224554889027950018"],["1","0"]]}
|
||||
{"protocol":"original","nPublic":2,"IC":[["10656694063454270553664185371814248377464259170989192733771782452361856586005","1939629025831291494012169101171361892560837612476148977774490017363587693197","1"],["3697060407593222428448053753149215913728047798369817754294706024705644664865","6575711511909930740592160295318274935936291501518702205144285522212160457781","1"],["12541941956025901505395196639435249223177169355311162446104670985375290145347","13876747564111246766979388956043524104274681847700455101527951035957109588522","1"]],"vk_a":[["15270319623694701950609217601183692484311843486082609087884717788476171076241","12853833811282568231658988925404252037690042044829415432208453672083251923075"],["9162509475591080760984056234269897515384013558700916302380544945162287545597","19503711653955730549163854734611314560052233948206616318981774660134740283599"],["1","0"]],"vk_b":["749293211858701637270174484280379371128410687148705871635470667711022115005","6409935013683976367798416491038083506033896777458238726836711102425778126243","1"],"vk_c":[["1072231210379846604669014555531372662166634113124530176924260283711356797251","8278432111448081793281961354531557559462288242768629468139330177651294786229"],["18203546371818560205719095071363071004385731642499131385090096021324318506182","14890769400452831750478698663108894226121008021767463430437419294541215264849"],["1","0"]],"vk_gb_1":["12495178312666292233692631054509932053489315605598609258830343975622141490711","5215458684072580336017112640824510326921686699379929575493474271942676402333","1"],"vk_gb_2":[["14650418113957352620445140411555642071286218632760865484647558927871046100647","10209832510544015092392250003167869077390900926364858609931628726968458490710"],["21013322226258553508959284630208361322789027015887794769877049468141309479633","676201364784128328899079881553651450438748883421714908406892849588018197582"],["1","0"]],"vk_g":[["2327249289064968950248813036876034335852425133837358737739464948510641597030","14660080888337504949892913033623478080890840665413472236702131457315211568978"],["3206345532116558225167493428951167171524810283253897759317461815691550318975","2295385150248027568790911409770732621216922664228130432663979502433380070349"],["1","0"]],"vk_z":[["1572204728048978970711463047089585856488488614858371179150606822260538505262","14508374585659706464129238413208101933085397624460157923696036037189139086337"],["19507259099899174595129815312305496644722525252128720619630680806572280814177","5405423296694327276823000620936147715217576059886266146246668569442155709876"],["1","0"]]}
|
Loading…
Reference in New Issue
Block a user