Expand description
Tools and types to abstract the use of the Mithril STM library
Re-exports§
pub use cardano::ColdKeyGenerator;
Modules§
- ed25519
- Ed25519 cryptographic helpers
- tests_
setup - Test data builders for Mithril STM types, for testing purpose.
Structs§
- Codec
Error - Error raised when the encoding or decoding fails
- MKMap
- A map, where the keys and values are merkelized and provable
- MKMap
Proof - A MKMapProof that proves membership of an entry in the merkelized map
- MKProof
- A Merkle proof
- MKTree
- A Merkle tree
- MKTree
Node - A node of a Merkle tree
- MKTree
Store InMemory - A Merkle tree store in memory
- OpCert
- Parsed Operational Certificate
- Protocol
Key - A ProtocolKey is a wrapped that add Serialization capabilities.
- Sum6
KesBytes - We need to create this struct because the design of Sum6Kes takes a reference to a mutable pointer. It is therefore not possible to implement Ser/Deser using serde.
Enums§
- MKMap
Node - A merkelized map node that is used to represent multi layered merkelized map The MKMapNode can be either a MKMap (Merkle map), a MKTree (full Merkle tree) or a MKTreeNode (Merkle tree node, e.g the root of a Merkle tree) Both MKMap and MKTree can generate proofs of membership for elements that they contain, which allows for recursive proof generation for the multiple layers
- Protocol
Initializer Error Wrapper - New initializer error
- Protocol
Registration Error Wrapper - New registration error
Constants§
- PROTOCOL_
VERSION - The current protocol version
Traits§
- MKMap
Key - The trait implemented by the keys of a MKMap
- MKMap
Value - The trait implemented by the values of a MKMap
- MKTree
Leaf Indexer - The Merkle tree leaves indexer trait
- MKTree
Storer - The Merkle tree storer trait
- Protocol
KeyCodec - The codec used to serialize/deserialize a ProtocolKey.
- SerDe
Shelley File Format - Trait that allows any structure that implements Serialize and DeserializeOwned to be serialized and deserialized following the Shelly json format.
Functions§
- encode_
bech32 - Encode to bech32 given Human Readable Part (hrp) and data
- key_
decode_ hex - Decode key from hex helper
- key_
encode_ hex - Encode key to hex helper
Type Aliases§
- Bytes
- Alias for a byte
- EraMarkers
Signer - A cryptographic signer that is responsible for signing the EraMarkers
- EraMarkers
Verifier - An era markers verifier that checks the authenticity of era markers stored on the chain
- EraMarkers
Verifier Error - EraMarkersSigner and EraMarkersVerifier related errors.
- EraMarkers
Verifier Secret Key - Era markers verifier secret key
- EraMarkers
Verifier Signature - Era markers verifier signature
- EraMarkers
Verifier Verification Key - Era markers verifier verification key
- KESPeriod
- The KES period that is used to check if the KES keys is expired
- MKTree
Leaf Position - Alias for a Merkle tree leaf position
- Manifest
Signature - Manifest signature
- Manifest
Signer - A cryptographic signer that is responsible for signing the Manifest
- Manifest
Verifier - A manifest verifier that checks the authenticity of a manifest
- Manifest
Verifier Error - ManifestSigner and ManifestVerifier related errors.
- Manifest
Verifier Secret Key - Manifest verifier secret key
- Manifest
Verifier Verification Key - Manifest verifier verification key
- Protocol
Aggregate Verification Key - Wrapper of MithrilStm:StmAggrVerificationKey.
- Protocol
Aggregation Error - Alias of MithrilStm:AggregationError.
- Protocol
Clerk - Alias of MithrilStm:StmClerk.
- Protocol
Closed KeyRegistration - Alias of a wrapper of MithrilStm:ClosedKeyReg.
- Protocol
Genesis Error - ProtocolGenesisSigner and ProtocolGenesisVerifier related errors.
- Protocol
Genesis Secret Key - A protocol Genesis verifier secret key
- Protocol
Genesis Signature - A protocol Genesis signature
- Protocol
Genesis Signer - A protocol Genesis Signer that is responsible for signing the Genesis Certificate
- Protocol
Genesis Verification Key - A protocol Genesis verification key
- Protocol
Genesis Verifier - A protocol Genesis Verifier that is responsible for verifying the Genesis Certificate
- Protocol
Initializer - Alias of a wrapper of MithrilStm:StmInitializer.
- Protocol
Initializer Error - Alias of a wrapper of MithrilCommon:ProtocolInitializerErrorWrapper.
- Protocol
KeyRegistration - Alias of a wrapper of MithrilStm:KeyReg.
- Protocol
Lottery Index - Alias of MithrilStm::Index.
- Protocol
MkProof - Wrapper of MKProof to add serialization utilities.
- Protocol
Multi Signature - Wrapper of MithrilStm:StmAggrSig to add serialization utilities.
- Protocol
OpCert - Wrapper of OpCert to add serialization utilities.
- Protocol
Parameters - Alias of MithrilStm::StmParameters.
- Protocol
Party Id - The id of a mithril party.
- Protocol
Registration Error - Alias of a wrapper of MithrilCommon:ProtocolRegistrationErrorWrapper.
- Protocol
Signer - Alias of MithrilStm:StmSigner.
- Protocol
Signer Verification Key - Wrapper of MithrilStm:StmVerificationKeyPoP to add serialization utilities.
- Protocol
Signer Verification KeySignature - Wrapper of KES:Sum6KesSig to add serialization utilities.
- Protocol
Single Signature - Wrapper of MithrilStm:StmSig to add serialization utilities.
- Protocol
Stake - Alias of MithrilStm:Stake.
- Protocol
Stake Distribution - A list of Party Id associated with its Stake.
- Protocol
Version - A protocol version