Crate forest_encoding

Source

Re-exports§

pub use serde_bytes;

Modules§

de
Generic data structure deserialization framework.
error
When serializing or deserializing CBOR goes wrong.
repr
ser
Generic data structure serialization framework.
tags
Support for cbor tags
tuple

Structs§

Byte32De
Wrapper for deserializing array of 32 Bytes.
BytesDe
Wrapper for deserializing dynamic sized Bytes.
BytesSer
Wrapper for serializing slice of bytes.
Error
Error type for encoding and decoding data through any Forest supported protocol.

Enums§

CodecProtocol
CodecProtocol defines the protocol in which the data is encoded or decoded

Traits§

Cbor
Cbor utility functions for serializable objects

Functions§

blake2b_256
Generates blake2b hash of fixed 32 bytes size.
blake2b_variable
Generates blake2b hash with provided size.
bytes_32
from_reader
Decodes a value from CBOR data in a reader.
from_slice
Decodes a value from CBOR data in a slice.
to_vec
Serializes a value to a vector.
to_writer
Serializes a value to a writer.