mithril_common

Module crypto_helper

Source
Expand description

Tools and types to abstract the use of the Mithril STM library

Re-exports§

  • pub use cardano::ColdKeyGenerator;

Modules§

  • Ed25519 cryptographic helpers
  • Test data builders for Mithril STM types, for testing purpose.

Structs§

  • Error raised when the encoding or decoding fails
  • A map, where the keys and values are merkelized and provable
  • A MKMapProof that proves membership of an entry in the merkelized map
  • A Merkle proof
  • A Merkle tree
  • A node of a Merkle tree
  • A Merkle tree store in memory
  • Parsed Operational Certificate
  • A ProtocolKey is a wrapped that add Serialization capabilities.
  • 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§

  • 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
  • New initializer error
  • New registration error

Constants§

Traits§

Functions§

Type Aliases§