-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #273 from decentralized-identity/vasilis/draft03-f…
…ixtures Update test vectors
- Loading branch information
Showing
57 changed files
with
395 additions
and
393 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,4 @@ lib | |
report.xml | ||
venv/ | ||
**/node_modules | ||
*.DS_Store |
40 changes: 20 additions & 20 deletions
40
tooling/fixtures/fixture_data/bls12-381-sha-256/MapMessageToScalarAsHash.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,46 @@ | ||
{ | ||
"caseName": "MapMessageToScalar fixture", | ||
"dst": "4242535f424c53313233383147315f584d443a5348412d3235365f535357555f524f5f4832475f4d41505f4d53475f544f5f5343414c41525f41535f484153485f", | ||
"dst": "4242535f424c53313233383147315f584d443a5348412d3235365f535357555f524f5f4832475f484d32535f4d41505f4d53475f544f5f5343414c41525f41535f484153485f", | ||
"cases": [ | ||
{ | ||
"message": "9872ad089e452c7b6e283dfac2a80d58e8d0ff71cc4d5e310a1debdda4a45f02", | ||
"scalar": "58ca5e52b2000979cd4cc6d5d46ecf7965e5b238fc1cef6b1e414bdd0737485c" | ||
"scalar": "1cb5bb86114b34dc438a911617655a1db595abafac92f47c5001799cf624b430" | ||
}, | ||
{ | ||
"message": "87a8bd656d49ee07b8110e1d8fd4f1dcef6fb9bc368c492d9bc8c4f98a739ac6", | ||
"scalar": "5ed56c1586740e65fa4e5606f677c0920319f1948c90f71b169479c81859c595" | ||
"message": "c344136d9ab02da4dd5908bbba913ae6f58c2cc844b802a6f811f5fb075f9b80", | ||
"scalar": "154249d503c093ac2df516d4bb88b510d54fd97e8d7121aede420a25d9521952" | ||
}, | ||
{ | ||
"message": "96012096adda3f13dd4adbe4eea481a4c4b5717932b73b00e31807d3c5894b90", | ||
"scalar": "515a909ebec48f2863e1fe26abd189adc8e4bce509835a4c4b276b8330704f90" | ||
"message": "7372e9daa5ed31e6cd5c825eac1b855e84476a1d94932aa348e07b73", | ||
"scalar": "0c7c4c85cdab32e6fdb0de267b16fa3212733d4e3a3f0d0f751657578b26fe22" | ||
}, | ||
{ | ||
"message": "ac55fb33a75909edac8994829b250779298aa75d69324a365733f16c333fa943", | ||
"scalar": "465eff553bd6cdb406010dd696841e45525dc43b95ef704948d7c0990be00cb1" | ||
"message": "77fe97eb97a1ebe2e81e4e3597a3ee740a66e9ef2412472c", | ||
"scalar": "4a196deafee5c23f630156ae13be3e46e53b7e39094d22877b8cba7f14640888" | ||
}, | ||
{ | ||
"message": "d183ddc6e2665aa4e2f088af9297b78c0d22b4290273db637ed33ff5cf703151", | ||
"scalar": "36728aafafeddb31fe21fc01a672db348720ec5e589c90470a96ab74a656e236" | ||
"message": "496694774c5604ab1b2544eababcf0f53278ff50", | ||
"scalar": "34c5ea4f2ba49117015a02c711bb173c11b06b3f1571b88a2952b93d0ed4cf7e" | ||
}, | ||
{ | ||
"message": "515ae153e22aae04ad16f759e07237b43022cb1ced4c176e0999c6a8ba5817cc", | ||
"scalar": "0953c69c56c6da15050df9458704810717f65eb828b1303a4771fec064d61820" | ||
"message": "515ae153e22aae04ad16f759e07237b4", | ||
"scalar": "4045b39b83055cd57a4d0203e1660800fabe434004dbdc8730c21ce3f0048b08" | ||
}, | ||
{ | ||
"message": "496694774c5604ab1b2544eababcf0f53278ff5040c1e77c811656e8220417a2", | ||
"scalar": "1057179411a0294978c6a428255a47cbefbab3760c5342781bbf75e3e00429ca" | ||
"message": "d183ddc6e2665aa4e2f088af", | ||
"scalar": "064621da4377b6b1d05ecc37cf3b9dfc94b9498d7013dc5c4a82bf3bb1750743" | ||
}, | ||
{ | ||
"message": "77fe97eb97a1ebe2e81e4e3597a3ee740a66e9ef2412472c23364568523f8b91", | ||
"scalar": "2635b9d82fc053f4357417774ff67e3fac1586496930ff09dfcb2415b06509d4" | ||
"message": "ac55fb33a75909ed", | ||
"scalar": "34ac9196ace0a37e147e32319ea9b3d8cc7d21870d3c3ba071246859cca49b02" | ||
}, | ||
{ | ||
"message": "7372e9daa5ed31e6cd5c825eac1b855e84476a1d94932aa348e07b7320912416", | ||
"scalar": "19deafcd9d7721921e7c5f36076a8b270c376b2495815bf9d63567dc0ff07f10" | ||
"message": "96012096", | ||
"scalar": "57eb93f417c43200e9784fa5ea5a59168d3dbc38df707a13bb597c871b2a5f74" | ||
}, | ||
{ | ||
"message": "c344136d9ab02da4dd5908bbba913ae6f58c2cc844b802a6f811f5fb075f9b80", | ||
"scalar": "4890be26d780070417e98b8d1b5049d47bdd2ccaded594657e9a20ca2cf49413" | ||
"message": "", | ||
"scalar": "08e3afeb2b4f2b5f907924ef42856616e6f2d5f1fb373736db1cca32707a7d16" | ||
} | ||
] | ||
} |
24 changes: 12 additions & 12 deletions
24
tooling/fixtures/fixture_data/bls12-381-sha-256/generators.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
{ | ||
"BP": "864df3ae75a023852b577c6aa46d1608d7bfb73c59c73dfd47250ea01c04ec1ad20560e8e4aca82296ca7c4e1b7c3620", | ||
"Q1": "adebcba609d19ccfae0eb0cacb228985e5d90b9cbdc573b56dbccc8eafae4737e1da27a65d4617990aa1f8711db3aec5", | ||
"BP": "a8ce256102840821a3e94ea9025e4662b205762f9776b3a766c872b948f1fd225e7c59698588e70d11406d161b4e28c9", | ||
"Q1": "a9ec65b70a7fbe40c874c9eb041c2cb0a7af36ccec1bea48fa2ba4c2eb67ef7f9ecb17ed27d38d27cdeddff44c8137be", | ||
"MsgGenerators": [ | ||
"ab7739f477d4b56b02b71778f6ec68ef7785d026b8e8860ebbe7a69b8c4fecfb15810fec850534bbed1ce41012cc6fc0", | ||
"82873b1e94b5135d07c65c5c0d21e1bd9ec9623466abec5cbb26d87b97587baf8f797fcb75d623f4682666675716d62e", | ||
"994deaa66a1787de573a0d6428476595bff82db978773a3007f504a3293938c7e73a15a2d07ab2a9d1bbb62dfc5b5299", | ||
"a5ea5151c9b3d8e43d462efb8576cf77784939ece143f36336b7c8495c73d586ac7463c1203e080f873417658d8e0c6b", | ||
"8ae3513aea2f9a3a20e9c974fa89cf72e0426981427737557ef4fe434a169f3cb59c5b455a5c69c69c6d306e224d023c", | ||
"8094e30bef7874a410954ebea2a7a1cdf32ed20e2da28ae1d491741a7bbb9079a1416f7150467cb2e46aa2156a08d4bb", | ||
"94f491284423ce2320511b65e433b1ca760330370d550833b5ad560acf13361eb3660062e55dd3a0b13ed28be87d9d6f", | ||
"a72e0b18aae0ceeef213d1224747390a9842c0aba88ae622058606447ec532b7eaa7a29222d9101a095b21764d5f32c1", | ||
"a0bbb2423b802a8374fcda3fb5fa31fd5e714b83925d9862fd7bfe8b77d24d5f3019d98c1787d4315ab94f1d2d69784e", | ||
"8dfae18463d2a1781112f83f54187ec345bd83949d7a43956da2f1afdd50b2bcb4dbb5722c271863570549b1287a7a87" | ||
"98cd5313283aaf5db1b3ba8611fe6070d19e605de4078c38df36019fbaad0bd28dd090fd24ed27f7f4d22d5ff5dea7d4", | ||
"a31fbe20c5c135bcaa8d9fc4e4ac665cc6db0226f35e737507e803044093f37697a9d452490a970eea6f9ad6c3dcaa3a", | ||
"b479263445f4d2108965a9086f9d1fdc8cde77d14a91c856769521ad3344754cc5ce90d9bc4c696dffbc9ef1d6ad1b62", | ||
"ac0401766d2128d4791d922557c7b4d1ae9a9b508ce266575244a8d6f32110d7b0b7557b77604869633bb49afbe20035", | ||
"b95d2898370ebc542857746a316ce32fa5151c31f9b57915e308ee9d1de7db69127d919e984ea0747f5223821b596335", | ||
"8f19359ae6ee508157492c06765b7df09e2e5ad591115742f2de9c08572bb2845cbf03fd7e23b7f031ed9c7564e52f39", | ||
"abc914abe2926324b2c848e8a411a2b6df18cbe7758db8644145fefb0bf0a2d558a8c9946bd35e00c69d167aadf304c1", | ||
"80755b3eb0dd4249cbefd20f177cee88e0761c066b71794825c9997b551f24051c352567ba6c01e57ac75dff763eaa17", | ||
"82701eb98070728e1769525e73abff1783cedc364adb20c05c897a62f2ab2927f86f118dcb7819a7b218d8f3fee4bd7f", | ||
"a1f229540474f4d6f1134761b92b788128c7ac8dc9b0c52d59493132679673032ac7db3fb3d79b46b13c1c41ee495bca" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"caseName": "Hash to scalar output", | ||
"message": "9872ad089e452c7b6e283dfac2a80d58e8d0ff71cc4d5e310a1debdda4a45f02", | ||
"dst": "4242535f424c53313233383147315f584d443a5348412d3235365f535357555f524f5f4832475f4832535f", | ||
"scalar": "3aebf1a9250fe84f1f62afd093123896bc3fd513232886a4213f6d05594ac3c2" | ||
"dst": "4242535f424c53313233383147315f584d443a5348412d3235365f535357555f524f5f4832475f484d32535f4832535f", | ||
"scalar": "0f90cbee27beb214e6545becb8404640d3612da5d6758dffeccd77ed7169807c" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 11 additions & 11 deletions
22
tooling/fixtures/fixture_data/bls12-381-sha-256/mockedRng.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
{ | ||
"caseName": "mocked random scalars", | ||
"seed": "332e313431353932363533353839373933323338343632363433333833323739", | ||
"dst": "4242535f424c53313233383147315f584d443a5348412d3235365f535357555f524f5f4832475f4d4f434b5f52414e444f4d5f5343414c4152535f4453545f", | ||
"dst": "4242535f424c53313233383147315f584d443a5348412d3235365f535357555f524f5f4832475f484d32535f4d4f434b5f52414e444f4d5f5343414c4152535f4453545f", | ||
"count": 10, | ||
"mockedScalars": [ | ||
"685e3caf71dcebe9c1c8ade572714cacfa8021ecdc0087f088ddf9d779ee6497", | ||
"3f03740ac2195b6e690f947a4868d18a0ffc740f0cd662af065de7c82ce47bca", | ||
"7243343f651b84dd385374df66239721cd72be386ace284582e50f3a7f7a41fd", | ||
"719391a40fb0d859142f3a407724d8d9f0bec2a29e2a13dd72373a08be8b8ebe", | ||
"12c52b9360297ba351a6af102f85811100f34f85f2cb1ae84d51c864673180fb", | ||
"03670bd1cbf4aa22ab64594f509edcc8b10078b94681de34d46f4add973c095b", | ||
"5c6f556cd9dadb28115b3d800f3252d88a5cd5f77fe9c48c2737a3731f87b389", | ||
"6f2a91c5faa4d1833fc20d61a9408000e34b9cb4117bf01c84e9dc87e1edb5af", | ||
"3e2f4c7553113858fef77769bc3db8a4fe75e0d04f29487e3eab89cc994e461b", | ||
"27a48d2128295df61613e065e8640b20a457a1687979363f8746366ff7c3c082" | ||
"04f8e2518993c4383957ad14eb13a023c4ad0c67d01ec86eeb902e732ed6df3f", | ||
"5d87c1ba64c320ad601d227a1b74188a41a100325cecf00223729863966392b1", | ||
"0444607600ac70482e9c983b4b063214080b9e808300aa4cc02a91b3a92858fe", | ||
"548cd11eae4318e88cda10b4cd31ae29d41c3a0b057196ee9cf3a69d471e4e94", | ||
"2264b06a08638b69b4627756a62f08e0dc4d8240c1b974c9c7db779a769892f4", | ||
"4d99352986a9f8978b93485d21525244b21b396cf61f1d71f7c48e3fbc970a42", | ||
"5ed8be91662386243a6771fbdd2c627de31a44220e8d6f745bad5d99821a4880", | ||
"62ff1734b939ddd87beeb37a7bbcafa0a274cbc1b07384198f0e88398272208d", | ||
"05c2a0af016df58e844db8944082dcaf434de1b1e2e7136ec8a99b939b716223", | ||
"485e2adab17b76f5334c95bf36c03ccf91cef77dcfcdc6b8a69e2090b3156663" | ||
] | ||
} |
4 changes: 2 additions & 2 deletions
4
tooling/fixtures/fixture_data/bls12-381-sha-256/proof/proof001.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 11 additions & 11 deletions
22
tooling/fixtures/fixture_data/bls12-381-sha-256/proof/proof002.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
tooling/fixtures/fixture_data/bls12-381-sha-256/proof/proof003.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
tooling/fixtures/fixture_data/bls12-381-sha-256/proof/proof004.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.