Skip to main content

Crate solana_address

Crate solana_address 

Source
Expand description

Address representation for Solana.

An address is a sequence of 32 bytes, often shown as a base58 encoded string (e.g. 14grJpemFaf88c8tiVb77W7TYg2W3ir6pfkKz3YjhhZ5).

Modules§

errorerror
syscallscurve25519 or syscalls

Macros§

addressdecode
Convenience macro to define a static Address value.
declare_deprecated_iddecode
Same as declare_id except that it reports that this ID has been deprecated.
declare_iddecode
Convenience macro to declare a static address and functions to interact with it.

Structs§

Address
The address of a Solana account.
AddressHasherrand and neither target_os=solana nor target_arch=bpf
A faster, but less collision resistant hasher for addresses.
AddressHasherBuilderrand and neither target_os=solana nor target_arch=bpf
A builder for faster, but less collision resistant hasher for addresses.

Constants§

ADDRESS_BYTES
Number of bytes in an address.
MAX_SEEDS
Maximum number of seeds
MAX_SEED_LEN
maximum length of derived Address seed
PDA_MARKERNon-target_arch=bpf
Marker used to find program derived addresses (PDAs).

Functions§

address_eq
Custom implementation of equality for Address.
bytes_are_curve_pointtarget_os=solana or target_arch=bpf or curve25519