Skip to main content

verify_actions_commitment

Function verify_actions_commitment 

Source
pub fn verify_actions_commitment(
    running: &[u8; 32],
    proven: &[u8; 32],
    has_saved_commitment: bool,
) -> Result<[u8; 32], ZyncError>
Expand description

Verify the running actions commitment chain against the proven value.

Returns the validated commitment, or an error if the chain doesn’t match. For legacy wallets (pre-0.5.1), returns the proven commitment directly.