@@ -162,34 +162,34 @@ class Spec:
162162
163163 # Test constants (from https://github.com/ethereum/bls12-381-tests/tree/eip-2537)
164164 P1 = PointG1 ( # random point in G1
165- 0x112B98340EEE2777CC3C14163DEA3EC97977AC3DC5C70DA32E6E87578F44912E902CCEF9EFE28D4A78B8999DFBCA9426 , # noqa: E501
166- 0x186B28D92356C4DFEC4B5201AD099DBDEDE3781F8998DDF929B4CD7756192185CA7B8F4EF7088F813270AC3D48868A21 , # noqa: E501
165+ 0x112B98340EEE2777CC3C14163DEA3EC97977AC3DC5C70DA32E6E87578F44912E902CCEF9EFE28D4A78B8999DFBCA9426 ,
166+ 0x186B28D92356C4DFEC4B5201AD099DBDEDE3781F8998DDF929B4CD7756192185CA7B8F4EF7088F813270AC3D48868A21 ,
167167 )
168168 G1 = PointG1 (
169- 0x17F1D3A73197D7942695638C4FA9AC0FC3688C4F9774B905A14E3A3F171BAC586C55E83FF97A1AEFFB3AF00ADB22C6BB , # noqa: E501
170- 0x8B3F481E3AAA0F1A09E30ED741D8AE4FCF5E095D5D00AF600DB18CB2C04B3EDD03CC744A2888AE40CAA232946C5E7E1 , # noqa: E501
169+ 0x17F1D3A73197D7942695638C4FA9AC0FC3688C4F9774B905A14E3A3F171BAC586C55E83FF97A1AEFFB3AF00ADB22C6BB ,
170+ 0x8B3F481E3AAA0F1A09E30ED741D8AE4FCF5E095D5D00AF600DB18CB2C04B3EDD03CC744A2888AE40CAA232946C5E7E1 ,
171171 )
172172 # point at infinity in G1
173173 INF_G1 = PointG1 (0 , 0 )
174174 # random point in G2
175175 P2 = PointG2 (
176176 (
177- 0x103121A2CEAAE586D240843A398967325F8EB5A93E8FEA99B62B9F88D8556C80DD726A4B30E84A36EEABAF3592937F27 , # noqa: E501
178- 0x86B990F3DA2AEAC0A36143B7D7C824428215140DB1BB859338764CB58458F081D92664F9053B50B3FBD2E4723121B68 , # noqa: E501
177+ 0x103121A2CEAAE586D240843A398967325F8EB5A93E8FEA99B62B9F88D8556C80DD726A4B30E84A36EEABAF3592937F27 ,
178+ 0x86B990F3DA2AEAC0A36143B7D7C824428215140DB1BB859338764CB58458F081D92664F9053B50B3FBD2E4723121B68 ,
179179 ),
180180 (
181- 0xF9E7BA9A86A8F7624AA2B42DCC8772E1AF4AE115685E60ABC2C9B90242167ACEF3D0BE4050BF935EED7C3B6FC7BA77E , # noqa: E501
182- 0xD22C3652D0DC6F0FC9316E14268477C2049EF772E852108D269D9C38DBA1D4802E8DAE479818184C08F9A569D878451 , # noqa: E501
181+ 0xF9E7BA9A86A8F7624AA2B42DCC8772E1AF4AE115685E60ABC2C9B90242167ACEF3D0BE4050BF935EED7C3B6FC7BA77E ,
182+ 0xD22C3652D0DC6F0FC9316E14268477C2049EF772E852108D269D9C38DBA1D4802E8DAE479818184C08F9A569D878451 ,
183183 ),
184184 )
185185 G2 = PointG2 (
186186 (
187- 0x24AA2B2F08F0A91260805272DC51051C6E47AD4FA403B02B4510B647AE3D1770BAC0326A805BBEFD48056C8C121BDB8 , # noqa: E501
188- 0x13E02B6052719F607DACD3A088274F65596BD0D09920B61AB5DA61BBDC7F5049334CF11213945D57E5AC7D055D042B7E , # noqa: E501
187+ 0x24AA2B2F08F0A91260805272DC51051C6E47AD4FA403B02B4510B647AE3D1770BAC0326A805BBEFD48056C8C121BDB8 ,
188+ 0x13E02B6052719F607DACD3A088274F65596BD0D09920B61AB5DA61BBDC7F5049334CF11213945D57E5AC7D055D042B7E ,
189189 ),
190190 (
191- 0xCE5D527727D6E118CC9CDC6DA2E351AADFD9BAA8CBDD3A76D429A695160D12C923AC9CC3BACA289E193548608B82801 , # noqa: E501
192- 0x606C4A02EA734CC32ACD2B02BC28B99CB3E287E85A763AF267492AB572E99AB3F370D275CEC1DA1AAA9075FF05F79BE , # noqa: E501
191+ 0xCE5D527727D6E118CC9CDC6DA2E351AADFD9BAA8CBDD3A76D429A695160D12C923AC9CC3BACA289E193548608B82801 ,
192+ 0x606C4A02EA734CC32ACD2B02BC28B99CB3E287E85A763AF267492AB572E99AB3F370D275CEC1DA1AAA9075FF05F79BE ,
193193 ),
194194 )
195195 # point at infinity in G2
@@ -203,18 +203,18 @@ class Spec:
203203 P2_NOT_IN_SUBGROUP = PointG2 (
204204 (1 , 1 ),
205205 (
206- 0x17FAA6201231304F270B858DAD9462089F2A5B83388E4B10773ABC1EEF6D193B9FCE4E8EA2D9D28E3C3A315AA7DE14CA , # noqa: E501
207- 0xCC12449BE6AC4E7F367E7242250427C4FB4C39325D3164AD397C1837A90F0EA1A534757DF374DD6569345EB41ED76E , # noqa: E501
206+ 0x17FAA6201231304F270B858DAD9462089F2A5B83388E4B10773ABC1EEF6D193B9FCE4E8EA2D9D28E3C3A315AA7DE14CA ,
207+ 0xCC12449BE6AC4E7F367E7242250427C4FB4C39325D3164AD397C1837A90F0EA1A534757DF374DD6569345EB41ED76E ,
208208 ),
209209 )
210210 P2_NOT_IN_SUBGROUP_TIMES_2 = PointG2 (
211211 (
212- 0x919F97860ECC3E933E3477FCAC0E2E4FCC35A6E886E935C97511685232456263DEF6665F143CCCCB44C733333331553 , # noqa: E501
213- 0x18B4376B50398178FA8D78ED2654B0FFD2A487BE4DBE6B69086E61B283F4E9D58389CCCB8EDC99995718A66666661555 , # noqa: E501
212+ 0x919F97860ECC3E933E3477FCAC0E2E4FCC35A6E886E935C97511685232456263DEF6665F143CCCCB44C733333331553 ,
213+ 0x18B4376B50398178FA8D78ED2654B0FFD2A487BE4DBE6B69086E61B283F4E9D58389CCCB8EDC99995718A66666661555 ,
214214 ),
215215 (
216- 0x26898F699C4B07A405AB4183A10B47F923D1C0FDA1018682DD2CCC88968C1B90D44534D6B9270CF57F8DC6D4891678A , # noqa: E501
217- 0x3270414330EAD5EC92219A03A24DFA059DBCBE610868BE1851CC13DAC447F60B40D41113FD007D3307B19ADD4B0F061 , # noqa: E501
216+ 0x26898F699C4B07A405AB4183A10B47F923D1C0FDA1018682DD2CCC88968C1B90D44534D6B9270CF57F8DC6D4891678A ,
217+ 0x3270414330EAD5EC92219A03A24DFA059DBCBE610868BE1851CC13DAC447F60B40D41113FD007D3307B19ADD4B0F061 ,
218218 ),
219219 )
220220
@@ -248,14 +248,7 @@ def msm_discount(group: BLS12Group, k: int) -> int:
248248def msm_gas_func_gen (
249249 group : BLS12Group , len_per_pair : int , multiplication_cost : int
250250) -> Callable [[int ], int ]:
251- """
252- <<<<<<< HEAD
253- Generate a function that calculates the gas cost for the G1MSM and G2MSM precompiles.
254- =======
255- Generate function that calculates the gas cost for the G1MSM and G2MSM
256- precompiles.
257- >>>>>>> 4e264c33c6 (chore(ruff): changes to `tests/prague`.)
258- """
251+ """Generate a function that calculates the gas cost for the G1MSM and G2MSM precompiles."""
259252
260253 def msm_gas (input_length : int ) -> int :
261254 """Calculate gas cost for the G1MSM and G2MSM precompiles."""
0 commit comments