Skip to content

Commit

Permalink
update v3 key & proof
Browse files Browse the repository at this point in the history
  • Loading branch information
volodymyr-basiuk committed Dec 13, 2023
1 parent 2389dca commit bb715a1
Show file tree
Hide file tree
Showing 2 changed files with 203 additions and 203 deletions.
62 changes: 31 additions & 31 deletions auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ func TestVerifyV3MessageWithSigProof_NonMerkalized(t *testing.T) {
request := CreateAuthorizationRequestWithMessage(reason, "message to sign", verifierID, callbackURL)
request.Body.Scope = append(request.Body.Scope, mtpProofRequest)

userID := "did:polygonid:polygon:mumbai:2qJhHewUsGr2UbX1nu5uvL3Pcb5bsCyjmY13qDGhuE"
userID := "did:polygonid:polygon:mumbai:2qFXWZVHKTaYX1vmTGtStgRq1s8vUWhQ7HLjtqb2fV"
responseUUID := uuid.New()

// response
Expand All @@ -839,43 +839,43 @@ func TestVerifyV3MessageWithSigProof_NonMerkalized(t *testing.T) {
ZKProof: types.ZKProof{
Proof: &types.ProofData{
A: []string{
"19496124686330960109178567457994500715090428735141622232991930923571239526973",
"5333382355311367091450878440766577869910107382042895327170027939018771173693",
"15208931239306667614189217356426367087296508213411046833716711442163868780112",
"20490648944065703271613941501811057996992005137106581261392868037192830801319",
"1",
},
B: [][]string{
{
"11389510010457944981784369226495937314782550305095522991941726775120463234015",
"148126783179791025484328164821355776079627478790636761838003498405312298491",
"9658837325736932089175519161219586340790605854199431170964132439402760343882",
"2229712957417570067219766417050901639838551011053815708957384652110672096636",
},
{
"7766703297362633966237582659363417860563792628606295958222132892597495153529",
"15738672081296050965904031242799997034543496978611262556741337726708555978459",
"8001092431519117455354797520811940294780537362771012429305941024017334317686",
"14862879727984936294040948959940841120433831193863247939940900720892674782281",
},
{
"1",
"0",
}},
C: []string{
"18760918093552542394351420933759316824980816755792571030066979459092260184974",
"9182463283752601046486968329887492781236172359540910031526604279260097167801",
"10979201893913563932568403855542624651100292054247823659266571152101750130209",
"21286864035525845180147694216456377751365547090829007463506610939813242720910",
"1",
},
Protocol: "groth16",
},
PubSignals: []string{
"0",
"24350193136522144674198915615287261666057484215399963613273196208778187266",
"6878827749334423177867070513976817969741918647989708554257988220056800690399",
"22466018227912887497595444357663749526852544754809814096731120723497783810",
"7232286365358812826682228661780467195854751779823604018938921042558237169817",
"0",
"0",
"0",
"1",
"84239",
"23438740603785224800206716785431987755756056895444592546615136461203837442",
"26675680708205250151451142983868154544835349648265874601395279235340702210",
"1",
"6878827749334423177867070513976817969741918647989708554257988220056800690399",
"1699623999",
"7232286365358812826682228661780467195854751779823604018938921042558237169817",
"1702457100",
"198285726510688200335207273836123338699",
"1",
"0",
Expand Down Expand Up @@ -946,7 +946,7 @@ func TestVerifyV3MessageWithSigProof_NonMerkalized(t *testing.T) {
"0",
"0",
"22728440853100433399211827098349696449620101147489499428101651758549307906",
"39",
"0",
},
},
},
Expand Down Expand Up @@ -979,7 +979,7 @@ func TestVerifyV3MessageWithMtpProof_Merkalized(t *testing.T) {
opt := true
mtpProofRequest.Optional = &opt
mtpProofRequest.Query = map[string]interface{}{
"allowedIssuers": []string{"did:polygonid:polygon:mumbai:2qLvkstQ79ysCXmgF3gwLRPmG3zu87FUvHdWXuCaR2"},
"allowedIssuers": []string{"did:polygonid:polygon:mumbai:2qKKc4jxAhabrdFrAF3iC7boycfdQmWXq2qTBU4sPc"},
"credentialSubject": map[string]interface{}{
"ZKPexperiance": map[string]interface{}{
"$eq": true,
Expand All @@ -993,7 +993,7 @@ func TestVerifyV3MessageWithMtpProof_Merkalized(t *testing.T) {
request := CreateAuthorizationRequestWithMessage(reason, "message to sign", verifierID, callbackURL)
request.Body.Scope = append(request.Body.Scope, mtpProofRequest)

userID := "did:polygonid:polygon:mumbai:2qJhHewUsGr2UbX1nu5uvL3Pcb5bsCyjmY13qDGhuE"
userID := "did:polygonid:polygon:mumbai:2qFXWZVHKTaYX1vmTGtStgRq1s8vUWhQ7HLjtqb2fV"
responseUUID := uuid.New()

// response
Expand All @@ -1013,43 +1013,43 @@ func TestVerifyV3MessageWithMtpProof_Merkalized(t *testing.T) {
ZKProof: types.ZKProof{
Proof: &types.ProofData{
A: []string{
"12582436427083471416912726376269523958753392889886772648509670943923737162680",
"13327685963399967454789624389844881269242234911288664890636268436523860633770",
"2191675399003747228361650328748147195525067334657244384911902711268678817802",
"19948479904115663964234685946314006853666845209972027887002197866333362304394",
"1",
},
B: [][]string{
{
"6693358487464199858877518294886808672471333730867991644283194148737940896450",
"11110843334777774682940947357404229242113193200057722521711019357322069752377",
"422189606437031219571968003421368368386938453003241975855652752251201163758",
"9263822572774254449054388930060153687464515712228765747368750307969672340141",
},
{
"18992402416017831847078005062147848393652749581766372802125889248754111439905",
"11455962363724404420777607059394249791464317126303291781963911144873696870341",
"19293339395101879017873172109004141351276884864694548105955158013357482683356",
"2779213239514041287265984937924693652347623320831272361142245115033321578990",
},
{
"1",
"0",
}},
C: []string{
"2893633285249011673439519599661172218147608584996899953922116448566272374939",
"9838181085566977797835840019736511974884393723532541789371781527381359846654",
"3805936274754036854895936107504061566835912493410231954955974762213052034636",
"11817318886045212940702535466395270095280111730105021796772613798925818134104",
"1",
},
Protocol: "groth16",
},
PubSignals: []string{
"1",
"24350193136522144674198915615287261666057484215399963613273196208778187266",
"8780491001938472632986532064321434471309522823142095150913966547706097373753",
"22466018227912887497595444357663749526852544754809814096731120723497783810",
"16501727979801979045409842472064689783782600072880560178348889772807800718289",
"0",
"0",
"0",
"2",
"84239",
"23438740603785224800206716785431987755756056895444592546615136461203837442",
"26675680708205250151451142983868154544835349648265874601395279235340702210",
"1",
"8780491001938472632986532064321434471309522823142095150913966547706097373753",
"1699624368",
"16501727979801979045409842472064689783782600072880560178348889772807800718289",
"1702457550",
"219578617064540016234161640375755865412",
"0",
"1944808975288007371356450257872165609440470546066507760733183342797918372827",
Expand Down Expand Up @@ -1120,7 +1120,7 @@ func TestVerifyV3MessageWithMtpProof_Merkalized(t *testing.T) {
"0",
"0",
"22728440853100433399211827098349696449620101147489499428101651758549307906",
"39",
"0",
},
},
},
Expand Down
Loading

0 comments on commit bb715a1

Please sign in to comment.