Module test_parameters

Module test_parameters 

Source
Expand description

Types to instantiate the willow data model for testing.

This module is only available when the dev feature is enabled.

The types in this module are not cryptographically safe. And they are not flexible enough for real-world usage either. They are meant for testing willow-related code. In particular, they are so unsafe that randomly generating values suffices for testing code paths which for more typical parameter choices would require knowledge of secret keys, for example.

Always use Path<4, 4, 4> when working with these test parameters (because that is what TestSubspaceSignature expects and implements the AuthorisationToken trait for).

Re-exports§

pub use TestNamespace::*;
pub use TestNamespaceSecret::*;
pub use TestNamespaceSignature::*;
pub use TestSubspace::*;
pub use TestSubspaceSecret::*;
pub use TestSubspaceSignature::*;
pub use TestDigest::*;

Structs§

TestDigestHasher
The state for hashing a bytestring into a TestDigest.

Enums§

TestDigest
A payload digest for testing.
TestNamespace
A namespace id for testing.
TestNamespaceSecret
A “private key” corresponding to a namespace, used for issuing TestNamespaceSignatures.
TestNamespaceSignature
A “signature” issued by a TestNamespaceSecret.
TestSubspace
A subspace id for testing.
TestSubspaceSecret
A “private key” corresponding to a subspace, used for issuing TestSubspaceSignatures.
TestSubspaceSignature
A “signature” issued by a TestSubspaceSecret. Implements AuthorisationToken.