foundry icon indicating copy to clipboard operation
foundry copied to clipboard

add P256 verifier for precompile 7951

Open rdubois-crypto opened this issue 1 month ago • 2 comments

Component

Forge

Describe the feature you would like

Add P256 verification keyword.

Additional context

Currently there is no way to test P256 in simulation environnement, lacking a keyword, or the 0x100 address to include the precompile.

rdubois-crypto avatar Dec 08 '25 16:12 rdubois-crypto

Happy to work on this

dipanshuhappy avatar Dec 08 '25 17:12 dipanshuhappy

Well, i had problem with my evm_version, it actually works with a simple

address p256 = address(0x100); (bool success2, bytes memory result2) = p256.staticcall(input);

Not sure it is a rush until solidity team chooses a keyword

rdubois-crypto avatar Dec 08 '25 18:12 rdubois-crypto

@rdubois-crypto dang, it doesn't work for me.

i'm planning to use vm.etch and Daimo's p256verifier? That should work right? :D

tunnckoCore avatar Dec 11 '25 22:12 tunnckoCore

@tunnckoCore , How do your solc and toml look like, shall be:

solc_version = "0.8.30" evm_version = "osaka"

rdubois-crypto avatar Dec 12 '25 08:12 rdubois-crypto