Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: comments for BlevmAggOutput and PublicWitness #118

Merged
merged 1 commit into from
Jan 31, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ibc/lightclients/groth16/witness.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"github.com/consensys/gnark/backend/witness"
)

// PublicWitness should match the public outputs of the SP1 program.
type PublicWitness struct {
TrustedHeight int64 // Provided by the relayer/user
TrustedCelestiaHeaderHash []byte // Provided by the ZK IBC Client
Expand Down
13 changes: 12 additions & 1 deletion provers/blevm/common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,20 @@ pub struct BlevmOutput {

#[derive(Serialize, Deserialize)]
pub struct BlevmAggOutput {
// newest_header_hash is the last block's hash on the EVM roll-up.
// TODO: this may be removable.
pub newest_header_hash: [u8; 32],
// oldest_header_hash is the earliest block's hash on the EVM roll-up.
// TODO: this may be removable.
pub oldest_header_hash: [u8; 32],
pub celestia_header_hashes: Vec<[u8; 32]>,
// celestia_header_hashes is the range of Celestia blocks that include all
// of the blob data the EVM roll-up has posted from oldest_header_hash to
// newest_header_hash.
pub celestia_header_hashes: Vec<[u8; 32]>, // provided by Celestia state machine (eventually x/header)
// newest_state_root is the computed state root of the EVM roll-up after
// processing blocks from oldest_header_hash to newest_header_hash.
pub newest_state_root: [u8; 32],
// newest_height is the most recent block number of the EVM roll-up.
// TODO: this may be removable.
pub newest_height: u64,
}