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.