o1js icon indicating copy to clipboard operation
o1js copied to clipboard

Clarify State Hash Derivation Process for Lambda

Open MartinMinkov opened this issue 7 months ago • 1 comments

We need to provide a detailed explanation of how the stateHash is derived in our OCaml code for Lambda's implementation of the Mina-EVM bridge. There's a specific focus on two functions mentioned in our documentation but not fully explained: poseidon_3w_hash and to_roinput.

Objective:

Provide a clear and comprehensive explanation of the stateHash derivation process, including detailed information about the poseidon_3w_hash and to_roinput functions.

Key Points to Address:

Explain the overall process of deriving the stateHash.

Provide details on the poseidon_3w_hash function:

  1. Its purpose and usage in the state hash derivation
  2. Implementation details
  3. Any specific parameters or configurations

Clarify the to_roinput function:

  1. Its role in preparing data for hashing
  2. How it's implemented
  3. What type of input it expects and what it outputs

Describe how these functions interact in the state hash derivation process.

MartinMinkov avatar Jul 16 '24 16:07 MartinMinkov