Skip to content

Commit

Permalink
Check state hashes
Browse files Browse the repository at this point in the history
  • Loading branch information
xqft committed Sep 2, 2024
1 parent 80f23ee commit 11ef31a
Show file tree
Hide file tree
Showing 8 changed files with 6,783 additions and 922 deletions.
11 changes: 10 additions & 1 deletion contract/src/MinaBridge.sol
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,15 @@ contract MinaBridge {
return chainStateHashes[BRIDGE_TRANSITION_FRONTIER_LEN - 1];
}

/// @notice Returns the latest verified chain state hashes.
function getChainStateHashes()
external
view
returns (bytes32[BRIDGE_TRANSITION_FRONTIER_LEN] memory)
{
return chainStateHashes;
}

/// @notice Returns the ledger hash and account state hash pair for
// a given account id.
function getLedgerAccountPair(
Expand All @@ -60,7 +69,7 @@ contract MinaBridge {
return chainLedgerHashes[BRIDGE_TRANSITION_FRONTIER_LEN - 1];
}

function updateTipState(
function updateChain(
bytes32 proofCommitment,
bytes32 provingSystemAuxDataCommitment,
bytes20 proofGeneratorAddr,
Expand Down
Loading

0 comments on commit 11ef31a

Please sign in to comment.