Skip to content

Commit 096321b

Browse files
committed
Update sha1_verification_key - allow expired passports
1 parent 59711b7 commit 096321b

File tree

2 files changed

+29
-29
lines changed

2 files changed

+29
-29
lines changed

internal/service/api/handlers/create_identity.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -508,9 +508,9 @@ func validatePubSignals(
508508
return errors.Wrap(err, "failed to validate DG1 hash")
509509
}
510510

511-
//if err := validatePubSignalsCurrentDate(requestData.ZKProof.PubSignals); err != nil {
512-
// return fmt.Errorf("invalid current date: %w", err)
513-
//}
511+
if err := validatePubSignalsCurrentDate(requestData.ZKProof.PubSignals); err != nil {
512+
return fmt.Errorf("invalid current date: %w", err)
513+
}
514514

515515
if err := validatePubSignalsAge(cfg, requestData.ZKProof.PubSignals[9]); err != nil {
516516
return errors.Wrap(err, "failed to validate pub signals age")

sha1_verification_key.json

+26-26
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@
3737
],
3838
"vk_delta_2": [
3939
[
40-
"13335603151114257085544796181936358705000717656954191293817584669435541903997",
41-
"855044178118616772310849467209193664762752654954052490163498625045180193756"
40+
"18302726213191475328611603957460767035263386773042567711887017231477574042100",
41+
"18816997191959950303259207001794701714979821034699643879174234064674943241358"
4242
],
4343
[
44-
"6302336779246085612303849712824706487368936725589359697885301708175792844786",
45-
"3784551810894943508748993329302756088278319564314930030748154195034083326587"
44+
"18487371652107421795307748638051023989399682224457980314002075818403687039801",
45+
"6481671787299331458731483362852827903822123631349785110766030531642869619675"
4646
],
4747
[
4848
"1",
@@ -81,58 +81,58 @@
8181
],
8282
"IC": [
8383
[
84-
"19766712073108394055778654604653161828599986192416085027770686939657537474394",
85-
"12642379111858059083801753438279635767167548213546287271697232928586495515699",
84+
"10798923337553639414538178756954700449560614245931096117582955251546459260186",
85+
"245372587172292724780335500258183032533814223118303346521284887683192891340",
8686
"1"
8787
],
8888
[
89-
"584762057455664547744476471213046814865611820077786283125673808213893818755",
90-
"2912432121204396054706954371886894328141865251111756656662249761743998496191",
89+
"16012983432409775827398644722881084896478876981858535421423212538663107672453",
90+
"21211394140741278972881650017757398740540235186464456337427334626865176117747",
9191
"1"
9292
],
9393
[
94-
"19451045650299307320044727951276477304372732815205278053357027625954057505564",
95-
"7100217652478779412031569841873451007978853870973219012300086874189787375785",
94+
"18284141910041247483772546446013018673196627389126310042540461847089552293740",
95+
"795795337530972169428187946222919068851356520746863052180278154849114842349",
9696
"1"
9797
],
9898
[
99-
"11970078222384517632961845147934946655612526886659849027950134923294732029165",
100-
"6527685793983467597201811761846003066122316061526297927932748528606993248636",
99+
"5649445850507800483807830815822718246259569148489787500478523488880990141053",
100+
"14443876660185393635038497933149942917737298436701818948966774085281135542608",
101101
"1"
102102
],
103103
[
104-
"2660457081731774785128097336270231248352700431474148108139412388195283182232",
105-
"10488555146741721756573736739665847987061152580772800352624573820935951088344",
104+
"2188763269816095219754756268357586333314819240525549518310747800268691297382",
105+
"16178489607068993402876618692483022783975475063682988927383795586420094919989",
106106
"1"
107107
],
108108
[
109-
"4893978980811664218839438027979908249454919893355746208690065504815606996262",
110-
"19502969513500282812422680455994826923834050704271610731578081635166186993501",
109+
"10013256393871900029133077715303117954093933148533279274863800229687240438966",
110+
"20126294339797661542044665540421918210568330668459408733020775555415078979495",
111111
"1"
112112
],
113113
[
114-
"18439384519127139362275927514462884403559719228548124935120397729435517213503",
115-
"7048874182435608031065423155085957060967730132845918622494815786952189070741",
114+
"8330594253803092541654927808069116729166221010438886369281827327167388840595",
115+
"4960108921856391776946680918405295678007193022780924476611945366997115261926",
116116
"1"
117117
],
118118
[
119-
"11059240975576033930164464853226216820462476497935609277365762403945847356460",
120-
"2881196981032565074325013910354406643711256837091689775171647854359302526073",
119+
"7310121802954377158662695732312145905405648106702012841658460435376661023064",
120+
"1424203240542722097695656533584849010914284787228244513064879338798831322306",
121121
"1"
122122
],
123123
[
124-
"18135724539352256541449998224099007381748021073153872484479250984089064579622",
125-
"7992354498594564483034548722246985239588388054478138294348024661383582846574",
124+
"13585269968650047094153789738089723160164353646302397186070077779763633064932",
125+
"5445665791852519111059710219210489483510882116394102316851615568935484328774",
126126
"1"
127127
],
128128
[
129-
"5053719041764043456087341180127062799902390878534108335055115084702857369676",
130-
"20142380894288460545079211888023687300985182521228248118922317151986740129783",
129+
"19424965343766612496196363510499216634082942318802980982117580541246180156854",
130+
"4014360245828915288028654924493374033980640954825833822638158295570418949477",
131131
"1"
132132
],
133133
[
134-
"13509562356188107648974321344583644995728503613402077845936593792883627805260",
135-
"7794092723380352848845619773297911712349571618205916500009692182982271988232",
134+
"2767592707291371319829423948799302292652224714088691739599482364243473533274",
135+
"9026448118457937742640888140710249003474687613655659874624778053422904688683",
136136
"1"
137137
]
138138
]

0 commit comments

Comments
 (0)