diff --git a/documentation/src/crates/interpreter/memory.md b/documentation/src/crates/interpreter/memory.md index 2f28764f7a..22fbb97c8d 100644 --- a/documentation/src/crates/interpreter/memory.md +++ b/documentation/src/crates/interpreter/memory.md @@ -1,6 +1,6 @@ # EVM Memory -Is a memory localized to the current Interpreter context. Interpreter context is a call or create frame. It is used by opcodes to store or format data that are more then 32 bytes long, for example calls to format input, return output or for logs data. Revm has a shared memory between all the Interpreters but Interpreter loop only see the part it is allocated to it. +Is a memory localized to the current Interpreter context. Interpreter context is a call or create frame. It is used by opcodes to store or format data that are more than 32 bytes long, for example calls to format input, return output or for logs data. Revm has a shared memory between all the Interpreters but Interpreter loop only see the part it is allocated to it. Extending memory is paid by the gas. It consumes 3 gas per word plus square of the number of words added divided by `512` (`3*N+ N^2/512`). There is no limit on the size of the memory, but it is limited by logarithmic growth of the gas cost. For 30M there is a calculated max memory of 32MB (Blog post by ramco: [Upper bound for transaction memory](https://xn--2-umb.com/22/eth-max-mem/)). @@ -32,4 +32,4 @@ These opcodes change the memory: * CALL * CALLCODE * DELEGATECALL -* STATICCALL \ No newline at end of file +* STATICCALL diff --git a/documentation/src/crates/primitives/kzg.md b/documentation/src/crates/primitives/kzg.md index 7c72a08eb8..44ba715722 100644 --- a/documentation/src/crates/primitives/kzg.md +++ b/documentation/src/crates/primitives/kzg.md @@ -6,7 +6,7 @@ This module houses; 1. `KzgSettings`: Stores the setup and parameters needed for computing and verify KZG proofs. - The `KZG` premitive provides a default `KZGSettings` obtained from [this]( https://ceremony.ethereum.org/) trusted setup ceremony, a provision is also made for using a custom `KZGSettings` if need be, this is available in the `env.cfg`. + The `KZG` primitive provides a default `KZGSettings` obtained from [this]( https://ceremony.ethereum.org/) trusted setup ceremony, a provision is also made for using a custom `KZGSettings` if need be, this is available in the `env.cfg`. -2. `trusted_setup_points`: This module contains functions and types used for parsing and utilizing the [Trusted Setup]( https://ceremony.ethereum.org/) for the `KzgSettings`. \ No newline at end of file +2. `trusted_setup_points`: This module contains functions and types used for parsing and utilizing the [Trusted Setup](https://ceremony.ethereum.org/) for the `KzgSettings`.