Skip to main content

build_rest_auth_headers

Function build_rest_auth_headers 

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

Builds REST auth headers using the system clock as the reference time.

ยงErrors

Returns AuthError::ClockBeforeEpoch if the system clock is invalid, or AuthError::SigningFailed when the underlying secp256k1 signer errors.