Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Hydra.Tx.HeadId
Synopsis
- newtype HeadId = UnsafeHeadId ByteString
- currencySymbolToHeadId :: MonadFail m => CurrencySymbol -> m HeadId
- headIdToPolicyId :: MonadFail m => HeadId -> m PolicyId
- headIdToCurrencySymbol :: HeadId -> CurrencySymbol
- mkHeadId :: PolicyId -> HeadId
- newtype HeadSeed = UnsafeHeadSeed ByteString
- headSeedToTxIn :: MonadFail m => HeadSeed -> m TxIn
- txInToHeadSeed :: TxIn -> HeadSeed
HeadId
Uniquely identifies a Hydra Head.
Constructors
UnsafeHeadId ByteString |
Instances
currencySymbolToHeadId :: MonadFail m => CurrencySymbol -> m HeadId Source #
headIdToPolicyId :: MonadFail m => HeadId -> m PolicyId Source #
headIdToCurrencySymbol :: HeadId -> CurrencySymbol Source #
HeadSeed
Unique seed to create a HeadId
XXX: This might actually be the HeadId
to the protocol and users? Then the
policy id of the cardano-specific implementation (being the result of minting
policy + seed) stays internal. A drawback is, that the seed is not such a
good "key" to find things about this head on explorers and indexers.
Constructors
UnsafeHeadSeed ByteString |
Instances
headSeedToTxIn :: MonadFail m => HeadSeed -> m TxIn Source #
txInToHeadSeed :: TxIn -> HeadSeed Source #