Skip to main content

Module primitive

Module primitive 

Expand description

Basic public types used in the HOPR protocol. This crate contains basic types used throughout the entire HOPR codebase. Types from this crate are not necessarily specific only to HOPR.

Modules§

balance
Contains implementations for the token and coin balance types.
bounded
Contains various size-bounded types
errors
Lists all errors in this crate.
prelude
primitives
Implements the most primitive types, such as U256 or Address.
traits
Defines commonly used traits across the entire code base.

Functions§

f64_approx_eq
Approximately compares two double-precision floats.
to_hex_shortened
Converts the given data into a hex string, removing the middle part of the string if it is longer than M of hex characters.