diff --git a/testvectorgen/contract_data/testdata/v3/issuer_from_genesis_state_to_first_auth_disabled_transition_v3.json b/testvectorgen/contract_data/testdata/v3/issuer_from_genesis_state_to_first_auth_disabled_transition_v3.json index 226ed4c7..fe776f15 100644 --- a/testvectorgen/contract_data/testdata/v3/issuer_from_genesis_state_to_first_auth_disabled_transition_v3.json +++ b/testvectorgen/contract_data/testdata/v3/issuer_from_genesis_state_to_first_auth_disabled_transition_v3.json @@ -1 +1 @@ -{"desc":"Issuer from genesis to first state transition auth disabled","inputs":{"authClaim":["80551937543569765027552589160822318028","0","18843627616807347027405965102907494712213509184168391784663804560181782095821","21769574296201138406688395494914474950554632404504713590270198507141791084591","17476719578317212277","0","0","0"],"authClaimMtp":["0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"],"authClaimNonRevMtp":["0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"],"authClaimNonRevMtpAuxHi":"0","authClaimNonRevMtpAuxHv":"0","authClaimNonRevMtpNoAux":"1","claimsTreeRoot":"20643387758736831799596675626240785455902781070167728593409367019626753600795","isOldStateGenesis":"1","newUserState":"2849223435122160319995683834117043936973956790269185029065075688578869661987","oldUserState":"2943483356559152311923412925436024635269538717812859789851139200242297094","revTreeRoot":"0","rootsTreeRoot":"0","signatureR8x":"10840985367121317453505114787511079759115113480685824776514623091425578836533","signatureR8y":"6764078532564999956152857453836033052841878877532817390400284512073490999004","signatureS":"2618611783882973181590468694831749514310039533059364632457696282630770942958","userID":"22057981499787921734624217749308316644136637822444794206796063681866502657","newAuthClaimMtp":["0","0","20623464549709321670943344492127400563881045962377531782738695004685340859426","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"],"newClaimsTreeRoot":"10117283230230945737287913517688864980798731012859639202846398587175949994464","newRevTreeRoot":"0","newRootsTreeRoot":"0"},"expOut":{"userID":"22057981499787921734624217749308316644136637822444794206796063681866502657","newUserState":"2849223435122160319995683834117043936973956790269185029065075688578869661987","oldUserState":"2943483356559152311923412925436024635269538717812859789851139200242297094","isOldStateGenesis":"1"}} \ No newline at end of file +{"desc":"Issuer from genesis to first state transition auth disabled","inputs":{"authClaim":["80551937543569765027552589160822318028","0","18843627616807347027405965102907494712213509184168391784663804560181782095821","21769574296201138406688395494914474950554632404504713590270198507141791084591","17476719578317212277","0","0","0"],"authClaimMtp":["0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"],"authClaimNonRevMtp":["0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"],"authClaimNonRevMtpAuxHi":"0","authClaimNonRevMtpAuxHv":"0","authClaimNonRevMtpNoAux":"1","claimsTreeRoot":"20643387758736831799596675626240785455902781070167728593409367019626753600795","isOldStateGenesis":"1","newUserState":"16911470968637303012243682196661900599310735102088601053412602445232291023376","oldUserState":"2943483356559152311923412925436024635269538717812859789851139200242297094","revTreeRoot":"0","rootsTreeRoot":"0","signatureR8x":"6055007916370395440241368074378803183735265842397698615876047803550833683683","signatureR8y":"4872208054774906551568681694668750975331936169017534092424897406151874209559","signatureS":"125031726448571319012692019236238277431541320790549797177561293546182573617","userID":"22057981499787921734624217749308316644136637822444794206796063681866502657","newAuthClaimMtp":["13920276944617505795695040137217047491277370733762537940694152855508976797992","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"],"newClaimsTreeRoot":"21086184659407650088304758971704784731045378328290753732498060536509438840420","newRevTreeRoot":"0","newRootsTreeRoot":"0"},"expOut":{"userID":"22057981499787921734624217749308316644136637822444794206796063681866502657","newUserState":"16911470968637303012243682196661900599310735102088601053412602445232291023376","oldUserState":"2943483356559152311923412925436024635269538717812859789851139200242297094","isOldStateGenesis":"1"}} \ No newline at end of file diff --git a/testvectorgen/contract_data/testdata/v3/valid_bjj_user_genesis_auth_disabled_v3.json b/testvectorgen/contract_data/testdata/v3/valid_bjj_user_genesis_auth_disabled_v3.json index ff229220..778a4542 100644 --- a/testvectorgen/contract_data/testdata/v3/valid_bjj_user_genesis_auth_disabled_v3.json +++ b/testvectorgen/contract_data/testdata/v3/valid_bjj_user_genesis_auth_disabled_v3.json @@ -1 +1 @@ -{"desc":"BJJ: Issuer first state / user - genesis state - Auth Disabled","inputs":{"requestID":"32","userGenesisID":"23006274145546572515053798212160025855323582904648170675239778444296327681","profileNonce":"0","claimSubjectProfileNonce":"999","authClaim":["0","0","0","0","0","0","0","0"],"authClaimIncMtp":["0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"],"authClaimNonRevMtp":["0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"],"authClaimNonRevMtpAuxHi":"0","authClaimNonRevMtpAuxHv":"0","authClaimNonRevMtpNoAux":"0","challenge":"583091486781463398742321306787801699791102451699","challengeSignatureR8x":"0","challengeSignatureR8y":"0","challengeSignatureS":"0","userClaimsTreeRoot":"0","userRevTreeRoot":"0","userRootsTreeRoot":"0","userState":"5317387130258456662214331362918410991734007599705406860481038345552731150762","gistRoot":"0","gistMtp":["0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"],"gistMtpAuxHi":"0","gistMtpAuxHv":"0","gistMtpNoAux":"0","issuerID":"22057981499787921734624217749308316644136637822444794206796063681866502657","issuerClaim":["14559690932601973492667815902177586678096","25332005985822486934643366384342584313524543868409105416725059803960840705","9213927290011334896127777675328088174434217313068333652739128278390111642646","0","30803922965249841627828060170","0","0","0"],"issuerClaimMtp":["0","0","20643387758736831799596675626240785455902781070167728593409367019626753600795","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"],"issuerClaimClaimsTreeRoot":"10117283230230945737287913517688864980798731012859639202846398587175949994464","issuerClaimRevTreeRoot":"0","issuerClaimRootsTreeRoot":"0","issuerClaimIdenState":"2849223435122160319995683834117043936973956790269185029065075688578869661987","isRevocationChecked":1,"issuerClaimNonRevClaimsTreeRoot":"10117283230230945737287913517688864980798731012859639202846398587175949994464","issuerClaimNonRevRevTreeRoot":"0","issuerClaimNonRevRootsTreeRoot":"0","issuerClaimNonRevState":"2849223435122160319995683834117043936973956790269185029065075688578869661987","issuerClaimNonRevMtp":["0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"],"issuerClaimNonRevMtpAuxHi":"0","issuerClaimNonRevMtpAuxHv":"0","issuerClaimNonRevMtpNoAux":"1","claimSchema":"267831521922558027206082390043321796944","claimPathNotExists":"0","claimPathMtp":["10589573826925462603050948846890883345903166374734689729289271532483057858782","4903363613407701830583497195848005212702896800468691857488755628900455996678","7545982957481491739149003206078420878340430249907160971377831259006673422787","0","7234734700882409562051669071537722159277854149198231521046768401160975042526","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"],"claimPathMtpNoAux":"0","claimPathMtpAuxHi":"0","claimPathMtpAuxHv":"0","claimPathKey":"20376033832371109177683048456014525905119173674985843915445634726167450989630","claimPathValue":"19960424","operator":2,"slotIndex":0,"timestamp":"1642074362","value":["20010101","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"],"issuerClaimSignatureR8x":"9725314054820182574856811109563426514760165252038879818462104420204416609328","issuerClaimSignatureR8y":"393631288379660520473719256622560377195511013022299349456897666482424652359","issuerClaimSignatureS":"1062724383590809628467750714676231693286167812523349158229736854255057448415","issuerAuthClaim":["80551937543569765027552589160822318028","0","18843627616807347027405965102907494712213509184168391784663804560181782095821","21769574296201138406688395494914474950554632404504713590270198507141791084591","17476719578317212277","0","0","0"],"issuerAuthClaimMtp":["0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"],"issuerAuthClaimNonRevMtp":["0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"],"issuerAuthClaimNonRevMtpAuxHi":"0","issuerAuthClaimNonRevMtpAuxHv":"0","issuerAuthClaimNonRevMtpNoAux":"1","issuerAuthClaimsTreeRoot":"20643387758736831799596675626240785455902781070167728593409367019626753600795","issuerAuthRevTreeRoot":"0","issuerAuthRootsTreeRoot":"0","issuerAuthState":"2943483356559152311923412925436024635269538717812859789851139200242297094","proofType":"1","linkNonce":"18","verifierID":"21929109382993718606847853573861987353620810345503358891473103689157378049","nullifierSessionID":"1234569","authEnabled":0},"expOut":{"requestID":"32","userID":"23006274145546572515053798212160025855323582904648170675239778444296327681","issuerID":"22057981499787921734624217749308316644136637822444794206796063681866502657","issuerClaimNonRevState":"2849223435122160319995683834117043936973956790269185029065075688578869661987","circuitQueryHash":"12816522451235043383360844734477263990263633888892986646884788265975859605506","gistRoot":"0","timestamp":"1642074362","merklized":"1","proofType":"1","isRevocationChecked":"1","challenge":"583091486781463398742321306787801699791102451699","issuerState":"2943483356559152311923412925436024635269538717812859789851139200242297094","linkID":"9069846887849371523003626710972036591531592782403850230651851545348605982450","verifierID":"21929109382993718606847853573861987353620810345503358891473103689157378049","nullifierSessionID":"1234569","operatorOutput":"0","nullifier":"2391236256579199361493361173175703926943529965960611924494830154382898472529","authEnabled":"0"}} \ No newline at end of file +{"desc":"BJJ: Issuer first state / user - genesis state - Auth Disabled","inputs":{"requestID":"32","userGenesisID":"23013175891893363078841232968022302880776034013620341061794940968520126978","profileNonce":"0","claimSubjectProfileNonce":"0","authClaim":["0","0","0","0","0","0","0","0"],"authClaimIncMtp":["0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"],"authClaimNonRevMtp":["0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"],"authClaimNonRevMtpAuxHi":"0","authClaimNonRevMtpAuxHv":"0","authClaimNonRevMtpNoAux":"0","challenge":"583091486781463398742321306787801699791102451699","challengeSignatureR8x":"0","challengeSignatureR8y":"0","challengeSignatureS":"0","userClaimsTreeRoot":"0","userRevTreeRoot":"0","userRootsTreeRoot":"0","userState":"5317387130258456662214331362918410991734007599705406860481038345552731150762","gistRoot":"0","gistMtp":["0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"],"gistMtpAuxHi":"0","gistMtpAuxHv":"0","gistMtpNoAux":"0","issuerID":"22057981499787921734624217749308316644136637822444794206796063681866502657","issuerClaim":["14559690932601973492667815902177586678096","23013175891893363078841232968022302880776034013620341061794940968520126978","9213927290011334896127777675328088174434217313068333652739128278390111642646","0","30803922965249841627828060170","0","0","0"],"issuerClaimMtp":["20643387758736831799596675626240785455902781070167728593409367019626753600795","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"],"issuerClaimClaimsTreeRoot":"21086184659407650088304758971704784731045378328290753732498060536509438840420","issuerClaimRevTreeRoot":"0","issuerClaimRootsTreeRoot":"0","issuerClaimIdenState":"16911470968637303012243682196661900599310735102088601053412602445232291023376","isRevocationChecked":1,"issuerClaimNonRevClaimsTreeRoot":"21086184659407650088304758971704784731045378328290753732498060536509438840420","issuerClaimNonRevRevTreeRoot":"0","issuerClaimNonRevRootsTreeRoot":"0","issuerClaimNonRevState":"16911470968637303012243682196661900599310735102088601053412602445232291023376","issuerClaimNonRevMtp":["0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"],"issuerClaimNonRevMtpAuxHi":"0","issuerClaimNonRevMtpAuxHv":"0","issuerClaimNonRevMtpNoAux":"1","claimSchema":"267831521922558027206082390043321796944","claimPathNotExists":"0","claimPathMtp":["10589573826925462603050948846890883345903166374734689729289271532483057858782","4903363613407701830583497195848005212702896800468691857488755628900455996678","7545982957481491739149003206078420878340430249907160971377831259006673422787","0","7234734700882409562051669071537722159277854149198231521046768401160975042526","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"],"claimPathMtpNoAux":"0","claimPathMtpAuxHi":"0","claimPathMtpAuxHv":"0","claimPathKey":"20376033832371109177683048456014525905119173674985843915445634726167450989630","claimPathValue":"19960424","operator":2,"slotIndex":0,"timestamp":"1642074362","value":["20010101","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"],"issuerClaimSignatureR8x":"13911499604753673789524925237974757852442326056619123998177153091271750751494","issuerClaimSignatureR8y":"4410585813456846388673758578760540047188245171012977452212359210567823951539","issuerClaimSignatureS":"343558701522070187271580522311771620354018236796846256744643794818586520785","issuerAuthClaim":["80551937543569765027552589160822318028","0","18843627616807347027405965102907494712213509184168391784663804560181782095821","21769574296201138406688395494914474950554632404504713590270198507141791084591","17476719578317212277","0","0","0"],"issuerAuthClaimMtp":["0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"],"issuerAuthClaimNonRevMtp":["0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"],"issuerAuthClaimNonRevMtpAuxHi":"0","issuerAuthClaimNonRevMtpAuxHv":"0","issuerAuthClaimNonRevMtpNoAux":"1","issuerAuthClaimsTreeRoot":"20643387758736831799596675626240785455902781070167728593409367019626753600795","issuerAuthRevTreeRoot":"0","issuerAuthRootsTreeRoot":"0","issuerAuthState":"2943483356559152311923412925436024635269538717812859789851139200242297094","proofType":"1","linkNonce":"18","verifierID":"21929109382993718606847853573861987353620810345503358891473103689157378049","nullifierSessionID":"0","authEnabled":0},"expOut":{"requestID":"32","userID":"23013175891893363078841232968022302880776034013620341061794940968520126978","issuerID":"22057981499787921734624217749308316644136637822444794206796063681866502657","issuerClaimNonRevState":"16911470968637303012243682196661900599310735102088601053412602445232291023376","circuitQueryHash":"12816522451235043383360844734477263990263633888892986646884788265975859605506","gistRoot":"0","timestamp":"1642074362","merklized":"1","proofType":"1","isRevocationChecked":"1","challenge":"583091486781463398742321306787801699791102451699","issuerState":"2943483356559152311923412925436024635269538717812859789851139200242297094","linkID":"19823993270096139446564592922993947503208333537792611306066620392561342309875","verifierID":"21929109382993718606847853573861987353620810345503358891473103689157378049","nullifierSessionID":"0","operatorOutput":"0","nullifier":"0","authEnabled":"0"}} \ No newline at end of file diff --git a/testvectorgen/contract_data/testdata/v3/valid_mtp_user_genesis_auth_disabled_v3.json b/testvectorgen/contract_data/testdata/v3/valid_mtp_user_genesis_auth_disabled_v3.json index b57fffd3..2c115ebd 100644 --- a/testvectorgen/contract_data/testdata/v3/valid_mtp_user_genesis_auth_disabled_v3.json +++ b/testvectorgen/contract_data/testdata/v3/valid_mtp_user_genesis_auth_disabled_v3.json @@ -1 +1 @@ -{"desc":"MTP: Issuer first state / user - genesis state - Auth Disabled","inputs":{"requestID":"32","userGenesisID":"23006274145546572515053798212160025855323582904648170675239778444296327681","profileNonce":"0","claimSubjectProfileNonce":"999","authClaim":["0","0","0","0","0","0","0","0"],"authClaimIncMtp":["0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"],"authClaimNonRevMtp":["0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"],"authClaimNonRevMtpAuxHi":"0","authClaimNonRevMtpAuxHv":"0","authClaimNonRevMtpNoAux":"0","challenge":"583091486781463398742321306787801699791102451699","challengeSignatureR8x":"0","challengeSignatureR8y":"0","challengeSignatureS":"0","userClaimsTreeRoot":"0","userRevTreeRoot":"0","userRootsTreeRoot":"0","userState":"5317387130258456662214331362918410991734007599705406860481038345552731150762","gistRoot":"0","gistMtp":["0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"],"gistMtpAuxHi":"0","gistMtpAuxHv":"0","gistMtpNoAux":"0","issuerID":"22057981499787921734624217749308316644136637822444794206796063681866502657","issuerClaim":["14559690932601973492667815902177586678096","25332005985822486934643366384342584313524543868409105416725059803960840705","9213927290011334896127777675328088174434217313068333652739128278390111642646","0","30803922965249841627828060170","0","0","0"],"issuerClaimMtp":["0","0","20643387758736831799596675626240785455902781070167728593409367019626753600795","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"],"issuerClaimClaimsTreeRoot":"10117283230230945737287913517688864980798731012859639202846398587175949994464","issuerClaimRevTreeRoot":"0","issuerClaimRootsTreeRoot":"0","issuerClaimIdenState":"2849223435122160319995683834117043936973956790269185029065075688578869661987","isRevocationChecked":1,"issuerClaimNonRevClaimsTreeRoot":"10117283230230945737287913517688864980798731012859639202846398587175949994464","issuerClaimNonRevRevTreeRoot":"0","issuerClaimNonRevRootsTreeRoot":"0","issuerClaimNonRevState":"2849223435122160319995683834117043936973956790269185029065075688578869661987","issuerClaimNonRevMtp":["0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"],"issuerClaimNonRevMtpAuxHi":"0","issuerClaimNonRevMtpAuxHv":"0","issuerClaimNonRevMtpNoAux":"1","claimSchema":"267831521922558027206082390043321796944","claimPathNotExists":"0","claimPathMtp":["10589573826925462603050948846890883345903166374734689729289271532483057858782","4903363613407701830583497195848005212702896800468691857488755628900455996678","7545982957481491739149003206078420878340430249907160971377831259006673422787","0","7234734700882409562051669071537722159277854149198231521046768401160975042526","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"],"claimPathMtpNoAux":"0","claimPathMtpAuxHi":"0","claimPathMtpAuxHv":"0","claimPathKey":"20376033832371109177683048456014525905119173674985843915445634726167450989630","claimPathValue":"19960424","operator":2,"slotIndex":2,"timestamp":"1642074362","value":["20010101","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"],"issuerClaimSignatureR8x":"0","issuerClaimSignatureR8y":"0","issuerClaimSignatureS":"0","issuerAuthClaim":["0","0","0","0","0","0","0","0"],"issuerAuthClaimMtp":["0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"],"issuerAuthClaimNonRevMtp":["0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"],"issuerAuthClaimNonRevMtpAuxHi":"0","issuerAuthClaimNonRevMtpAuxHv":"0","issuerAuthClaimNonRevMtpNoAux":"0","issuerAuthClaimsTreeRoot":"0","issuerAuthRevTreeRoot":"0","issuerAuthRootsTreeRoot":"0","issuerAuthState":"0","proofType":"2","linkNonce":"18","verifierID":"21929109382993718606847853573861987353620810345503358891473103689157378049","nullifierSessionID":"1234569","authEnabled":0},"expOut":{"requestID":"32","userID":"23006274145546572515053798212160025855323582904648170675239778444296327681","issuerID":"22057981499787921734624217749308316644136637822444794206796063681866502657","issuerClaimNonRevState":"2849223435122160319995683834117043936973956790269185029065075688578869661987","circuitQueryHash":"16085407811791493874423550911889456452275693306656061172817544983916814452534","gistRoot":"0","timestamp":"1642074362","merklized":"1","proofType":"2","isRevocationChecked":"1","challenge":"583091486781463398742321306787801699791102451699","issuerState":"2849223435122160319995683834117043936973956790269185029065075688578869661987","linkID":"9069846887849371523003626710972036591531592782403850230651851545348605982450","verifierID":"21929109382993718606847853573861987353620810345503358891473103689157378049","nullifierSessionID":"1234569","operatorOutput":"0","nullifier":"2391236256579199361493361173175703926943529965960611924494830154382898472529","authEnabled":"0"}} \ No newline at end of file +{"desc":"MTP: Issuer first state / user - genesis state - Auth Disabled","inputs":{"requestID":"32","userGenesisID":"23013175891893363078841232968022302880776034013620341061794940968520126978","profileNonce":"0","claimSubjectProfileNonce":"0","authClaim":["0","0","0","0","0","0","0","0"],"authClaimIncMtp":["0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"],"authClaimNonRevMtp":["0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"],"authClaimNonRevMtpAuxHi":"0","authClaimNonRevMtpAuxHv":"0","authClaimNonRevMtpNoAux":"0","challenge":"583091486781463398742321306787801699791102451699","challengeSignatureR8x":"0","challengeSignatureR8y":"0","challengeSignatureS":"0","userClaimsTreeRoot":"0","userRevTreeRoot":"0","userRootsTreeRoot":"0","userState":"5317387130258456662214331362918410991734007599705406860481038345552731150762","gistRoot":"0","gistMtp":["0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"],"gistMtpAuxHi":"0","gistMtpAuxHv":"0","gistMtpNoAux":"0","issuerID":"22057981499787921734624217749308316644136637822444794206796063681866502657","issuerClaim":["14559690932601973492667815902177586678096","23013175891893363078841232968022302880776034013620341061794940968520126978","9213927290011334896127777675328088174434217313068333652739128278390111642646","0","30803922965249841627828060170","0","0","0"],"issuerClaimMtp":["20643387758736831799596675626240785455902781070167728593409367019626753600795","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"],"issuerClaimClaimsTreeRoot":"21086184659407650088304758971704784731045378328290753732498060536509438840420","issuerClaimRevTreeRoot":"0","issuerClaimRootsTreeRoot":"0","issuerClaimIdenState":"16911470968637303012243682196661900599310735102088601053412602445232291023376","isRevocationChecked":1,"issuerClaimNonRevClaimsTreeRoot":"21086184659407650088304758971704784731045378328290753732498060536509438840420","issuerClaimNonRevRevTreeRoot":"0","issuerClaimNonRevRootsTreeRoot":"0","issuerClaimNonRevState":"16911470968637303012243682196661900599310735102088601053412602445232291023376","issuerClaimNonRevMtp":["0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"],"issuerClaimNonRevMtpAuxHi":"0","issuerClaimNonRevMtpAuxHv":"0","issuerClaimNonRevMtpNoAux":"1","claimSchema":"267831521922558027206082390043321796944","claimPathNotExists":"0","claimPathMtp":["10589573826925462603050948846890883345903166374734689729289271532483057858782","4903363613407701830583497195848005212702896800468691857488755628900455996678","7545982957481491739149003206078420878340430249907160971377831259006673422787","0","7234734700882409562051669071537722159277854149198231521046768401160975042526","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"],"claimPathMtpNoAux":"0","claimPathMtpAuxHi":"0","claimPathMtpAuxHv":"0","claimPathKey":"20376033832371109177683048456014525905119173674985843915445634726167450989630","claimPathValue":"19960424","operator":2,"slotIndex":2,"timestamp":"1642074362","value":["20010101","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"],"issuerClaimSignatureR8x":"0","issuerClaimSignatureR8y":"0","issuerClaimSignatureS":"0","issuerAuthClaim":["0","0","0","0","0","0","0","0"],"issuerAuthClaimMtp":["0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"],"issuerAuthClaimNonRevMtp":["0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"],"issuerAuthClaimNonRevMtpAuxHi":"0","issuerAuthClaimNonRevMtpAuxHv":"0","issuerAuthClaimNonRevMtpNoAux":"0","issuerAuthClaimsTreeRoot":"0","issuerAuthRevTreeRoot":"0","issuerAuthRootsTreeRoot":"0","issuerAuthState":"0","proofType":"2","linkNonce":"18","verifierID":"21929109382993718606847853573861987353620810345503358891473103689157378049","nullifierSessionID":"0","authEnabled":0},"expOut":{"requestID":"32","userID":"23013175891893363078841232968022302880776034013620341061794940968520126978","issuerID":"22057981499787921734624217749308316644136637822444794206796063681866502657","issuerClaimNonRevState":"16911470968637303012243682196661900599310735102088601053412602445232291023376","circuitQueryHash":"16085407811791493874423550911889456452275693306656061172817544983916814452534","gistRoot":"0","timestamp":"1642074362","merklized":"1","proofType":"2","isRevocationChecked":"1","challenge":"583091486781463398742321306787801699791102451699","issuerState":"16911470968637303012243682196661900599310735102088601053412602445232291023376","linkID":"19823993270096139446564592922993947503208333537792611306066620392561342309875","verifierID":"21929109382993718606847853573861987353620810345503358891473103689157378049","nullifierSessionID":"0","operatorOutput":"0","nullifier":"0","authEnabled":"0"}} \ No newline at end of file diff --git a/testvectorgen/contract_data/v3_test.go b/testvectorgen/contract_data/v3_test.go index 83acb950..93b47eca 100644 --- a/testvectorgen/contract_data/v3_test.go +++ b/testvectorgen/contract_data/v3_test.go @@ -32,7 +32,7 @@ func Test_Generate_Test_CasesV3(t *testing.T) { _, issuerSecondState := generateStateTransitionData(t, true, IssuerPK, UserPK, "Issuer from first to second transition", "v3/issuer_from_first_state_to_second_transition_v3", true, false) _, userSecondState := generateStateTransitionData(t, true, UserPK, IssuerPK, "User from first to second transition", "v3/user_from_first_state_to_second_transition_v3", false, false) - _, issuerAuthDisabledFirstState := generateStateTransitionData(t, false, IssuerPK, UserPK, "Issuer from genesis to first state transition auth disabled", "v3/issuer_from_genesis_state_to_first_auth_disabled_transition_v3", true, true) + _, issuerAuthDisabledFirstState := generateStateTransitionData(t, false, IssuerPK, UserPK, "Issuer from genesis to first state transition auth disabled", "v3/issuer_from_genesis_state_to_first_auth_disabled_transition_v3", false, true) generateData(t, "BJJ: Issuer first state / user - genesis state", []*gistData{ {issuerId, issuerFirstState}, @@ -107,6 +107,7 @@ func generateData(t *testing.T, desc string, gistData []*gistData, userFirstStat } else { // generate onchain identity user = utils.NewEthereumBasedIdentity(t, ethAddress) + nullifierSessionID = "0" } issuer := utils.NewIdentity(t, IssuerPK) @@ -116,7 +117,7 @@ func generateData(t *testing.T, desc string, gistData []*gistData, userFirstStat subjectID := user.ID var nonceSubject = new(big.Int) - if isSubjectIDProfile { + if isSubjectIDProfile && authEnabled == 1 { nonceSubject = big.NewInt(999) subjectID, err = core.ProfileID(user.ID, nonceSubject) require.NoError(t, err) diff --git a/testvectorgen/utils/identity.go b/testvectorgen/utils/identity.go index fd6ad38f..6bcf079b 100644 --- a/testvectorgen/utils/identity.go +++ b/testvectorgen/utils/identity.go @@ -198,7 +198,7 @@ func NewEthereumBasedIdentity(t testing.TB, ethAddr string) *IdentityTest { t.Fatalf("Error creating genesis state from address: %v", err) } - didType, err := core.BuildDIDType(core.DIDMethodIden3, core.Polygon, core.Mumbai) + didType, err := core.BuildDIDType(core.DIDMethodPolygonID, core.Polygon, core.Mumbai) if err != nil { t.Fatalf("Error creating did type: %v", err) }