Content pfp
Content
@
0 reply
0 recast
0 reaction

Adam Cochran pfp
Adam Cochran
@adamscochran
1/2 Ok question for the ETH tech community: why don’t we have lots more precompiles? For example, I can’t do Ed25519 in a smart contract due to precision/scale issues, but could make it a precompile that nodes could run. As long as the gas fee is high enough to deter frequent use, is there a drawback?
4 replies
0 recast
5 reactions

jtriley.eth pfp
jtriley.eth
@jtriley
precompiles carry the same implications as opcodes, but their cost is massive comparatively bc you have to make an external call to precompiles. it would be better to have an opcode instead, technically, but opcode additions are a massive undertaking. 0/1
1 reply
0 recast
1 reaction

jtriley.eth pfp
jtriley.eth
@jtriley
it also carries fragmentation issues. a lot of evm's have different precompiles, if l1 eth adds an opcode or precompile, do the others add it? most evms don't even have push0 yet evm needs to ossify quite soon else we need a way for external evms to reach consensus on changes 1/1
0 reply
0 recast
2 reactions