Crate linera_base
source ·Expand description
This module provides a common set of types and library functions that are shared between the Linera protocol (compiled from Rust to native code) and Linera applications (compiled from Rust to Wasm).
Modules
- This module defines the notion of Application Binary Interface (ABI) for Linera applications across Wasm and native architectures.
Macros
- Defines a GraphQL scalar type using the hex-representation of the value’s BCS-serialized form.
- Defines a GraphQL scalar with a description string.
- A macro for asserting that a condition is true, returning an error if it is not.
Enums
- An error trying to parse the hex-digits of a BCS-encoded value.
Functions
- Formats a byte sequence as a hexadecimal string, and elides bytes in the middle if it is longer than 32 bytes.