| License | Apache-2.0 |
|---|---|
| Safe Haskell | None |
| Language | GHC2021 |
Singular.Registry.Wire.Proof
Description
The Aiken merkle-patricia-forestry proof encoding: a single step in
an MPF Merkle proof and the neighbor node a fork step carries, each
with its codec. Reads only Singular.Registry.Wire.Primitive; nothing
here is importable by a caller — the public surface is the
Singular.Registry.Types facade.
Synopsis
- data ProofStep
- = Branch {
- branchSkip :: !Integer
- branchNeighbors :: !ByteString
- | Fork {
- forkSkip :: !Integer
- forkNeighbor :: !Neighbor
- | Leaf { }
- = Branch {
- data Neighbor = Neighbor {
- neighborNibble :: !Integer
- neighborPrefix :: !ByteString
- neighborRoot :: !ByteString
Proof steps (Aiken MPF proof encoding)
A single step in an MPF Merkle proof, matching
the Aiken ProofStep type from
aiken-lang/merkle-patricia-forestry.
Constructors
| Branch | Branch step (Constr 0) |
Fields
| |
| Fork | Fork step (Constr 1) |
Fields
| |
| Leaf | Leaf step (Constr 2) |
Instances
| Show ProofStep Source # | |
Defined in Singular.Registry.Wire.Proof | |
| Eq ProofStep Source # | |
Defined in Singular.Registry.Wire.Proof | |
| FromData ProofStep Source # | |
Defined in Singular.Registry.Wire.Proof Methods fromBuiltinData :: BuiltinData -> Maybe ProofStep | |
| ToData ProofStep Source # | |
Defined in Singular.Registry.Wire.Proof Methods toBuiltinData :: ProofStep -> BuiltinData | |
| UnsafeFromData ProofStep Source # | |
Defined in Singular.Registry.Wire.Proof Methods unsafeFromBuiltinData :: BuiltinData -> ProofStep | |
Neighbor node in a fork proof step.
Constructors
| Neighbor | |
Fields
| |
Instances
| Show Neighbor Source # | |
Defined in Singular.Registry.Wire.Proof | |
| Eq Neighbor Source # | |
Defined in Singular.Registry.Wire.Proof | |
| FromData Neighbor Source # | |
Defined in Singular.Registry.Wire.Proof Methods fromBuiltinData :: BuiltinData -> Maybe Neighbor | |
| ToData Neighbor Source # | |
Defined in Singular.Registry.Wire.Proof Methods toBuiltinData :: Neighbor -> BuiltinData | |
| UnsafeFromData Neighbor Source # | |
Defined in Singular.Registry.Wire.Proof Methods unsafeFromBuiltinData :: BuiltinData -> Neighbor | |