Advanced
Adam Cochran@adamscochran
1/10/2024

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?

Ethereum
In reply to @adamscochran
Adam Cochran@adamscochran
1/10/2024

2/2 Put differently, is there reasons to not make available high computational cost functions as precompiles as long as we price them efficiently? Or, are we risking increasing the specs for nodes too much if we start adding these? Maybe I’m not fully grasping the role of precompiles.

Ethereum
In reply to @adamscochran
ciefa.eth@ciefa.eth
1/10/2024

No idea, but I like seeing you post here.

Ethereum
In reply to @adamscochran
fabdarice.eth@fabdarice
1/10/2024

Engineering time

Ethereum
In reply to @adamscochran
jtriley.eth@jtriley
1/10/2024

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

Ethereum