Module utils

Source

Modules§

field_as_string

Enums§

AddressDerivationError
DerError
Secp256k1Error

Functions§

base64_decode
base64_encode
base64_url_decode
base64_url_encode
check_authorization_header
Checks if the authorization header in the request matches the expected API key.
derive_ethereum_address_from_der
Derive EVM address from the DER payload.
derive_ethereum_address_from_pem
Derive EVM address from the PEM string.
derive_solana_address_from_pem
Derive Solana address from a PEM-encoded public key.
deserialize_optional_u64
deserialize_optional_u128
deserialize_u64
deserialize_u128
extract_public_key_from_der
Extract raw 64-byte key from DER encoded key.
get_resubmit_timeout_for_speed
Gets the resubmit timeout for a given speed Returns the timeout in milliseconds based on the speed:
get_resubmit_timeout_with_backoff
Calculates the resubmit age with exponential backoff
minutes_ms
Converts minutes to milliseconds
recover_public_key
Recover v point from a signature and from the message contents
unsafe_generate_random_private_key