Skip to content

Commit

Permalink
docs: fix spelling issues (#1715)
Browse files Browse the repository at this point in the history
* Update memory.md

* Update bits.md

* Update kzg.md

* Update documentation/src/crates/primitives/kzg.md

Co-authored-by: Oliver <onbjerg@users.noreply.github.com>

* Update bits.md

---------

Co-authored-by: Oliver <onbjerg@users.noreply.github.com>
  • Loading branch information
nnsW3 and onbjerg authored Aug 26, 2024
1 parent 792b6b2 commit d29e132
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions documentation/src/crates/interpreter/memory.md
Original file line number Diff line number Diff line change
@@ -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/)).

Expand Down Expand Up @@ -32,4 +32,4 @@ These opcodes change the memory:
* CALL
* CALLCODE
* DELEGATECALL
* STATICCALL
* STATICCALL
4 changes: 2 additions & 2 deletions documentation/src/crates/primitives/kzg.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
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`.

0 comments on commit d29e132

Please sign in to comment.