Crate kaspa_utils

source
Expand description

§Kaspa Utilities

General purpose utilities and various type extensions used across the Rusty Kaspa codebase.

Modules§

Macros§

  • Macro to provide serde::Deserialize implementations for types $t which can be constructed from byte arrays of fixed size. The resulting structure will support deserialization from human-readable formats using hex::FromHex, as well as binary formats.
  • Macro to generate serde::Serialize implementation for types $t that can be referenced as a byte array of fixed size, The resulting structure will support serialization into human-readable formats using hex encoding, as well as binary formats.