o1js
o1js copied to clipboard
Clarify State Hash Derivation Process for Lambda
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:
- Its purpose and usage in the state hash derivation
- Implementation details
- Any specific parameters or configurations
Clarify the to_roinput
function:
- Its role in preparing data for hashing
- How it's implemented
- What type of input it expects and what it outputs
Describe how these functions interact in the state hash derivation process.