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]. Hopper owns the canonical public-key type across the runtime.

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.
address_is_zero
Fast is-zero check: OR-fold the address’s 4 u64 words.
keys_eq
Fast 32-byte key equality using 4 x u64 word comparison.
keys_eq_bytes
Fast key equality between an arbitrary byte slice and a 32-byte key.