Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
-
data
TxSeq
era
where
- TxSeq' !( StrictSeq ( Tx era)) ByteString ByteString ByteString
- pattern TxSeq :: forall era. ( Era era, SafeToHash ( Witnesses era)) => StrictSeq ( Tx era) -> TxSeq era
- constructMetadata :: forall era. Int -> Map Int ( Annotator ( AuxiliaryData era)) -> Seq ( Maybe ( Annotator ( AuxiliaryData era)))
- txSeqTxns :: TxSeq era -> StrictSeq ( Tx era)
- bbHash :: forall era. Era era => TxSeq era -> Hash ( Crypto era) EraIndependentBlockBody
- bBodySize :: ToCBORGroup txSeq => txSeq -> Int
- slotToNonce :: SlotNo -> Nonce
- incrBlocks :: Bool -> KeyHash ' StakePool crypto -> BlocksMade crypto -> BlocksMade crypto
- coreAuxDataBytes :: forall era. SafeToHash ( AuxiliaryData era) => Tx era -> StrictMaybe ByteString
- txSeqDecoder :: forall era. BlockAnn era => Bool -> forall s. Decoder s ( Annotator ( TxSeq era))
Documentation
TxSeq' !( StrictSeq ( Tx era)) ByteString ByteString ByteString |
pattern TxSeq :: forall era. ( Era era, SafeToHash ( Witnesses era)) => StrictSeq ( Tx era) -> TxSeq era |
Constuct a TxSeq (with all it bytes) from just Core.Tx's |
Instances
constructMetadata :: forall era. Int -> Map Int ( Annotator ( AuxiliaryData era)) -> Seq ( Maybe ( Annotator ( AuxiliaryData era))) Source #
Given a size and a mapping from indices to maybe metadata, return a sequence whose size is the size paramater and whose non-Nothing values correspond to the values in the mapping.
bbHash :: forall era. Era era => TxSeq era -> Hash ( Crypto era) EraIndependentBlockBody Source #
Hash a given block body
bBodySize :: ToCBORGroup txSeq => txSeq -> Int Source #
slotToNonce :: SlotNo -> Nonce Source #
incrBlocks :: Bool -> KeyHash ' StakePool crypto -> BlocksMade crypto -> BlocksMade crypto Source #
coreAuxDataBytes :: forall era. SafeToHash ( AuxiliaryData era) => Tx era -> StrictMaybe ByteString Source #