Skip to main content

validate_order_authorization

Function validate_order_authorization 

Source
pub fn validate_order_authorization(
    challenge: &PlatformOrderChallengeResponse,
    request: &PlatformOrderChallengeRequest,
) -> Result<OrderAuthorization, SdkError>
Expand description

Two-step path helper: check an order challenge’s authorization payload binds exactly this operation (every field, opaque order identity, and replay value) before signing it. The one-call StrataClient::execute_order no longer needs it (one signature over the transaction); the order command channel still uses it to bind the challenge without a message signature.