Kobi Gurkan pfp
Kobi Gurkan
@kobi
Description: cryo code to find all the deployed contracts that use the pairing precompile Amount: 100 USDC @bountybot
6 replies
2 recasts
6 reactions

not parzival pfp
not parzival
@alexpaden
Is the final result of the code a list of contract addresses?
1 reply
0 recast
1 reaction

Kobi Gurkan pfp
Kobi Gurkan
@kobi
That would be great for this bounty But also complete disassembly would be awesome, since you probably get it on the way
1 reply
0 recast
0 reaction

not parzival pfp
not parzival
@alexpaden
Got it (newish to evm). I used pyevmasm disassemble_hex on the code column of the parquets provided, here is an example output for one contract. Is this a valid use of pairing? I am concerned the tutorial lists "PRECOMPILE_REGEX = r"PUSH1 (0x[1-9]) GAS STATICCALL" as GAS STATICCALL does not appear in my disassembly
1 reply
0 recast
1 reaction

Kobi Gurkan pfp
Kobi Gurkan
@kobi
Yeah I don’t think one is a pairing :) you need a static call afterwards
1 reply
0 recast
1 reaction

not parzival pfp
not parzival
@alexpaden
great, I’ve finally isolated the issue. Just to confirm, this is the only sequence “push1 0x8 gas staticcall” to be filtered on?
1 reply
0 recast
1 reaction

Kobi Gurkan pfp
Kobi Gurkan
@kobi
Good question, I’m not sure it covers all cases But that would be great for what I need atm
1 reply
0 recast
1 reaction

not parzival pfp
not parzival
@alexpaden
Okay I should have something soon and can always update it to include others afterward
1 reply
0 recast
1 reaction

Kobi Gurkan pfp
Kobi Gurkan
@kobi
Amazing!
1 reply
0 recast
0 reaction

not parzival pfp
not parzival
@alexpaden
here is my shot: https://github.com/alexpaden/evm_pairing_contracts let me know if you have any issues, the final result of the paradigm contracts provided was 97. I used parallel for speed but can remove if necessary
1 reply
0 recast
1 reaction