Ouroboros.Consensus.Byron.Node.Serialisation
Contents
Methods
estimateBlockSize :: Header ByronBlock -> SizeInBytes Source #
getBinaryBlockInfo :: ByronBlock -> BinaryBlockInfo Source #
CBOR-in-CBOR for the annotation. This also makes it compatible with the wrapped ( Serialised ) variant.
Serialised
encodeNodeToNode :: CodecConfig ByronBlock -> BlockNodeToNodeVersion ByronBlock -> ByronBlock -> Encoding Source #
decodeNodeToNode :: CodecConfig ByronBlock -> BlockNodeToNodeVersion ByronBlock -> forall s. Decoder s ByronBlock Source #
ApplyTxErr ByronBlock
ApplyTxErr
ByronBlock
encodeNodeToClient :: CodecConfig ByronBlock -> BlockNodeToClientVersion ByronBlock -> ApplyMempoolPayloadErr -> Encoding Source #
decodeNodeToClient :: CodecConfig ByronBlock -> BlockNodeToClientVersion ByronBlock -> forall s. Decoder s ApplyMempoolPayloadErr Source #
encodeNodeToClient :: CodecConfig ByronBlock -> BlockNodeToClientVersion ByronBlock -> SlotNo -> Encoding Source #
decodeNodeToClient :: CodecConfig ByronBlock -> BlockNodeToClientVersion ByronBlock -> forall s. Decoder s SlotNo Source #
encodeNodeToClient :: CodecConfig ByronBlock -> BlockNodeToClientVersion ByronBlock -> ByronBlock -> Encoding Source #
decodeNodeToClient :: CodecConfig ByronBlock -> BlockNodeToClientVersion ByronBlock -> forall s. Decoder s ByronBlock Source #
encodeDisk :: CodecConfig ByronBlock -> ByronBlock -> Encoding Source #
reconstructPrefixLen :: proxy ( Header ByronBlock ) -> PrefixLen Source #
reconstructNestedCtxt :: proxy ( Header ByronBlock ) -> ShortByteString -> SizeInBytes -> SomeSecond ( NestedCtxt Header ) ByronBlock Source #
Serialised uses CBOR-in-CBOR by default.
encodeNodeToNode :: CodecConfig ByronBlock -> BlockNodeToNodeVersion ByronBlock -> Serialised ByronBlock -> Encoding Source #
decodeNodeToNode :: CodecConfig ByronBlock -> BlockNodeToNodeVersion ByronBlock -> forall s. Decoder s ( Serialised ByronBlock ) Source #
encodeNodeToNode :: CodecConfig ByronBlock -> BlockNodeToNodeVersion ByronBlock -> SerialisedHeader ByronBlock -> Encoding Source #
decodeNodeToNode :: CodecConfig ByronBlock -> BlockNodeToNodeVersion ByronBlock -> forall s. Decoder s ( SerialisedHeader ByronBlock ) Source #
No CBOR-in-CBOR, because we check for canonical encodings, which means we can use the recomputed encoding for the annotation.
encodeNodeToNode :: CodecConfig ByronBlock -> BlockNodeToNodeVersion ByronBlock -> GenTx ByronBlock -> Encoding Source #
decodeNodeToNode :: CodecConfig ByronBlock -> BlockNodeToNodeVersion ByronBlock -> forall s. Decoder s ( GenTx ByronBlock ) Source #
encodeNodeToNode :: CodecConfig ByronBlock -> BlockNodeToNodeVersion ByronBlock -> GenTxId ByronBlock -> Encoding Source #
decodeNodeToNode :: CodecConfig ByronBlock -> BlockNodeToNodeVersion ByronBlock -> forall s. Decoder s ( GenTxId ByronBlock ) Source #
encodeNodeToNode :: CodecConfig ByronBlock -> BlockNodeToNodeVersion ByronBlock -> Header ByronBlock -> Encoding Source #
decodeNodeToNode :: CodecConfig ByronBlock -> BlockNodeToNodeVersion ByronBlock -> forall s. Decoder s ( Header ByronBlock ) Source #
encodeNodeToClient :: CodecConfig ByronBlock -> BlockNodeToClientVersion ByronBlock -> Serialised ByronBlock -> Encoding Source #
decodeNodeToClient :: CodecConfig ByronBlock -> BlockNodeToClientVersion ByronBlock -> forall s. Decoder s ( Serialised ByronBlock ) Source #
encodeNodeToClient :: CodecConfig ByronBlock -> BlockNodeToClientVersion ByronBlock -> GenTx ByronBlock -> Encoding Source #
decodeNodeToClient :: CodecConfig ByronBlock -> BlockNodeToClientVersion ByronBlock -> forall s. Decoder s ( GenTx ByronBlock ) Source #
encodeNodeToClient :: CodecConfig ByronBlock -> BlockNodeToClientVersion ByronBlock -> GenTxId ByronBlock -> Encoding Source #
decodeNodeToClient :: CodecConfig ByronBlock -> BlockNodeToClientVersion ByronBlock -> forall s. Decoder s ( GenTxId ByronBlock ) Source #
encodeResult :: CodecConfig ByronBlock -> BlockNodeToClientVersion ByronBlock -> BlockQuery ByronBlock result -> result -> Encoding Source #
decodeResult :: CodecConfig ByronBlock -> BlockNodeToClientVersion ByronBlock -> BlockQuery ByronBlock result -> forall s. Decoder s result Source #
ChainDepState (BlockProtocol ByronBlock)
ChainDepState
BlockProtocol
encodeDisk :: CodecConfig ByronBlock -> PBftState PBftByronCrypto -> Encoding Source #
encodeDisk :: CodecConfig ByronBlock -> AnnTip ByronBlock -> Encoding Source #
encodeDisk :: CodecConfig ByronBlock -> LedgerState ByronBlock -> Encoding Source #
decodeDisk :: CodecConfig ByronBlock -> forall s. Decoder s ( PBftState PBftByronCrypto ) Source #
decodeDisk :: CodecConfig ByronBlock -> forall s. Decoder s ( AnnTip ByronBlock ) Source #
decodeDisk :: CodecConfig ByronBlock -> forall s. Decoder s ( LedgerState ByronBlock ) Source #
encodeNodeToClient :: CodecConfig ByronBlock -> BlockNodeToClientVersion ByronBlock -> SomeSecond BlockQuery ByronBlock -> Encoding Source #
decodeNodeToClient :: CodecConfig ByronBlock -> BlockNodeToClientVersion ByronBlock -> forall s. Decoder s ( SomeSecond BlockQuery ByronBlock ) Source #
decodeDisk :: CodecConfig ByronBlock -> forall s. Decoder s ( ByteString -> ByronBlock ) Source #
encodeDiskDepIx :: CodecConfig ByronBlock -> SomeSecond ( NestedCtxt Header ) ByronBlock -> Encoding Source #
encodeDiskDep :: CodecConfig ByronBlock -> NestedCtxt Header ByronBlock a -> a -> Encoding Source #
decodeDiskDepIx :: CodecConfig ByronBlock -> Decoder s ( SomeSecond ( NestedCtxt Header ) ByronBlock ) Source #
decodeDiskDep :: CodecConfig ByronBlock -> NestedCtxt Header ByronBlock a -> forall s. Decoder s ( ByteString -> a) Source #