Add CRS files

This commit is contained in:
dapplion 2023-09-12 10:23:31 +02:00
parent a74b4fca10
commit 4eca8e4292
5 changed files with 177 additions and 12 deletions

View File

@ -0,0 +1,19 @@
{
"vec_G": [
"0x8ee469123c9307ceabb9685eccf26f8faffc994d78fca2942e308cc189a23830bb7f1f860cd456459ca72be61c471a85",
"0x90b5d8ccdca68a679b416a83eb7e978f8e403af17579d808037404d2ca8fdd4a9715f4d2431ad1b74d4397de71800a93",
"0x37028ff0395d0e3708675b33702cacc49bf24d8774e0c9a416ebe2321a8e8e2670c6317cb408f1f3089db2a008d5be15",
"0x794dac4044697aff73da260dcee1383effd1426d649068994320a74399b74ae5e693cbdbc8f186b7578d879ea29fca8f"
],
"vec_H": [
"0xb85949bf0091918e9dd342fd6f617e6d891012a2da45e4d03c108ae60d49da2070c25b68e920d400df3964449e20770f",
"0x3b23fd5a56e66a5d5bb3f4a5ad6c4e3fb49fc24943993b9b7734c48781f355524bd6cacbb4b6c44a07414a9c99259c83",
"0x2f9f46789a036843f56ecad3116001e512bde5cf6d27a8729794175bb3d579af703d3bcf39f05f34cf016de391927590",
"0xf598b97d20780cfe3c1a17f46a1064c8c23174a2b5624beb4b21ed3eb1280c1e5039ba4d9dbb890fdde9cea3f396be05"
],
"H": "0x7655ab1ab792fe758261115bcfd41109636b12a84e8dfef1919d4a1228a7e63bbe06fd880d576711f25570643ee36591",
"G_t": "0x566699d60102189120460d1985649e34e569cd183588daf216c68f73449ea35f2f4d3e904e2d3aae15ab6d46b0695a8e",
"G_u": "0x52750d17c93a14e3857c9ed78e64e2f466c1dcea6e0fcf60a8d508cbce202863b50e9727dca7cd9000769b95f5cb7b82",
"G_sum": "0x96b2abced5808bd9eb24933a812b6fd9ee15217b4d91a679420b452e8e3560980c4132ccac53f1e7526c51ed2b2dc193",
"H_sum": "0x568d602ad24106cfc7721970748bdd6d25d2b3e696596baf229e1e02ff8a85297938cd0b798021ebf9a0784fe0676719"
}

View File

@ -0,0 +1,139 @@
{
"vec_G": [
"0x8ee469123c9307ceabb9685eccf26f8faffc994d78fca2942e308cc189a23830bb7f1f860cd456459ca72be61c471a85",
"0x90b5d8ccdca68a679b416a83eb7e978f8e403af17579d808037404d2ca8fdd4a9715f4d2431ad1b74d4397de71800a93",
"0x37028ff0395d0e3708675b33702cacc49bf24d8774e0c9a416ebe2321a8e8e2670c6317cb408f1f3089db2a008d5be15",
"0x794dac4044697aff73da260dcee1383effd1426d649068994320a74399b74ae5e693cbdbc8f186b7578d879ea29fca8f",
"0xb85949bf0091918e9dd342fd6f617e6d891012a2da45e4d03c108ae60d49da2070c25b68e920d400df3964449e20770f",
"0x3b23fd5a56e66a5d5bb3f4a5ad6c4e3fb49fc24943993b9b7734c48781f355524bd6cacbb4b6c44a07414a9c99259c83",
"0x2f9f46789a036843f56ecad3116001e512bde5cf6d27a8729794175bb3d579af703d3bcf39f05f34cf016de391927590",
"0xf598b97d20780cfe3c1a17f46a1064c8c23174a2b5624beb4b21ed3eb1280c1e5039ba4d9dbb890fdde9cea3f396be05",
"0x7655ab1ab792fe758261115bcfd41109636b12a84e8dfef1919d4a1228a7e63bbe06fd880d576711f25570643ee36591",
"0x566699d60102189120460d1985649e34e569cd183588daf216c68f73449ea35f2f4d3e904e2d3aae15ab6d46b0695a8e",
"0x52750d17c93a14e3857c9ed78e64e2f466c1dcea6e0fcf60a8d508cbce202863b50e9727dca7cd9000769b95f5cb7b82",
"0x6cdb5ede427b27f9eed6ab759c58b66b01b9f34d70ff5635d2ab44ab7e719da8a6b3b503aeae3b7a5125d77991be438c",
"0x5dfbf1be4881a763572b763781eb8c3cd9288a58881e55c8e6e5be734b046ba6ea80231a622dc9882e882d8aed240d8b",
"0xb37ec3ff1a4c9e76da7113d524218d0d593fd1a3ffd49de5f02b4c393fd359fbe97cf6697067e07ae1cf7bd2a54ee587",
"0xae9986f77d03199701c4e7f29b6654d4f2fee5787bef57f33a2121e9370b23f7f56bb0736e42aff1da52f724fd812f8f",
"0x6804054ea5b49f85b346ca3850da2f20da08bd01488cd20157ccdc794f0237f3c4e9f78fedbc45bf992e977dc2079c15",
"0x3ecb0746121a80043cf03a386b92b1723f78f24772b246b89c724a820cfd4607a727c46afac1a4e5ffe91e5a907bcb15",
"0x1c38528abea563893194e1c95648395adec0b7b174f9398d74eee1bb68af6fdcdf7c6841570acafa84c693828289d083",
"0x08672346aadb6e781490ed0938fd5d28b04fc9f410e0d823e8b76bc6e9ccd38e709b795c3a58a89893ecfac13146e797",
"0xd6521bf8a5614cf0c91d59d296304a64f4775eff0305ed50b1d7555e7c1e2c747a35817176ec95bcd382d6f90207b612",
"0x8c871a03d5b2b5d23b770d276325750b1f2e66f0e8465a2cf07bd61fba392774890dce043ad578b87a93e75377475e8d",
"0xe340c7a5b9df7c80943541ed751e7da686b9375eacb2cd3e703e183a15ad4e363b7fe5bf8407435b91c5344cc1a6a505",
"0x53330a24e00e4fe20f9cd49571bb7d3474ded34a77b862ef1a1c41cc6fefba8e2a452d31a6f7489f89b1227c2e8c0212",
"0x3494265fee22016848a059c311b6a1643acf22bf084c423964903b82cb6639eff06b11dc343b1ac02e25c12f52749d88",
"0xba5b9c6182523625cbb604fe2e7bea085ba6c8039bd5e0637c61e323ba597d4efacffcff8b3876fdda93ee425da36204",
"0x57d6b94e07e9c2b9d14809a66c2cde837b82a07ebf26efb3ef398cd8b63411d4a5d8b89d94a093170479e9d76bdd4e0d",
"0xc4fcf6ecaec28a761dba4db75cd6d32dccbd2b5a4005c91b71d144a1e77757ae859baae69b5571483db38b14ef36b499",
"0x0c4c481312b323f1e6d3d35ff72e734bab9b3d97041ed7bf88b6ff23cc9fb078ec37ac1157e212c34ff8537076bf0110",
"0xf31cc8906a4ed96b289ae935dd4d34157786530bdce7aec13d297a7c0299316e3e898c506256b36bb0ad3a9ab4198b03",
"0x7ae007f5ea1acf937fa2f31286407015f24981a1207ef5d34cda4874e8a35091edc11a87f81bf7d25f7dfc4d5ce49f16",
"0x1ccbf6d6985e77ace50f7d62854cd779f6d01c36518106314706b4609f8b7f95715c65ee7e7ce0f77e45761432732a11",
"0x541dc94745617185cf286aabedce85c475bb0f8345aaa0dcde4ba59bcb3d939d401e8e860057e973bb2aa533cd5b5016",
"0xa77c991f92b95cc898ec27ee8829685b79681384cc844da4a88369b6c6c7dd535d01f747c5cb2ef93fe18edcbc18aa08",
"0x101f6dab48c0cefbb7f0d79cf8fa1330dd9399d0b5d2be847daa77a9dde640452e3f5433235b1b66ebb7d22879ddfd00",
"0xd840fe7086fd3e73b2862f0b18505d434d56694351ca5379a5e8e7f28adaed720ba6a14ccddc3f063e5ec60512360793",
"0x5d6fc0a4b3d93bdae7d7dfc0a373d66422718b9a8b1da434dabe418fa0a287c4200b698a8620fefc08df92f9d24d1402",
"0xabbec1e32b4175df5759e4f7e7a9af17266fc4e89a8b37c769400a6d09e66a17ffdf5fe689350eaf8d5318cbcd8ef48e",
"0xbc18723d58fcfa1d058547cafb72bdf7d87fbe230283bb117ef62abd5b0912f0edd412955b040dcf0459121fb7a1af90",
"0x57a9939190b7300511855675fd4037ff11e1626d8fdb6d53d9af692ee9f0efdb5a2e8ab2bded10e5d336245132665504",
"0x28e1fdaeacd8503873d2499cfd0c5c425f89528058d010f73b3d2206d1d075e31e82d589417a818ae025dda630a41787",
"0x4d02df7e5d480c00f17191e0e741ab3edc920aa05197fee0984c40a76579d11bf91820f343947de2facf375a1596fe06",
"0xa27690ebe6cbdeba1f7bf2e667a1a281a02a2e2de205d29839a53354d74db7017188b2314ec354c1f81aff8a6ba2278c",
"0xfc9c57389f50ea47e0522f5cefe67f586c960c960456993954663e2691dc9747b1eb62a45893d03cb8c3ae7cf4796c8e",
"0x81e589799b7be9acb30351f8002edff753db4952b4a2efa7a7affb62f7855cd3651af756b4923f79df69471943713309",
"0xe9c3f26a60347c293de2cb14d20e6d27fdaa87dec18fc1340c93ede3f3bae163d0084b7545bbd2fe79e81a295331aa0f",
"0x70e4c91a7c409dc655463a42fcffc31698856e2f0ace055e4e3fdb5580114cae14f8a736cf78f791ebd7765c1dc10713",
"0xfdfd1f478dc1cf4b5f4a1cef1dbc04fed1011345e8e5d0a99916a2d5c6e4295a8f43d487ed256f4b57d4244ec1711c03",
"0xba57276f7e379eb55be84116984fa24d336c6ae0bf0457e9d43e5d290c63abff3debd1612bc74fe045016584d2fdd88f",
"0x08be089cd6b1342b075612efe9ea9b13a991d4acb800731bd221fc10353df2cb21235fca88ab3f7369669e7a5cf83189",
"0x74b0d186b07fbb83d98e20cdc231ad43207600539069a0634ab588d51bed2fd93b705379ba92fbfbfaffd8d4ee28618a",
"0xe29420ff11d7420754d5753cafa46ae6955f0d42225e88d6811ec94f3ee893669999beb6f9ef43c9cd0e44c044165502",
"0xfec40c58fef42f3c484bf0d76db9f249dadbf7bfcd024d70f541ae482b934955bd1d0800abb03ef7027d9af19fd26d07",
"0xb2185bce513bfbfdf166a5991b51631541a772a28335075c426547bddb6c69a6dc77c39831f3754319b617bb546a2f81",
"0x5e8e96677a8681406f54539eac304f21592d550fd8a6211e60174febd5917c74ad3ee98791c8f5229dc936a978841106",
"0x5c42d7f5e60fae5f6e498d02d4602141732638d144223004c1befa8abdd5b1551b704323767196b447954a52d593cc90",
"0xceb35c1387c27000077dc7859afe43b497de8cd8bebef59ed9a2de6e054d15f7eb0ffcdb9a63a62d0b23476215ccef14",
"0x0d70c28969f9cd87f379dc0b9a1fd4153cacb85af0c24840ad3ca4e87218aa753761466d495ad02c053bfe03e00a0896",
"0xb6841cdbe1a025bfa46ae0a518f435c9232c3bb360dbf2799f47ad3f80f5bc85f8dfff75fa35c5a3f78e3ba0f1eba589",
"0x324bd79903616f1a8c57dd810e877410dd5899acf5aa15f619a40e53a6a8d04f245afd833dc112dea691129cc4b8d819",
"0x9cc07abb3e02da197b5780788c9f8ce33038f87829ab9b0390e18300c202ee0b51f04e662e78dc24e5878dd4646e9613",
"0xd8a32891da9da3f3368de4acdd6208df6c0f7c80a6f92ed0ade1694a8275d8aeadd497df53d5cd6df8b2dc3682663c0d",
"0x8bd69e048b1b1a5213073d62a2f8022089570bbd0fb6d731ac05dd8cdc057d2a25e9ab8ea9b05ffdcb15784cfa78e283",
"0x8fb1ab75c3829fa3e75d22137516c740566b119dfa3c8915897c3c57e15fbd6a8040988aa2e4006cc4b1f132b041fa88",
"0xe152eb1b208c66bad4ac7dd8382902fcb847c62e137c41cc2d42d286e124c0ad7f9a0790760a07cef5446dd95464680f",
"0xde9c2050d6ffd07d70253e23660abd80a2306077372bca94afdacfe551a88324fbac4735154b43468fc95c68a747ad16",
"0x1eca92a6b1149fea051f39f96fe7d18ade52a3259b83835ad7306cc4d1088fe8edc4437789e75241ea53ac9c57757283",
"0x8d5580409ecdba8850af259083b669063cf16c3d7605f1b51e1ada9ae4f6d2d51132b9511c4338a6520dda6358855c15",
"0x39889aac610026a330ca3de5460ff2080fc781f1b0de3d0b0be6cd1ea399c3d85687c89df520d4bb013d623146a03615",
"0xebdd136c9faa644d06be1c96ac2a723139acc3931475072cebcf1e81cae36bb8170a0afb93e070d75b5191a7714d6902",
"0xbf1bd90e9e38422ea13389cb1e7f00e8d4034ff19b9ff9d0782d0cf4834b11e7bb5efbf4231d90eb7bc4b636478ed50c",
"0x08f23f782a0dfcf20c57f8b0ed33cf42483d8370ab0e280f0a94140da70664c541cb03886318724ca4205ec9861ac60d",
"0x7c00f7475becbe8cb78f55d2af55022cc6d25bd15bd38dee3293e029b043d7cb3c25ea77fe432011879a1066099ca987",
"0x302387503d2d000f92b5fde232ad7584cce7d6178071bac7e2504fb1c7bdc099f627d116f99326d0197afa1ffdd59a8b",
"0x0d3f128bdafd0880a7d05e08c0247009c64630079e9775730799aa2e7a3ea5857e1c930650593323fa21862e9aeee290",
"0x527ec38b32c47ffc6ba809a0204678554f1c1c777160ccc19e9a77118a5946274a0e2fcd443171df569c82d16397b093",
"0xf47cf54f07603df44e592cc7d2615ce20f0e27651fe1c8e17fa45fb8e1873eca6ec3c04156400360c39aef465bf4d681",
"0xdf5d002299b5deebaf8df48ee7a86105ab8e21fb6d29595d10076439a82edecc9293708a44cf70b06f4dba13ad8f4716",
"0xe8137e2904e024fd1c88afb1e7d5002c27b61c5f0e243f01cd43c48e0bd3fcc39c44b9f618e5f0ded4fd25989abdac19",
"0x3b7b141ed81e2d9b5bd58679564b3a79dd446b4d77c4167a15c898a1f5f6de6a7d7481e87ab1ec760ff25aaf0a674a02",
"0xf7bcfafe53d9d53dc1cd1eb705d4295f280899083f9aa546c6890c92b9ade39b80e26111388ea98af6cdce8bfea73406",
"0xa3ea828bc72d21c268b8f9107cc6d622efc6024f7b3a5e8281bd6ec6b050e0a0224d84f9b4670417b4fe05d94ec63f94",
"0x1ba5bd27212dc8a969ee63dbf0947ad3ee2bc3790af00e4df34f941be38303392b00ab15bbbce3846d7a7049e3125787",
"0xa0ee121c279bf70aae355ba5b535936ddd579eaf209017197e273e974c2484d13800732f4521dd966c6ef4a95484de0c",
"0xa060652377916fd2eeb59368e3b71ad271c71bcd43f135322fb1d4d27d5f5f1919ef19c89ce5c4a2f2ee2c983c869515",
"0x1308cc9d32c057eae66ca4f818f4eeb8c4359945d7d649d16ba771aa130e3be6777489497e13bb66ca38b65fc1998b92",
"0x73ae7183e21effc07702611b85d987bd5f35e1e8edba232ad9832e37c6cd454780095001ab1e2be4ea68700a0cc79f8a",
"0x08e24277098287c653b5e76f34a8544ed1ffc3fa5025b5557d9e7642a3909ee261e0eb9fd41b9153674eb10355ee6082",
"0x8d560c752b56953f3ed0b62ef4b72eb8b3daa53826578bd2187b0ae9cfd406f41b12d4c943bc1249601e95468efba500",
"0xe53c3adf527fae8d9fed8e290ebf0a4441b50e9e30c5910cf7b6ad58af802767260d980cf4962c03e06bcce4fd5c5502",
"0x745a7f7b2a70a6d1da53b4e0c1b4e2a300596a8fb7f2ddc50c44c5715594e09aec166c8eaf3f960253d9c851a1a8b812",
"0x76feaa7631ba317208ff43df288971ff301a95f33c1c2fdd6a3b34b9d27cb2655c5b2c25c3eabdcc5052f682e4292c0a",
"0x22aa58ecef4a44dbb04eaa6af4f0723cc4f1c3ba2474847e4ac195d0c40ee1f9618ea6b4c008e854557b5c3151830c0f",
"0x32c72e726db1c867dfb64238855da762d1e1e97518012e1311e1e88282021b0be426bb5c1f4ceb49c349b5795a31ef09",
"0xa8cc66370c121f3150b60bafa1a6a0506a7d9146ad18d9b1c1ce75bc51bda677de862a7ec046a7dda017c3c6c44c7d8c",
"0x62300a632ebd3a3f789a3f226f22d6cc2412d91d0704a7edf310987c721ce2bae123094d53e4c62d09828befde3f8302",
"0x5aa31f3b3ade663fff693e155be0bebeae0add8d4143c8b8acfa7cd09d9a65bc944acf9194b56996168e6e4602a29208",
"0x5659450c757b4c0daea521cc010a33b8103414d3b39c02e5b9476a76cb3ac21a8ac77684990707a4909b0c4716594296",
"0x6a6fdbd78ebd2c4f08b054d740dcb20f4c5fca8d8dc9acd69ab00e4b328f590648625004b904047cb028218448669703",
"0xf8326f73a36846e7de7fd07bdd8f5810ecf9f32b7981f9504dec73c5e558d8edf5ec1873d00ea2295b6cc77b70e4f483",
"0x745ca02aa7d964cbb1db8712c96c82cc97a94240e7a508dbf6fff1b67f83f62c69a4e0c277365f3050089e415c81f480",
"0x5c0f2ec3a9ca71882e5c98491097b989f93f933b51413ed0260198043241f2c88c6b1ecf75b0950776c76b1db2ede487",
"0x152ea5193e5eda15daf9cbd2221849df6d8fe38c418db695b2e65b4e9adc82d9e9fd327ed391102b14702cbb2414a20f",
"0xce5d3f3d8eb6940ba3c5f79ba69cc29bb79207716ffb2dea626085d5b19d58f1eeb4b58da2c0ec4b6c979b46e6b71893",
"0xd55c8abb978ccf75b301eee77ac6a119d02577f879d03fa1d71a7c03f188c4d01bf9b1bb41ea5be2e5a07f4747380f11",
"0x070c08666d0585a1e2c8dc0f4e5c296d8fb62393afeb7eaa4901c53aa0018da68344a1dc45bfc9ff15abb54725b7058f",
"0xa0a78a4014040d319a79fdca399222ce82cbcd68d831c84cb8692a9224279c864df9e5583f769dcf81964ec3c6b27d0d",
"0x992cc2d25ec8c2c60b3bd1cf45440af1afb93d9efa0ed67ca9c2267894f1c19479d71b6f2cb69b5f973e0f641190e412",
"0x01462f0e489f3b29233d1e76c341cde54df227aa250c8cfdd41470fd1e3755ad8b193ab461e032d73faa196aad3fdd93",
"0x8ab6da9f8be3b0969daec963d3b916e5b7d7aa7c0c3474fe10ef7d91ce15ccfeff6fa4776de633cddd96cf3950511d15",
"0xfb99907abf58d6115e33b18e7d758830dae1aa347ac014c97e96bb652399cae34fe69a0c1d372d594fcb80c0cb49e210",
"0x8d769487a3ee3625bfb5704601a136a309ac607833056363909f558fd3d7b2bc69faec2b6285a34c187662551390bf0c",
"0xec7e1ad7d9e4fd198612dfcff6cbfe93683c584227a599830fbe3a390b6e4dc8542f5e55a5cf136bd939a7aaecb72883",
"0x5eb885f73f9966965a30ff8361aef6b5b6e4885286b6907fff506ebb2a1e44ad5f911f0193aedd0c6630e0cae0fcfc89",
"0xb6e1cc9144318b580ed78808859f31763c5e00b3fb0bd80c7d8af8ebfd0d51ec812ccfd0cad59fa4346f9949131a6209",
"0xfc257e2c17be265cd5ad6ea043f5297c5ff97dd4eef2b7ccdfbc119294ff0bb2721bd04cc8d6fde1cedab2b63ea30516",
"0x37026863e574b9be5ec01f407d0ed69e7fac8626ea68e6e152c1a20b828648e9370128b682326a5c34bb9d15a29f0507",
"0x1634597b533991903af3e9853b48553949a4e41d830fe43a739eacb36bb2da19a6e3be1a53af95ea4b7499ef49e2590d",
"0xc4456b70e74e1d1b5f638753e1fe675491e80811ec9944fa7eed5b3dd54fd9ee6bd853b13036f31048b4448ae0bef68b",
"0xb23499c8e32b1a7b672a9a9a2d1150d87360163bd282a0f7f98fe288a76b5a2024a88a795c83c5404a12a18062509689",
"0xa093dcf1314783fa9bcc31f9d75209ef2173dd6323852e05c5925b742a64afcc983900b3166687b9368d76a4f1862296",
"0x4cb328ac19a7d4ead35c62f73d92e9595e33abae52e843e1d22baaecd1e05365ea676cd44b2700a9d7511339dfd77a18",
"0x7d6120ba9a4f0cdada2ee51936cdd05da8c5783f8444dc77eb2f00053404ad7ac4f8b4b519a02b3d97fe5b436f121492",
"0xc7092a645465c0050560b9a70e214e6983c3fceed917b12c5e67f5e7dbf81ea3a2d2976856786b4ea49e1d52b649bf06",
"0xc295d862e730e1ea3e6ef4be2b9c37f62318acb5deea655aee9ffc511a0de4e94854c3b351f483de25198ae2d630d611"
],
"vec_H": [
"0x9e04d86bbf508a3fc2c91d569d5fa100f0d35193f3ec9948a6dddd87e92443b83ac32cfd04702c31b5856113bc649d10",
"0x33e529e9bf845a8ad84cc8feb643de8ed97c9d5fe655695bed08e4c9385f24054a6abfec66bf21763bd60e7dddcbc718",
"0x6993e2df173f8214270bd54a182dbe137daf04c196458e99001d2892166cb55f161ede7ca4ab67797b6af583967d3f0c",
"0x31ca51b74862bbc386401a1cdc1f4251d04f656d6c0ef5c372c3fed4e7b40eaa25981faf8ed46cc0e4e4d5ab6ad4fd8c"
],
"H": "0xd247bc06fc33276a3c70a80dd5c2496aec1a2617810f907ea10c7104474951120d915212013425174a972dacf0da3d80",
"G_t": "0x63f68f297825f3167bf41e8f9a4dcd975c6541e83c9c2cce2047221472b9036528bde13dd009748b5ad5b39c936f9416",
"G_u": "0x5aa38b9d8ff3d8759d247ae3675ec33c24f63e5ec790bd8350dcfdbf1f236496d75d4bc77d43daff5859103c5e0c738e",
"G_sum": "0x2f6b68744053a8248376b476bd2cc75f7ad4912a06049f5eba6f378d579423d04ca063d015b0502668dc2fe00b33a309",
"H_sum": "0x2e2d40a66c3b3d7fb52bbb1e16a167fc3f5bd97f699cb727a589ed3781cdb7f3dcec5f00a31bb40979d3c96d4b643a8a"
}

View File

@ -11,7 +11,7 @@ class WhiskSpecBuilder(BaseSpecBuilder):
return f'''
from eth2spec.capella import {preset_name} as capella
import curdleproofs
from py_arkworks_bls12381 import G1Point
import json
'''
@classmethod

View File

@ -124,12 +124,28 @@ def _load_kzg_trusted_setups(preset_name):
return trusted_setup_G1, trusted_setup_G2, trusted_setup_G1_lagrange, roots_of_unity
def _load_curdleproofs_crs(preset_name):
"""
NOTE: File generated from https://github.com/asn-d6/curdleproofs/blob/8e8bf6d4191fb6a844002f75666fb7009716319b/tests/crs.rs#L53-L67
"""
file_path = str(Path(__file__).parent) + '/presets/' + preset_name + '/trusted_setups/curdleproofs_crs.json'
with open(file_path, 'r') as f:
json_data = json.load(f)
return json_data
ALL_KZG_SETUPS = {
'minimal': _load_kzg_trusted_setups('minimal'),
'mainnet': _load_kzg_trusted_setups('mainnet')
}
ALL_CURDLEPROOFS_CRS = {
'minimal': _load_curdleproofs_crs('minimal'),
'mainnet': _load_curdleproofs_crs('mainnet'),
}
def _get_eth2_spec_comment(child: LinkRefDef) -> Optional[str]:
_, _, title = child._parse_info
@ -258,17 +274,9 @@ def get_spec(file_name: Path, preset: Dict[str, str], config: Dict[str, str], pr
_update_constant_vars_with_kzg_setups(constant_vars, preset_name)
if any('CURDLEPROOFS_CRS' in name for name in constant_vars):
# TODO: Use actual CRS derived from a fixed string like 'nankokita_no_kakurenbo'
crs_len = int(preset_vars['WHISK_VALIDATORS_PER_SHUFFLE'].value) + int(preset_vars['CURDLEPROOFS_N_BLINDERS'].value) + 3
constant_vars['CURDLEPROOFS_CRS_G1'] = VariableDefinition(constant_vars['CURDLEPROOFS_CRS_G1'].value, str(ALL_KZG_SETUPS['mainnet'][0][0:crs_len]), "noqa: E501", None)
constant_vars['CURDLEPROOFS_CRS'] = VariableDefinition(
None,
"curdleproofs.CurdleproofsCrs.from_random_points(WHISK_VALIDATORS_PER_SHUFFLE, CURDLEPROOFS_N_BLINDERS, [G1Point.from_compressed_bytes_unchecked(p) for p in CURDLEPROOFS_CRS_G1])",
"noqa: E501", None
)
constant_vars['BLS_G1_GENERATOR'] = VariableDefinition(
constant_vars['BLS_G1_GENERATOR'].value,
"'0x97f1d3a73197d7942695638c4fa9ac0fc3688c4f9774b905a14e3a3f171bac586c55e83ff97a1aeffb3af00adb22c6bb'",
'curdleproofs.CurdleproofsCrs.from_json(json.dumps(' + str(ALL_CURDLEPROOFS_CRS[str(preset_name)]).replace('0x', '') + '))',
"noqa: E501", None
)

View File

@ -88,9 +88,8 @@ def bytes_to_bls_field(b: Bytes32) -> BLSFieldElement:
| Name | Value |
| --------------------- | ------------------------------------------------------------------------------- |
| `BLS_G1_GENERATOR` | `Bytes48` |
| `BLS_G1_GENERATOR` | `BLSG1Point('0x97f1d3a73197d7942695638c4fa9ac0fc3688c4f9774b905a14e3a3f171bac586c55e83ff97a1aeffb3af00adb22c6bb') # noqa: E501` |
| `BLS_MODULUS` | `52435875175126190479447740508185965837690552500527637822603658699938581184513` |
| `CURDLEPROOFS_CRS_G1` | `Vector[BLSG1Point, WHISK_VALIDATORS_PER_SHUFFLE + CURDLEPROOFS_N_BLINDERS + 3]`, contents TBD
| `CURDLEPROOFS_CRS` | TBD |
### Curdleproofs and opening proofs