Skip to main content

Module credential

Module credential 

Source
Expand description

Lighter credential storage and resolution.

Lighter signs L2 transactions with Schnorr signatures over the ecgfp5 curve (Goldilocks quintic extension field) and Poseidon2 hashing. The cryptographic primitives live in crate::signing; this module only handles credential plumbing (private key bytes, account index, API key index, env-var resolution).

Structs§

Credential
Lighter API credentials required for authenticated REST, private WebSocket, and L2 transaction signing.

Functions§

credential_env_vars
Environment variable names for Lighter credentials.