sui_bridge::crypto

Function verify_signed_bridge_action

Source
pub fn verify_signed_bridge_action(
    expected_action: &BridgeAction,
    signed_action: SignedBridgeAction,
    expected_signer: &BridgeAuthorityPublicKeyBytes,
    committee: &BridgeCommittee,
) -> BridgeResult<VerifiedSignedBridgeAction>
Expand description

Verifies a SignedBridgeAction (response from bridge authority to bridge client) represents the right BridgeAction, and is signed by the right authority.