Skip to main content

build_rest_auth_headers_at

Function build_rest_auth_headers_at 

Source
pub fn build_rest_auth_headers_at(
    wallet: &str,
    signer: &PrivateKeySigner,
    now_ms: u64,
) -> Result<AuthHeaders, AuthError>
Expand description

Builds REST auth headers with an injected now_ms reference, suitable for deterministic testing.

ยงErrors

Returns AuthError::SigningFailed when the underlying secp256k1 signer errors.