Skip to main content

Module address

Module address 

Source
Expand description

Hopper-owned address type for Solana programs.

Address is a 32-byte public key with #[repr(transparent)] layout over [u8; 32]. This enables zero-cost reference casting from any backend address type that shares the same representation.

Hopper owns the canonical type. Backend-specific conversions live in compatibility modules so the core identity remains framework-owned.

Structs§

Address
A Solana address (public key): 32 bytes, transparent layout.

Constants§

ADDRESS_BYTES
Number of bytes in an address.
MAX_SEEDS
Maximum number of seeds for PDA derivation.
MAX_SEED_LEN
Maximum length of a single PDA seed.
PDA_MARKER
Marker appended to PDA hash inputs: "ProgramDerivedAddress".

Functions§

address_eq
Fast address equality using 4 x u64 comparison.