Skip to main content

derive_signed_state_digest

Function derive_signed_state_digest 

Source
pub fn derive_signed_state_digest(
    lc_state: &LightClientState,
    next_stake_state: &StakeTableState,
    auth_root: &FixedBytes<32>,
) -> CircuitField
Expand description

Derive the signed state digest used for LCV3 light-client signatures: keccak256(abi.encodePacked(abi.encode(state) || abi.encode(stake) || abi.encode(auth_root))), converted to a CircuitField.