Module garage_util::data[][src]

Expand description

Contains common types and functions related to serialization and integrity

Structs

FixedBytes32

An array of 32 bytes

Functions

blake2sum

Compute the blake2 of a slice

debug_serialize

Serialize to JSON, truncating long result

fasthash

Compute a (non cryptographic) of a slice

gen_uuid

Generate a random 32 bytes UUID

rmp_to_vec_all_named

Serialize to MessagePack

sha256sum

Compute the sha256 of a slice

Type Definitions

FastHash

A 64 bit non cryptographic hash

Hash

A 256 bit cryptographic hash, can be sha256 or blake2 depending on provenance

Uuid

A 32 bytes UUID