Questions tagged [precompiled-contracts]

Questions related to ‘precompiled’ contracts, meant as a preliminary piece of architecture that may later become native extensions.

Questions related to ‘precompiled’ contracts, meant as a preliminary piece of architecture that may later become native extensions.

37 questions
4
votes
2 answers

Which language are precompiled contracts written in?

So I heard that the precompiled contracts perform functions that are difficult to do using EVM opcodes. Does that mean the precompiled contracts are not written in EVM opcodes. Which language are precompiled contracts written in and how are they…
Anh Dũng Lê
  • 243
  • 2
  • 7
3
votes
1 answer

What’s the identity 0x4 precompile?

Simple question but I couldn’t find the answer. Is it the datacopy precompile? and if yes, what it does?
user2284570
  • 1,008
  • 1
  • 12
  • 30
2
votes
1 answer

Clarification on multiplication from modular exponentiation precompiled contract

I'm trying to understand what exactly Vitalik means in the following (from here): Note that adding precompiles for addition and subtraction is not required, as the in-EVM algorithm is efficient enough, and multiplication can be done through this…
riordant
  • 89
  • 10
1
vote
1 answer

Very high gas costs

I noticed the following peculiarity: CALL opcode vm trace step: 1122 execution step: 1122 add memory: gas: 3859834 remaining gas: 3921090 loaded address: 0xa7913fc3e4dbf3d8caca06e1c2da85ed838e150f 0:…
1
vote
0 answers

How Do I use Precompiled contract in solidity?

I want to utilize a precompiled contract (EIP-196) in my smart contract. First of all, I don't know how to call this precompiled contract in my contract. Secondly, I have found a code in bellow links that uses this method. However, I want to do an…