Skip to content

Commit

Permalink
feat: update keys(use trusted setup result)
Browse files Browse the repository at this point in the history
  • Loading branch information
wanseob committed Oct 27, 2021
1 parent 8bd70d4 commit a5a7d0c
Show file tree
Hide file tree
Showing 20 changed files with 3,092 additions and 3,556 deletions.
2 changes: 1 addition & 1 deletion packages/cli/src/apps/wallet/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const { argv } = yargs
},
snarkKeyCid: {
type: 'string',
default: '/ipfs/QmWdQnPVdbS61ERWJY76xfkbzrLDiQptE81LRTQUupSP7G',
default: '/ipfs/QmSQtbTnt5RWrP8uWJ3S5xUKntTx2DqcM7mM5vUg9uJGxq',
describe: 'An IPFS content identifier storing the proving keys',
},
})
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/wallet.dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@
"salt": "9950f726377129f30ad64e5f56e5a4077765ecf433e677481f9ce141c474e011"
},
"accountNumber": 3,
"snarkKeyCid": "/ipfs/QmWdQnPVdbS61ERWJY76xfkbzrLDiQptE81LRTQUupSP7G"
"snarkKeyCid": "/ipfs/QmSQtbTnt5RWrP8uWJ3S5xUKntTx2DqcM7mM5vUg9uJGxq"
}
2 changes: 1 addition & 1 deletion packages/cli/wallet.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@
"salt": "9950f726377129f30ad64e5f56e5a4077765ecf433e677481f9ce141c474e011"
},
"accountNumber": 3,
"snarkKeyCid": "/ipfs/QmWdQnPVdbS61ERWJY76xfkbzrLDiQptE81LRTQUupSP7G"
"snarkKeyCid": "/ipfs/QmSQtbTnt5RWrP8uWJ3S5xUKntTx2DqcM7mM5vUg9uJGxq"
}
2 changes: 1 addition & 1 deletion packages/client/src/zkopru-wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import ZkopruNode from './zkopru-node'
import fetch from './fetch'

// The ipfs path for the latest proving keys
const DEFAULT_KEY_CID = '/ipfs/QmWdQnPVdbS61ERWJY76xfkbzrLDiQptE81LRTQUupSP7G'
const DEFAULT_KEY_CID = '/ipfs/QmSQtbTnt5RWrP8uWJ3S5xUKntTx2DqcM7mM5vUg9uJGxq'
const ZERO_ADDRESS = '0x0000000000000000000000000000000000000000'

export default class ZkopruWallet {
Expand Down
265 changes: 118 additions & 147 deletions packages/contracts/keys/vks/zk_transaction_1_1.vk.json
Original file line number Diff line number Diff line change
@@ -1,149 +1,120 @@
{
"protocol": "groth16",
"curve": "bn128",
"nPublic": 12,
"vk_alpha_1": [
"19405745946311197405851515828339562358899389900994662963417790335969235900208",
"5429820106201320804481512922185750764014678856655195290685183434692412041394",
"1"
],
"vk_beta_2": [
[
"10396259212479098738413660229253365241937647313845270512678809662755920611829",
"1320060972402365870204205425134035226517865393767318692974750298512087712997"
],
[
"4145472262401399076498321449337558536818154114431215780149541619866273459753",
"7928940932271480395628319303334147505898222871485854740804125788532991846800"
],
[
"1",
"0"
]
],
"vk_gamma_2": [
[
"10857046999023057135944570762232829481370756359578518086990519993285655852781",
"11559732032986387107991004021392285783925812861821192530917403151452391805634"
],
[
"8495653923123431417604973247489272438418190587263600148770280649306958101930",
"4082367875863433681332203403145435568316851327593401208105741076214120093531"
],
[
"1",
"0"
]
],
"vk_delta_2": [
[
"14372572788669956263755485236517676380489024649271369022263852931034108758405",
"18840359048364226399304448324613290697511021384447762368278363365669223233679"
],
[
"17039766118904390072131117121180713786634998037446709731264187568120738698538",
"10173469094916689291299883457772856424052969992229657283966514531556443070121"
],
[
"1",
"0"
]
],
"vk_alphabeta_12": [
[
[
"8677041305653771710893353860251109559637478959562352554493112037827425240939",
"9490884353407782237317569454939068429065755715246244512404693462045044785779"
],
[
"18994016137884216871498505897281446463068375623443822258736294135376952462300",
"18324638763714336023240900026555202335442367762407645542880665530622801892157"
],
[
"14130170358373613062732921865405936831857125007777722370613906947219882172547",
"1164184829242719683483889289811140033026152979403346947884034927651643314001"
]
],
[
[
"12997510390606899402365398980310648038017169248454932951798944245304960673352",
"5249156973102121271420733256866446821867630906548658237366967415335791114433"
],
[
"20071133288852863952754463217657075059269937731646853987981249531288141568853",
"20519601080297545617252716934769616519038401454810604990000131601082222657996"
],
[
"21381253546150813515221543881907041432901365660579964730637459810795508764169",
"7186935614840707933051743049679652362549260336004064759568048694142767822702"
]
]
],
"IC": [
[
"7970219923817448412174247828612238776700107091964364001190064001157126034491",
"21755067105523525979494553675491508208162778957700287992697071855811442391638",
"1"
],
[
"1616090904052112701984947214665835550076132073282471212045998892765414380685",
"7423899679218108329131909831363432905774362157299585581506812831434753926653",
"1"
],
[
"16723955743151162642673088672164298778181832393384551898549579053433036005672",
"19557712722816978556564925039921954570830368461004470107288082528152520858561",
"1"
],
[
"11127485884391040945098816685679717207916907074855332395384160281789082890288",
"15164014323904431242700802722896992094952417808794481371103681641954581295893",
"1"
],
[
"10160884104531287306184576912956026867992726483039520413843523923539852700907",
"14400021561154226052151229148158367917509288727567836138677488717464283835364",
"1"
],
[
"10537290751070710166048127818437190283899373600596629580616467192735781782776",
"8264283236298156337801429694538580815974557712778327517200924575106482021953",
"1"
],
[
"12482400720276509584773083892510638535385993987563414185156651770807057347915",
"7774717403194938505626094447004268566923896079770657748352182624241266044219",
"1"
],
[
"16499110108514752842886222274787691983997111790714723726340126479392899444816",
"17372434006317572025782344064327664073499540491009348361029278523236526539583",
"1"
],
[
"2256056564123376022998378142315736898005075141730699046190960281974923767843",
"13346024769547551559686451479674981891193828583271646003635787539443568767775",
"1"
],
[
"19298271431057259580169937124687325814407227941897876200479803757001709192637",
"10776183681330843459408966679370235033182196962798440526399296835547611922552",
"1"
],
[
"12284469770856916944267871666596308180705054161521822370700765117059351091449",
"19026470203795325069636672686370410241778605427596524066612938011550908608429",
"1"
],
[
"3707616157884084561876851968493275829825354324177688920681371264093352240126",
"20968738107940739984946064904079512934881553015812625679288653239357943116875",
"1"
],
[
"10311989601810836716580127942820342328475866207427628213336197203667312777186",
"12689291878632356562791852095962780316960170116103752949394579617180254659017",
"1"
"protocol": "groth16",
"curve": "bn128",
"nPublic": 12,
"vk_alpha_1": [
"20491192805390485299153009773594534940189261866228447918068658471970481763042",
"9383485363053290200918347156157836566562967994039712273449902621266178545958",
"1"
],
"vk_beta_1": [
"15211389317798894798896851247799626062785321531532758517464529995187639884123",
"12867572073764754580367509445828455899206777962363467993790017867776181487636",
"1"
],
"vk_beta_2": [
[
"6375614351688725206403948262868962793625744043794305715222011528459656738731",
"4252822878758300859123897981450591353533073413197771768651442665752259397132"
],
[
"10505242626370262277552901082094356697409835680220590971873171140371331206856",
"21847035105528745403288232691147584728191162732299865338377159692350059136679"
],
["1", "0"]
],
"vk_gamma_2": [
[
"10857046999023057135944570762232829481370756359578518086990519993285655852781",
"11559732032986387107991004021392285783925812861821192530917403151452391805634"
],
[
"8495653923123431417604973247489272438418190587263600148770280649306958101930",
"4082367875863433681332203403145435568316851327593401208105741076214120093531"
],
["1", "0"]
],
"vk_delta_1": [
"1357108679826716381566784958110682099693717624913344854084470164071590591722",
"7958964702965491563358775483133773449375111863512248021926839307837800197175",
"1"
],
"vk_delta_2": [
[
"15442192037657326669625743521315587132733082134863006947637322668130365657271",
"5386384793911659473478276443864725007463504317893994454112615462197654489370"
],
[
"19440869797332854787305484153897584574571534142002411291533431384557377042952",
"3268546168070866578153093220809473522471457470772581572577144793796539851329"
],
["1", "0"]
],
"IC": [
[
"3898980613505770953736768044407435773943657875445586030440725856402762797750",
"12329893239988687562304426809129486173912336627270309061063354680601655166373",
"1"
],
[
"13318904817187626940655698181945178096614674968582370904173839946737079836257",
"12037605509864801639153485818889335032017983526159333757397540946803168025849",
"1"
],
[
"7133631457399777109815737625696435040351439019300747192867827805336904410297",
"6083778831143878354844861195715163944457924915069690284408605732570408946784",
"1"
],
[
"11569492357068906774730218332333452288723873615258746584980279445586500319953",
"10651539821170301708302763391442394806847053221915167715105384868080862107538",
"1"
],
[
"11577526884169303177269382526032478035715530554792788395695190341209181604960",
"14442335478325632562911475389944097815193766022153278165423267225885175808297",
"1"
],
[
"3030170656435887934743693615401696508587546805565359326780362721482433934352",
"56701932452857132375824273231628496743897075005468186367634523378910425421",
"1"
],
[
"19185572106744772752690798896246549765590809362443156592886311505468814379521",
"16547972903327361695803888181239760449752058837367352799011648501583103903536",
"1"
],
[
"20891717137359354970744770770399779298848538513452520966540144318199210765515",
"2706359679068990665765421680085170488172309294032937786888092535085013252428",
"1"
],
[
"10162926862919558918290249621089505269986126788502578897868102905015483159520",
"20855407722870150269567619132112107825266515587841112527456996316795604025022",
"1"
],
[
"19117042867566660047189949875434002356764095070338306881516959243793422741155",
"19872238778345851241879128528764610596566208371014885767285170158525263193198",
"1"
],
[
"5323155967665170756232345627785850898495269423234931860734588574129451120549",
"15208273994760984147598162822898438010682793691721896454105706445840637420896",
"1"
],
[
"5531759195587948072926905038335583913383468839406784747268461953746878420881",
"11254919210936163978902394205939810010594077397428609937982519376255250107481",
"1"
],
[
"14468913898180013330643979946556927286829342417945276268434248181822026606321",
"13655149683682065482558868766725409208573369481031679965992292999704163971327",
"1"
]
]
]
}
}
Loading

0 comments on commit a5a7d0c

Please sign in to comment.