1 unstable release
0.1.0 | Aug 10, 2024 |
---|
#419 in Authentication
76KB
1.5K
SLoC
Meadowcap
An implementation of Meadowcap, a capability system for permissioning read and write access to the Willow data model.
Includes implementations of communal capabilities, owned capabilities, a type unifying the two, as well as the generation of McAuthorisationTokens
for use with the Willow data model's is_authorised_write
parameter.
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
.NamespacePublicKey
- The type used forNamespacePublicKey
(willowprotocol.org), must implement thewillow_data_model::NamespaceId
trait.NamespaceSignature
- The type used forNamespaceSignature
(willowprotocol.org).UserPublicKey
- The type used forUserPublicKey
(willowprotocol.org), must implement theSubspaceId
trait.UserSignature
- The type used forUserSignature
(willowprotocol.org).PD
- The type used forPayloadDigest
(willowprotocol.org), must implement thewillow_data_model::PayloadDigest
trait.
Dependencies
~0.8–1.3MB
~27K SLoC