1 unstable release
0.1.0 | Aug 10, 2024 |
---|
#1 in #eventually
Used in meadowcap
160KB
3K
SLoC
Willow Data Model
This crate provides implementation of the Willow Data Model, including:
- Traits to assist in your implementation of Willow parameters, such as
NamespaceId
andSubspaceId
. - A zero-copy implementation of Willow paths and their constituent components.
- An implementation of Willow's entries.
- Utilities for Willow's entry groupings, such as ranges and areas
- Implementations of various relative encodings.
This crate does not yet have anything for Willow's concept of stores. Stay tuned!
Type parameters
Willow is a parametrised family of protocols, and so this crate makes heavy use of generic parameters.
The following generic parameter names are used consistently across this crate:
MCL
- Ausize
representingmax_component_length
.MCC
- Ausize
representingmax_component_count
.MPL
- Ausize
representingmax_path_length
.N
- The type used forNamespaceId
(willowprotocol.org), must implement theNamespaceId
trait.S
- The type used forSubspaceId
(willowprotocol.org), must implement theSubspaceId
trait.PD
- The type used forPayloadDigest
(willowprotocol.org), must implement thePayloadDigest
trait.AT
- The type used forAuthorisationToken
(willowprotocol.org), must implement theAuthorisationToken
trait.
Dependencies
~0.6–1.2MB
~24K SLoC