Skip to content

Commit

Permalink
Update sha1_verification_key - allow expired passports
Browse files Browse the repository at this point in the history
  • Loading branch information
artemskriabin committed Jun 26, 2024
1 parent 59711b7 commit 096321b
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 29 deletions.
6 changes: 3 additions & 3 deletions internal/service/api/handlers/create_identity.go
Original file line number Diff line number Diff line change
Expand Up @@ -508,9 +508,9 @@ func validatePubSignals(
return errors.Wrap(err, "failed to validate DG1 hash")
}

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

if err := validatePubSignalsAge(cfg, requestData.ZKProof.PubSignals[9]); err != nil {
return errors.Wrap(err, "failed to validate pub signals age")
Expand Down
52 changes: 26 additions & 26 deletions sha1_verification_key.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@
],
"vk_delta_2": [
[
"13335603151114257085544796181936358705000717656954191293817584669435541903997",
"855044178118616772310849467209193664762752654954052490163498625045180193756"
"18302726213191475328611603957460767035263386773042567711887017231477574042100",
"18816997191959950303259207001794701714979821034699643879174234064674943241358"
],
[
"6302336779246085612303849712824706487368936725589359697885301708175792844786",
"3784551810894943508748993329302756088278319564314930030748154195034083326587"
"18487371652107421795307748638051023989399682224457980314002075818403687039801",
"6481671787299331458731483362852827903822123631349785110766030531642869619675"
],
[
"1",
Expand Down Expand Up @@ -81,58 +81,58 @@
],
"IC": [
[
"19766712073108394055778654604653161828599986192416085027770686939657537474394",
"12642379111858059083801753438279635767167548213546287271697232928586495515699",
"10798923337553639414538178756954700449560614245931096117582955251546459260186",
"245372587172292724780335500258183032533814223118303346521284887683192891340",
"1"
],
[
"584762057455664547744476471213046814865611820077786283125673808213893818755",
"2912432121204396054706954371886894328141865251111756656662249761743998496191",
"16012983432409775827398644722881084896478876981858535421423212538663107672453",
"21211394140741278972881650017757398740540235186464456337427334626865176117747",
"1"
],
[
"19451045650299307320044727951276477304372732815205278053357027625954057505564",
"7100217652478779412031569841873451007978853870973219012300086874189787375785",
"18284141910041247483772546446013018673196627389126310042540461847089552293740",
"795795337530972169428187946222919068851356520746863052180278154849114842349",
"1"
],
[
"11970078222384517632961845147934946655612526886659849027950134923294732029165",
"6527685793983467597201811761846003066122316061526297927932748528606993248636",
"5649445850507800483807830815822718246259569148489787500478523488880990141053",
"14443876660185393635038497933149942917737298436701818948966774085281135542608",
"1"
],
[
"2660457081731774785128097336270231248352700431474148108139412388195283182232",
"10488555146741721756573736739665847987061152580772800352624573820935951088344",
"2188763269816095219754756268357586333314819240525549518310747800268691297382",
"16178489607068993402876618692483022783975475063682988927383795586420094919989",
"1"
],
[
"4893978980811664218839438027979908249454919893355746208690065504815606996262",
"19502969513500282812422680455994826923834050704271610731578081635166186993501",
"10013256393871900029133077715303117954093933148533279274863800229687240438966",
"20126294339797661542044665540421918210568330668459408733020775555415078979495",
"1"
],
[
"18439384519127139362275927514462884403559719228548124935120397729435517213503",
"7048874182435608031065423155085957060967730132845918622494815786952189070741",
"8330594253803092541654927808069116729166221010438886369281827327167388840595",
"4960108921856391776946680918405295678007193022780924476611945366997115261926",
"1"
],
[
"11059240975576033930164464853226216820462476497935609277365762403945847356460",
"2881196981032565074325013910354406643711256837091689775171647854359302526073",
"7310121802954377158662695732312145905405648106702012841658460435376661023064",
"1424203240542722097695656533584849010914284787228244513064879338798831322306",
"1"
],
[
"18135724539352256541449998224099007381748021073153872484479250984089064579622",
"7992354498594564483034548722246985239588388054478138294348024661383582846574",
"13585269968650047094153789738089723160164353646302397186070077779763633064932",
"5445665791852519111059710219210489483510882116394102316851615568935484328774",
"1"
],
[
"5053719041764043456087341180127062799902390878534108335055115084702857369676",
"20142380894288460545079211888023687300985182521228248118922317151986740129783",
"19424965343766612496196363510499216634082942318802980982117580541246180156854",
"4014360245828915288028654924493374033980640954825833822638158295570418949477",
"1"
],
[
"13509562356188107648974321344583644995728503613402077845936593792883627805260",
"7794092723380352848845619773297911712349571618205916500009692182982271988232",
"2767592707291371319829423948799302292652224714088691739599482364243473533274",
"9026448118457937742640888140710249003474687613655659874624778053422904688683",
"1"
]
]
Expand Down

0 comments on commit 096321b

Please sign in to comment.