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§
- Test
Digest Hasher - The state for hashing a bytestring into a
TestDigest.
Enums§
- Test
Digest - A payload digest for testing.
- Test
Namespace - A namespace id for testing.
- Test
Namespace Secret - A “private key” corresponding to a namespace, used for issuing
TestNamespaceSignatures. - Test
Namespace Signature - A “signature” issued by a
TestNamespaceSecret. - Test
Subspace - A subspace id for testing.
- Test
Subspace Secret - A “private key” corresponding to a subspace, used for issuing
TestSubspaceSignatures. - Test
Subspace Signature - A “signature” issued by a
TestSubspaceSecret. ImplementsAuthorisationToken.