You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The links should be in a folder CoqOfRust/revm/revm_precompile/links with the same names as the files of the crate. These should contain both the analogous for the types, the traits if any, and the functions/constants.
Add the links for the
revm_precompile
crate that is translated in https://github.com/formal-land/coq-of-rust/tree/main/CoqOfRust/revm/revm_precompileThe source crate is in https://github.com/bluealloy/revm/tree/543b4bb8167e5cd9bf5f6421b1af2b867468e8a0/crates/precompile/src
The links should be in a folder
CoqOfRust/revm/revm_precompile/links
with the same names as the files of the crate. These should contain both the analogous for the types, the traits if any, and the functions/constants.An example of link file that is complete is https://github.com/formal-land/coq-of-rust/blob/main/CoqOfRust/revm/revm_interpreter/links/gas.v There is no documentation apart from this example file and the blog posts https://formal.land/blog/2025/01/30/links-for-rust-in-rocq and https://formal.land/blog/2025/02/05/links-for-rust-in-rocq-2 that are slightly outdated.
In a parallel task, I am adding automation to generate the link types in Python, as they are generally very verbose to write but rather simple.
Here is the list of files, excluding the sub-folder for
bls12_381
that we can ignore for now:revm/revm_precompile/blake2
revm/revm_precompile/bls12_381.v
revm/revm_precompile/bn128
revm/revm_precompile/hash
revm/revm_precompile/identity.v
revm/revm_precompile/interface.v
revm/revm_precompile/kzg_point_evaluation.v
revm/revm_precompile/lib.v
revm/revm_precompile/modexp.v
revm/revm_precompile/secp256k1.v
revm/revm_precompile/utilities.v
The text was updated successfully, but these errors were encountered: