Modules§
Structs§
- Encrypted
Data - Encrypted data container that holds the nonce and ciphertext
- Field
Encryption - Main encryption service for field-level encryption
Enums§
Functions§
- base64_
decode - base64_
encode - base64_
url_ decode - base64_
url_ encode - calculate_
intrinsic_ gas - Calculates the intrinsic gas for a given transaction
- check_
authorization_ header - Checks if the authorization header in the request matches the expected API key.
- decrypt_
sensitive_ field - Decrypts sensitive data from base64 format
- 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_
option_ secret_ string - Helper function to deserialize optional secrets from encrypted base64 storage
- deserialize_
optional_ u64 - deserialize_
optional_ u128 - deserialize_
optional_ u128_ as_ number - Deserialize optional u128 from number
- deserialize_
secret_ string - Helper function to deserialize secrets from encrypted base64 storage
- deserialize_
secret_ vec - Helper function to deserialize secrets from encrypted base64 storage
- deserialize_
u64 - deserialize_
u128 - deserialize_
u128_ as_ number - Deserialize u128 from number (non-optional)
- encrypt_
sensitive_ field - Encrypts sensitive data if encryption is configured, otherwise returns base64-encoded plaintext
- extract_
public_ key_ from_ der - Extract raw 64-byte key from DER encoded key.
- generate_
encryption_ key - Utility function to generate a new encryption key
- generate_
uuid - Generate a new UUID.
- get_
encryption - Gets the global encryption instance
- get_
evm_ default_ gas_ limit_ for_ tx - Gets the default gas limit for a given transaction
- 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
- initialize_
redis_ connection - Initializes a Redis connection manager.
- log_
service_ info - Logs service information at startup
- minutes_
ms - Converts minutes to milliseconds
- recover_
public_ key - Recover
v
point from a signature and from the message contents - serialize_
option_ secret_ string - Helper function to serialize optional secrets as encrypted base64 for storage
- serialize_
optional_ u128 - serialize_
optional_ u128_ as_ number - serialize_
secret_ string - Helper function to serialize secrets as encrypted base64 for storage
- serialize_
secret_ vec - Helper function to serialize secrets as encrypted base64 for storage
- serialize_
u128 - serialize_
u128_ as_ number - Serialize u128 as number (non-optional)
- unsafe_
generate_ random_ private_ key