Skip to content

Commit

Permalink
fix check_sign_with_test_vectors, check_sign_with_test_vectors_with_b…
Browse files Browse the repository at this point in the history
…ig_identifiers
  • Loading branch information
StackOverflowExcept1on committed Oct 9, 2024
1 parent 8f23041 commit f3df4ed
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 47 deletions.
56 changes: 28 additions & 28 deletions frost-secp256k1-evm/tests/helpers/vectors-big-identifier.json
Original file line number Diff line number Diff line change
Expand Up @@ -1054,56 +1054,56 @@
"outputs": [
{
"identifier": 129,
"hiding_nonce_randomness": "8a8821b1b7d3bb29e7c2ed156a17fbdb9d4e036e3c0f31ade4d853c40531526d",
"binding_nonce_randomness": "b5964e34921c184757523ebfce17f8c8d9a4f8b1a9a6b3ce2c62e75a79e217e8",
"hiding_nonce": "8eeee80965c09c9e46ffbcc15d898c383c078c5d03321bc9d5be4ff9653d8ac4",
"binding_nonce": "82a3b16d3361e76c8bdfc6c14fc3ad42c38f41cf3f8688226725c9d2dceccf6a",
"hiding_nonce_commitment": "022725c75dd202fc7cb2c513233f22ad8293c39a1404db558920ae421ad72e3e9f",
"binding_nonce_commitment": "03e89f797796683a7cc673a13773abc7b385781c0469437bd869c9add4243028c0",
"binding_factor_input": "02f37c34b66ced1fb51c34a90bdae006901f10625cc06c4f64663b0eae87d87b4fff9b5210ffbb3c07a73a7c8935be4a8c62cf015f6cf7ade6efac09a6513540fc4591618d01f9ce7a67c6787d8a94bf5e6e19150be75f9230c3c4e4db0bd4a1c90000000000000000000000000000000000000000000000000000000000000081",
"binding_factor": "68e13faf3c7fb10a039b7dc40eeed6a7b43494c715092ea91f7d4a3aceaf290b"
"hiding_nonce_randomness": "b149cc2ac437a4edb04bb233e3c6a35d85b147f74ce97df87640405b9d6ad6e7",
"binding_nonce_randomness": "066fe73b165f40e5483a72912a3046f5709d59e455afc756307dc4b8e9d8085c",
"hiding_nonce": "2ab263b8b1496ea5ab4d1b628acbd92d00fccc47a7649d23df1d227f57e7a344",
"binding_nonce": "ff28fc63c6463f485bc169289a9774b17897a475778d41f3b533513165d9e7a8",
"hiding_nonce_commitment": "0296351f8c988306f10715924a94c569a9bc41ae93703ee537c8cdc577520192de",
"binding_nonce_commitment": "03c71322307a058af286f95fe258ad32070f8d1eae1bc49fd36e6af0c1dbfd0a19",
"binding_factor_input": "02f37c34b66ced1fb51c34a90bdae006901f10625cc06c4f64663b0eae87d87b4f30b1cb1526d74a1a11c1f82ad6445f388c77f097afc5d820c94df439354e6a19ea6bb48e997c8bda2472e97352db49f8b9cbc4cf58089322ef47f7eea67e02800000000000000000000000000000000000000000000000000000000000000081",
"binding_factor": "96803c88b7043dc27b9227779fa98f247ea6ec4e9503fba0c4ba4211549526f2"
},
{
"identifier": 256,
"hiding_nonce_randomness": "1227d0c4838dbda8f7871bb64cb49545655d65e1da44da38c9062d39e591f290",
"binding_nonce_randomness": "bbab58cdb56bcc90a9cde2778a79cfa786372100d60e6a17dd60349ccceb4c88",
"hiding_nonce": "a90463d1c2c10e0cb515efa4f448367b26f57ee3c558f87988abbc1b0767ee5a",
"binding_nonce": "a15fef4c65aa4c1cf2d54788fae0459a8bddba5d6c87ac6e92ff0b611aae7cb2",
"hiding_nonce_commitment": "025f629c95c7ae32b06c432756647d155214832a0c3a2eadaf0836a7db48a53482",
"binding_nonce_commitment": "0313a687d82930862532aa5ed50ec740036ddaa757fc8495932b91226ddc3830f7",
"binding_factor_input": "02f37c34b66ced1fb51c34a90bdae006901f10625cc06c4f64663b0eae87d87b4fff9b5210ffbb3c07a73a7c8935be4a8c62cf015f6cf7ade6efac09a6513540fc4591618d01f9ce7a67c6787d8a94bf5e6e19150be75f9230c3c4e4db0bd4a1c90000000000000000000000000000000000000000000000000000000000000100",
"binding_factor": "b1bc8dfed71f105eed9266eee7e4633c2019e7295f9806e608f48e1cb3375a3d"
"hiding_nonce_randomness": "90624e851d7832f385118965cd8d9acc69052c18b9d5c35c9dd61251ad279bf0",
"binding_nonce_randomness": "2efe299dd0af1ce84b726cdc70f432b32642d95e354b59954a1b623182db1255",
"hiding_nonce": "2483165e1ee7f9747f44c0da6d229da3ceb9b1cb4870526ca89ac3ec23237e2f",
"binding_nonce": "b1ef51f6f6e6d620e78e46c996ce89c8246da2da1db68412fbdc0f3b5ffe47e0",
"hiding_nonce_commitment": "022ae0f117d26519be00e8794e31a574238f0875c0576db8d9cc9eab870e1fe1fe",
"binding_nonce_commitment": "02fa80347b927d56d05d3f5b6119ecdee603f6ada77adcf68261854e59c98649bb",
"binding_factor_input": "02f37c34b66ced1fb51c34a90bdae006901f10625cc06c4f64663b0eae87d87b4f30b1cb1526d74a1a11c1f82ad6445f388c77f097afc5d820c94df439354e6a19ea6bb48e997c8bda2472e97352db49f8b9cbc4cf58089322ef47f7eea67e02800000000000000000000000000000000000000000000000000000000000000100",
"binding_factor": "fde865647d3e8a96e350c385e0cf72fe000d988f04d021f83f9f876c4c8a9b67"
},
{
"identifier": 257,
"hiding_nonce_randomness": "8e8a7c08ce9f812a140c5f1b65300e65c63314e2ea00a8a7c8992d8e9baa7151",
"binding_nonce_randomness": "5dba45da45f873fd04ddd5f359ee52c8657028429f5819a7d8605b1181bfb3b5",
"hiding_nonce": "8a1b69c60990699b748993ea0167f82724f42af89bbf5c30b6ee2be3a2e99226",
"binding_nonce": "d09486f384c1ad1c8a517c8a0a249a7a638d4c046dc21657829d1baf671107ba",
"hiding_nonce_commitment": "02078f2b933818f8d44176927f4538caf0bad7ac885e279089c2ce0f49c6521c50",
"binding_nonce_commitment": "0333d6a39834dc8693fb2ac61bcdf9938a1f20eb575072dd7a0d6e896a1e1c351e",
"binding_factor_input": "02f37c34b66ced1fb51c34a90bdae006901f10625cc06c4f64663b0eae87d87b4fff9b5210ffbb3c07a73a7c8935be4a8c62cf015f6cf7ade6efac09a6513540fc4591618d01f9ce7a67c6787d8a94bf5e6e19150be75f9230c3c4e4db0bd4a1c90000000000000000000000000000000000000000000000000000000000000101",
"binding_factor": "c03ca21f0fc7860918f5642c6851aa842bfdf3cf57294eb60f3aff91825f6087"
"hiding_nonce_randomness": "461041938f380796288d1bd71fbdeb479250fbad4936c7c1c489f7602fcdef69",
"binding_nonce_randomness": "120a84f8b0e2abb9249dca8509036ef4eca401b1c5e6dda53475c9a06b5659a6",
"hiding_nonce": "09c656b7bfb780a3ef3b409f6bc5caf785efb5a2d7a74db2fc6af32fbafb4cd1",
"binding_nonce": "f90d12dc994cb98705973681579e1d737bbede119927714cf98d1e977982e121",
"hiding_nonce_commitment": "0249b3c608aae5766f775edb46f3ca1befee9d2a60bd0d111b803281a503337972",
"binding_nonce_commitment": "031e7a508927d8bba6ae8c91b2358efba4a3a0f82d4aa111e0459005f94f5d4cc8",
"binding_factor_input": "02f37c34b66ced1fb51c34a90bdae006901f10625cc06c4f64663b0eae87d87b4f30b1cb1526d74a1a11c1f82ad6445f388c77f097afc5d820c94df439354e6a19ea6bb48e997c8bda2472e97352db49f8b9cbc4cf58089322ef47f7eea67e02800000000000000000000000000000000000000000000000000000000000000101",
"binding_factor": "8c013bde48eaa7d606be8060c9ab9e7621c67da8b823bc28d0281561b6361950"
}
]
},
"round_two_outputs": {
"outputs": [
{
"identifier": 129,
"sig_share": "3c9f4bfd6e88db4e2d99831569a290d032453904d35b045c833c75feae6bad88"
"sig_share": "f85bc09334f0a1939cce5e2485126c102720aab30e3faf95ad75b88908750d46"
},
{
"identifier": 256,
"sig_share": "d1928c93c533f426698940e9734ddf507c50791710be33ad66c97c4091bc7617"
"sig_share": "4779c17088c97523c20058e3b77c2bec53f2a73aa92e78e57959e4e78474ae75"
},
{
"identifier": 257,
"sig_share": "f82e4ccf9c56d88447bd7c28ef9c9e68721d8eaea79acd77912feb9b7e166568"
"sig_share": "4582b96d0d6ae60e63ca4acc665beaf7a1af42ee3aae62341755183c348fa2c2"
}
]
},
"final_output": {
"sig": "035018f08dbd0a6d610a311d6f6817e85680f0e6838df4849791e716c8838d0fd206602560d013a7f8dee04027cc8d0e8bab5586fd2d22c509fb9120c11dd20685"
"sig": "038e301579ecce5365a6c9975872341e75b8d701b8310fa6a000ae38079cfeeeb485583b70cb24fcc5c29901d4a2ea82f56213b7f542d3ea737e52571ff1431d3c"
}
}
38 changes: 19 additions & 19 deletions frost-secp256k1-evm/tests/helpers/vectors.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,41 +37,41 @@
"outputs": [
{
"identifier": 1,
"hiding_nonce_randomness": "bda8e748e599187762cff956f03dc6ea13fc8e04491a0427b7e6e78600f41c52",
"binding_nonce_randomness": "2ca682429bf05df435b9927b8edb1d748278f3e42fa11ef358e49bbf4a1b780d",
"hiding_nonce": "09764379667f9a9fa61928947bd925a7f162b21886b750d3b11c226d16b32f58",
"binding_nonce": "b2d3f8cb9da70984354c3fc3511b1f6ed21b7205941cb5553565d2ecade8c694",
"hiding_nonce_commitment": "0305e62a1d3f57a0b17ade569a3a4043e2a1fc3bd0b102614a8d8cc68e3322ad89",
"binding_nonce_commitment": "03b634c2aed7f85b8eec22e97e5f916ab43a3518821480e15da2af7cffcb060a30",
"binding_factor_input": "02f37c34b66ced1fb51c34a90bdae006901f10625cc06c4f64663b0eae87d87b4fff9b5210ffbb3c07a73a7c8935be4a8c62cf015f6cf7ade6efac09a6513540fcfac8df6fa81b3f4d9ced4be2474894308232dc0be75dbf81f5a103579a8236310000000000000000000000000000000000000000000000000000000000000001",
"binding_factor": "9bee5aef4012de4b94c9fc1a9a9572181079e293bf1d7545a5af0ef86f824a91"
"hiding_nonce_randomness": "b6a9c7923c8e2d5edcbbfcba7c6047512525ccbb18e34d629e9f28f0d85669f1",
"binding_nonce_randomness": "bf014fec1059be1e91581b37ac6a2df0dc9b618deb30d1565e20110433393175",
"hiding_nonce": "e3ddee514e0770fd10024d0ab7940fb985912d0f8446d00cb526ed0637acdabe",
"binding_nonce": "b83ae22cb9bf452a9142ec5863a0c5aa3da3a2e1a64948f5f788d98b0847176c",
"hiding_nonce_commitment": "0316c3691f177518c1b25494d716213f0e8d6223d53af585090672ae21919074ce",
"binding_nonce_commitment": "03c96b2fb6bb1934b219fe3c12747aeae29172983d519c44c8a74edf4ce3efc2dd",
"binding_factor_input": "02f37c34b66ced1fb51c34a90bdae006901f10625cc06c4f64663b0eae87d87b4f30b1cb1526d74a1a11c1f82ad6445f388c77f097afc5d820c94df439354e6a195dcc612c83bf31e22a5db2885b5d5f5bd13da744cdb3eb06fbb27240b992fad40000000000000000000000000000000000000000000000000000000000000001",
"binding_factor": "6efb8504d12f6942251842093b192f8a96df03cbb5c975b2a66d5c923f580af0"
},
{
"identifier": 3,
"hiding_nonce_randomness": "70818dd5170672c4a4285fd593d4f222417f941f3118e1244955e7a1098a35d8",
"binding_nonce_randomness": "74ca2da071ed4a2a6cad5087d6758b48a558ab5861c61117fee05757e4b1309e",
"hiding_nonce": "0d92e255e5b42ebc2863f8198d946fc10f388c4983073c18cbb77b88e3bf2e34",
"binding_nonce": "1c7243ce00a499b1e7ce3403e7b731d0c820cf108feb8c5ee7c29b4ef43be5e0",
"hiding_nonce_commitment": "036f878da0dc19ba7da9f2d9e795e2674e62ff06c990fc4464cc1ed55a2acce46b",
"binding_nonce_commitment": "025350e2a9e32e7b1fe0161e990623600b2d301b3307641469129cff7936c4d2ce",
"binding_factor_input": "02f37c34b66ced1fb51c34a90bdae006901f10625cc06c4f64663b0eae87d87b4fff9b5210ffbb3c07a73a7c8935be4a8c62cf015f6cf7ade6efac09a6513540fcfac8df6fa81b3f4d9ced4be2474894308232dc0be75dbf81f5a103579a8236310000000000000000000000000000000000000000000000000000000000000003",
"binding_factor": "cfe0db2197c94cc355b6ab05610f27f4a874898009c8bf007f2a4e2ce2c8306d"
"hiding_nonce_randomness": "dbcda9d19de5b77f248ce490e52b5dd0064c9adb7f8c40fac886d50d1e8bbfe2",
"binding_nonce_randomness": "c504c31a52dd20444a62918377c5ea39a5ae0b53c48a1237aff1f1951a4e5c17",
"hiding_nonce": "bb51bc376e1385841ec33145d5c73caebf4a1a3f2532cd892b55f7d74f3c64c2",
"binding_nonce": "b60fdaa185f2481f77239c9c683fa700d1ff9ae5a00799db5b6e44b32e846fd2",
"hiding_nonce_commitment": "031c7edfa406a4db86ca0cda4369807dd1a79ffb57bd996b87bc173715c396a90f",
"binding_nonce_commitment": "024c54b41c369407f587a2fc41f38119dbf3ff4d31c744ac8e9365044a3f62b3d8",
"binding_factor_input": "02f37c34b66ced1fb51c34a90bdae006901f10625cc06c4f64663b0eae87d87b4f30b1cb1526d74a1a11c1f82ad6445f388c77f097afc5d820c94df439354e6a195dcc612c83bf31e22a5db2885b5d5f5bd13da744cdb3eb06fbb27240b992fad40000000000000000000000000000000000000000000000000000000000000003",
"binding_factor": "3bae8ca01f2768189e07660beea31e7f5b1ff1972b01459d43647ce83d4069a3"
}
]
},
"round_two_outputs": {
"outputs": [
{
"identifier": 1,
"sig_share": "ca54b18d7449377cfa680760a5770b9e64e201f7ea36b068effeca5fce2155e5"
"sig_share": "2b2d6861faf0a01121028c7ab2f5054ca5be20ac53abae8a6d10559e314e4a08"
},
{
"identifier": 3,
"sig_share": "da13d054e83052568706a6d161d80f112a6bc3f76aa903c022585ae7e091e65e"
"sig_share": "feff835b488e1922ec0306a73ae85e7c5f075d48df70b49960d030af916f72fa"
}
]
},
"final_output": {
"sig": "024c1ad4e031872661fa6ebd05dfc7fb30db08b38d79f0edbc82051ae931381bc6a46881e25c7989d3816eae32074f1ab0d49ee908a59713ed5284c6bade7cfb02"
"sig": "02c075dfbaf6d314ce59a539b3fddf36b067f3dd0dcff9c8ff8c6fba7824275af92a2cebbd437eb9340d059321eddd63ca4a16a10e83d3c2e80e0e27c0f2877bc1"
}
}

0 comments on commit f3df4ed

Please sign in to comment.