Module avalanche_types::ids

source ·
Expand description

The ids implements Avalanche ID type (32-byte).

use avalanche_types::ids;

assert_eq!(format!("{}", ids::Id::default()), "11111111111111111111111111111111LpoYY");

Modules

Structs

Constants

Functions

Generates VM ID based on the name.
Custom deserializer. Use #[serde(deserialize_with = “ids::must_deserialize_id”)] to serde without derive. ref. https://serde.rs/impl-deserialize.html
Custom deserializer. Use #[serde(deserialize_with = “short::must_deserialize_ids”)] to serde with derive. ref. https://serde.rs/impl-deserialize.html
Return a new set with initial capacity [size]. More or less than [size] elements can be added to this set.

Type Definitions

Set is a set of Ids. https://pkg.go.dev/github.com/ava-labs/avalanchego/ids#Set