Moduleouroboros-consensus-4.2.1.0
Ouroboros.Consensus.Storage.Serialisation
- 4 types
- 8 classes
- 9 values
- Packageouroboros-consensus-4.2.1.0
- Exports21
- LicenceApache-2.0
value
decodeTrivialSerialisedHeader :: TrivialDependency (NestedCtxt_ blk Header) => forall s. Decoder s (SerialisedHeader blk)Constructors
Instances4Eq, Show, Generic, Rep
Eq BinaryBlockInfoDefined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.Storage.CommonShow BinaryBlockInfoDefined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.Storage.CommonGeneric BinaryBlockInfoDefined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.Storage.Commontype Rep BinaryBlockInfo = D1 ('MetaDataDefined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.Storage.Common"BinaryBlockInfo"
"Ouroboros.Consensus.Storage.Common"
"ouroboros-consensus-4.2.1.0-C9zVP0VXla2Fy4UJAsSSXt"
'False) (C1 ('MetaCons"BinaryBlockInfo"
'PrefixI 'True) (S1 ('MetaSel ('Just"headerOffset"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Word16) :*: S1 ('MetaSel ('Just"headerSize"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Word16)))
Constructors
Instances6Eq, Ord, Show, Generic, NoThunks, Rep
Eq PrefixLenDefined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.Storage.CommonOrd PrefixLenDefined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.Storage.CommonShow PrefixLenDefined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.Storage.CommonGeneric PrefixLenDefined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.Storage.CommonNoThunks PrefixLenDefined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.Storage.Commontype Rep PrefixLen = D1 ('MetaDataDefined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.Storage.Common"PrefixLen"
"Ouroboros.Consensus.Storage.Common"
"ouroboros-consensus-4.2.1.0-C9zVP0VXla2Fy4UJAsSSXt"
'True) (C1 ('MetaCons"PrefixLen"
'PrefixI 'True) (S1 ('MetaSel ('Just"getPrefixLen"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word8)))
Methods
decodeDisk :: CodecConfig blk -> forall s. Decoder s a
Instances10DecodeDisk, …
DecodeDisk blk (ChainDepState (BlockProtocol blk)) => DecodeDisk blk (WrapChainDepState blk)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.Storage.SerialisationDecodeDisk blk blk => DecodeDisk blk (I blk)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.Storage.SerialisationDecodeDiskDepIx (NestedCtxt Header) blk => DecodeDisk blk (SerialisedHeader blk)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.Storage.Serialisation(DecodeDiskDepIx f blk, DecodeDiskDep f blk) => DecodeDisk blk (DepPair (f blk))Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.Storage.SerialisationDecodeDiskDepIx f blk => DecodeDisk blk (GenDepPair Serialised (f blk))Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.Storage.SerialisationDecodeDisk blk (a -> f blk) => DecodeDisk blk ((:.:) ((->) a) f blk)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.Storage.SerialisationSerialiseHFC xs => DecodeDisk (HardForkBlock xs) (HardForkChainDepState xs)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Serialisation.SerialiseDisk · orphanSerialiseHFC xs => DecodeDisk (HardForkBlock xs) (AnnTip (HardForkBlock xs))Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Serialisation.SerialiseDisk · orphanSerialiseHFC xs => DecodeDisk (HardForkBlock xs) (ByteString -> Either DecoderError (HardForkBlock xs))Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Serialisation.SerialiseDisk · orphanSerialiseHFC xs => DecodeDisk (HardForkBlock xs) (LedgerState (HardForkBlock xs) EmptyMK)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Serialisation.SerialiseDisk · orphan
Methods
decodeDiskDep :: CodecConfig blk -> f blk a -> forall s. Decoder s (ByteString -> a)
Instances1DecodeDiskDep
SerialiseHFC xs => DecodeDiskDep (NestedCtxt Header) (HardForkBlock xs)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Serialisation.SerialiseDisk · orphan
Methods
decodeDiskDepIx :: CodecConfig blk -> Decoder s (SomeSecond f blk)
Instances1DecodeDiskDepIx
SerialiseHFC xs => DecodeDiskDepIx (NestedCtxt Header) (HardForkBlock xs)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Serialisation.SerialiseDisk · orphan
Methods
encodeDisk :: CodecConfig blk -> a -> Encoding
Instances9EncodeDisk, …
EncodeDisk blk (ChainDepState (BlockProtocol blk)) => EncodeDisk blk (WrapChainDepState blk)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.Storage.SerialisationEncodeDisk blk blk => EncodeDisk blk (I blk)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.Storage.SerialisationEncodeDiskDepIx (NestedCtxt Header) blk => EncodeDisk blk (SerialisedHeader blk)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.Storage.Serialisation(EncodeDiskDepIx f blk, EncodeDiskDep f blk) => EncodeDisk blk (DepPair (f blk))Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.Storage.SerialisationEncodeDiskDepIx f blk => EncodeDisk blk (GenDepPair Serialised (f blk))Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.Storage.SerialisationSerialiseHFC xs => EncodeDisk (HardForkBlock xs) (HardForkBlock xs)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Serialisation.SerialiseDisk · orphanSerialiseHFC xs => EncodeDisk (HardForkBlock xs) (HardForkChainDepState xs)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Serialisation.SerialiseDisk · orphanSerialiseHFC xs => EncodeDisk (HardForkBlock xs) (AnnTip (HardForkBlock xs))Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Serialisation.SerialiseDisk · orphanSerialiseHFC xs => EncodeDisk (HardForkBlock xs) (LedgerState (HardForkBlock xs) EmptyMK)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Serialisation.SerialiseDisk · orphan
Methods
encodeDiskDep :: CodecConfig blk -> f blk a -> a -> Encoding
Instances2EncodeDiskDep
SerialiseHFC xs => EncodeDiskDep (NestedCtxt Header) (HardForkBlock xs)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Serialisation.SerialiseDisk · orphanEncodeDiskDep (NestedCtxt Header) m => EncodeDiskDep (NestedCtxt Header) (DualBlock m a)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.Ledger.Dual
Methods
encodeDiskDepIx :: CodecConfig blk -> SomeSecond f blk -> Encoding
Instances2EncodeDiskDepIx
SerialiseHFC xs => EncodeDiskDepIx (NestedCtxt Header) (HardForkBlock xs)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Serialisation.SerialiseDisk · orphanEncodeDiskDepIx (NestedCtxt Header) m => EncodeDiskDepIx (NestedCtxt Header) (DualBlock m a)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.Ledger.Dual
Methods
getBinaryBlockInfo :: blk -> BinaryBlockInfo
Instances2HasBinaryBlockInfo
SerialiseHFC xs => HasBinaryBlockInfo (HardForkBlock xs)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Serialisation.SerialiseDisk · orphanHasBinaryBlockInfo m => HasBinaryBlockInfo (DualBlock m a)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.Ledger.Dual
Methods
reconstructPrefixLen :: proxy (f blk) -> PrefixLenreconstructNestedCtxt :: proxy (f blk) -> ShortByteString -> SizeInBytes -> SomeSecond (NestedCtxt f) blk
Instances2ReconstructNestedCtxt
SerialiseHFC xs => ReconstructNestedCtxt Header (HardForkBlock xs)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Serialisation.SerialiseDisk · orphanReconstructNestedCtxt Header m => ReconstructNestedCtxt Header (DualBlock m a)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.Ledger.Dual
Constructors
SerialisedHeaderFromDepPairserialisedHeaderToDepPair :: GenDepPair Serialised (NestedCtxt Header blk)
Instances9Inject, Isomorphic, StandardHash, ShowProxy, EncodeDisk, DecodeDisk, …
Inject SerialisedHeaderDefined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Embed.NaryIsomorphic SerialisedHeaderDefined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Embed.UnaryStandardHash blk => StandardHash (SerialisedHeader blk)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.Storage.SerialisationShowProxy blk => ShowProxy (SerialisedHeader blk)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.Storage.SerialisationEncodeDiskDepIx (NestedCtxt Header) blk => EncodeDisk blk (SerialisedHeader blk)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.Storage.SerialisationDecodeDiskDepIx (NestedCtxt Header) blk => DecodeDisk blk (SerialisedHeader blk)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.Storage.SerialisationHasNestedContent Header blk => Show (SerialisedHeader blk)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.Storage.SerialisationSerialiseHFC xs => SerialiseNodeToNode (HardForkBlock xs) (SerialisedHeader (HardForkBlock xs))Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Serialisation.SerialiseNodeToNode · orphantype HeaderHash (SerialisedHeader blk) = HeaderHash blkDefined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.Storage.Serialisation