Skip to content

Commit

Permalink
Fix typo and add missing precompile descriptions to evm.md (#2636)
Browse files Browse the repository at this point in the history
* fix typo in evm.md, SHA-257 -> SHA-256

* add descriptions for precompiles 5, 6, 7, 8, 9
  • Loading branch information
alexanderlhicks authored Oct 7, 2024
1 parent 1f5b624 commit 91aa5a9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion kevm-pyk/src/kevm_pyk/kproj/evm-semantics/evm.md
Original file line number Diff line number Diff line change
Expand Up @@ -1818,9 +1818,14 @@ Precompiled Contracts
```

- `ECREC` performs ECDSA public key recovery.
- `SHA256` performs the SHA2-257 hash function.
- `SHA256` performs the SHA2-256 hash function.
- `RIP160` performs the RIPEMD-160 hash function.
- `ID` is the identity function (copies input to output).
- `MODEXP` performs arbitrary-precision modular exponentiation.
- `ECADD` performs point addition on the elliptic curve alt_bn128.
- `ECMUL` performs scalar multiplication on the elliptic curve alt_bn128.
- `ECPAIRING` performs an optimal ate pairing check on the elliptic curve alt_bn128.
- `BLAKE2F` performs the compression function F used in the BLAKE2 hashing algorithm.

```k
syntax PrecompiledOp ::= "ECREC"
Expand Down

0 comments on commit 91aa5a9

Please sign in to comment.