Ouroboros.Consensus.ByronDual.Node.Serialisation
Contents
Associated Types
type BlockNodeToNodeVersion DualByronBlock Source #
type BlockNodeToClientVersion DualByronBlock Source #
Methods
supportedNodeToNodeVersions ∷ Proxy DualByronBlock → Map NodeToNodeVersion (BlockNodeToNodeVersion DualByronBlock) Source #
supportedNodeToClientVersions ∷ Proxy DualByronBlock → Map NodeToClientVersion (BlockNodeToClientVersion DualByronBlock) Source #
latestReleasedNodeVersion ∷ Proxy DualByronBlock → (Maybe NodeToNodeVersion, Maybe NodeToClientVersion) Source #
estimateBlockSize ∷ Header DualByronBlock → SizeInBytes Source #
encodeNodeToClient ∷ CodecConfig DualByronBlock → BlockNodeToClientVersion DualByronBlock → SlotNo → Encoding Source #
decodeNodeToClient ∷ CodecConfig DualByronBlock → BlockNodeToClientVersion DualByronBlock → ∀ s. Decoder s SlotNo Source #
CBOR-in-CBOR for the annotation. This also makes it compatible with the wrapped (Serialised) variant.
Serialised
encodeNodeToClient ∷ CodecConfig DualByronBlock → BlockNodeToClientVersion DualByronBlock → DualByronBlock → Encoding Source #
decodeNodeToClient ∷ CodecConfig DualByronBlock → BlockNodeToClientVersion DualByronBlock → ∀ s. Decoder s DualByronBlock Source #
encodeNodeToNode ∷ CodecConfig DualByronBlock → BlockNodeToNodeVersion DualByronBlock → DualByronBlock → Encoding Source #
decodeNodeToNode ∷ CodecConfig DualByronBlock → BlockNodeToNodeVersion DualByronBlock → ∀ s. Decoder s DualByronBlock Source #
encodeDisk ∷ CodecConfig DualByronBlock → DualByronBlock → Encoding Source #
encodeNodeToClient ∷ CodecConfig DualByronBlock → BlockNodeToClientVersion DualByronBlock → GenTx DualByronBlock → Encoding Source #
decodeNodeToClient ∷ CodecConfig DualByronBlock → BlockNodeToClientVersion DualByronBlock → ∀ s. Decoder s (GenTx DualByronBlock) Source #
encodeNodeToClient ∷ CodecConfig DualByronBlock → BlockNodeToClientVersion DualByronBlock → GenTxId DualByronBlock → Encoding Source #
decodeNodeToClient ∷ CodecConfig DualByronBlock → BlockNodeToClientVersion DualByronBlock → ∀ s. Decoder s (GenTxId DualByronBlock) Source #
Forward to the Byron instance.
encodeNodeToNode ∷ CodecConfig DualByronBlock → BlockNodeToNodeVersion DualByronBlock → Header DualByronBlock → Encoding Source #
decodeNodeToNode ∷ CodecConfig DualByronBlock → BlockNodeToNodeVersion DualByronBlock → ∀ s. Decoder s (Header DualByronBlock) Source #
encodeNodeToNode ∷ CodecConfig DualByronBlock → BlockNodeToNodeVersion DualByronBlock → GenTx DualByronBlock → Encoding Source #
decodeNodeToNode ∷ CodecConfig DualByronBlock → BlockNodeToNodeVersion DualByronBlock → ∀ s. Decoder s (GenTx DualByronBlock) Source #
encodeNodeToNode ∷ CodecConfig DualByronBlock → BlockNodeToNodeVersion DualByronBlock → GenTxId DualByronBlock → Encoding Source #
decodeNodeToNode ∷ CodecConfig DualByronBlock → BlockNodeToNodeVersion DualByronBlock → ∀ s. Decoder s (GenTxId DualByronBlock) Source #
encodeNodeToNode ∷ CodecConfig DualByronBlock → BlockNodeToNodeVersion DualByronBlock → SerialisedHeader DualByronBlock → Encoding Source #
decodeNodeToNode ∷ CodecConfig DualByronBlock → BlockNodeToNodeVersion DualByronBlock → ∀ s. Decoder s (SerialisedHeader DualByronBlock) Source #
encodeResult ∷ CodecConfig DualByronBlock → BlockNodeToClientVersion DualByronBlock → BlockQuery DualByronBlock result → result → Encoding Source #
decodeResult ∷ CodecConfig DualByronBlock → BlockNodeToClientVersion DualByronBlock → BlockQuery DualByronBlock result → ∀ s. Decoder s result Source #
decodeDisk ∷ CodecConfig DualByronBlock → ∀ s. Decoder s (AnnTip DualByronBlock) Source #
decodeDisk ∷ CodecConfig DualByronBlock → ∀ s. Decoder s (LedgerState DualByronBlock) Source #
ChainDepState (BlockProtocol DualByronBlock)
ChainDepState
BlockProtocol
DualByronBlock
decodeDisk ∷ CodecConfig DualByronBlock → ∀ s. Decoder s (PBftState PBftByronCrypto) Source #
encodeDisk ∷ CodecConfig DualByronBlock → AnnTip DualByronBlock → Encoding Source #
encodeDisk ∷ CodecConfig DualByronBlock → LedgerState DualByronBlock → Encoding Source #
encodeDisk ∷ CodecConfig DualByronBlock → PBftState PBftByronCrypto → Encoding Source #
ApplyTxErr DualByronBlock
ApplyTxErr
encodeNodeToClient ∷ CodecConfig DualByronBlock → BlockNodeToClientVersion DualByronBlock → DualGenTxErr ByronBlock ByronSpecBlock → Encoding Source #
decodeNodeToClient ∷ CodecConfig DualByronBlock → BlockNodeToClientVersion DualByronBlock → ∀ s. Decoder s (DualGenTxErr ByronBlock ByronSpecBlock) Source #
encodeNodeToClient ∷ CodecConfig DualByronBlock → BlockNodeToClientVersion DualByronBlock → Serialised DualByronBlock → Encoding Source #
decodeNodeToClient ∷ CodecConfig DualByronBlock → BlockNodeToClientVersion DualByronBlock → ∀ s. Decoder s (Serialised DualByronBlock) Source #
encodeNodeToNode ∷ CodecConfig DualByronBlock → BlockNodeToNodeVersion DualByronBlock → Serialised DualByronBlock → Encoding Source #
decodeNodeToNode ∷ CodecConfig DualByronBlock → BlockNodeToNodeVersion DualByronBlock → ∀ s. Decoder s (Serialised DualByronBlock) Source #
decodeDisk ∷ CodecConfig DualByronBlock → ∀ s. Decoder s (ByteString → DualByronBlock) Source #
encodeNodeToClient ∷ CodecConfig DualByronBlock → BlockNodeToClientVersion DualByronBlock → SomeSecond BlockQuery DualByronBlock → Encoding Source #
decodeNodeToClient ∷ CodecConfig DualByronBlock → BlockNodeToClientVersion DualByronBlock → ∀ s. Decoder s (SomeSecond BlockQuery DualByronBlock) Source #
decodeDiskDep ∷ CodecConfig DualByronBlock → NestedCtxt Header DualByronBlock a → ∀ s. Decoder s (ByteString → a) Source #