Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- newtype ProtocolMagicId = ProtocolMagicId {}
- type ProtocolMagic = AProtocolMagic ()
- data AProtocolMagic a = AProtocolMagic {}
- data RequiresNetworkMagic
- getProtocolMagic ∷ AProtocolMagic a → Word32
- getProtocolMagicId ∷ AProtocolMagic a → ProtocolMagicId
Documentation
newtype ProtocolMagicId Source #
Instances
type ProtocolMagic = AProtocolMagic () Source #
data AProtocolMagic a Source #
Magic number which should differ for different clusters. It's defined here, because it's used for signing. It also used for other things (e. g. it's part of a serialized block).
mhueschen: As part of CO-353 I am adding getRequiresNetworkMagic
in
order to pipe configuration to functions which must generate & verify
Addresses (which now must be aware of NetworkMagic
).
Instances
data RequiresNetworkMagic Source #
Bool-isomorphic flag indicating whether we're on testnet or mainnet/staging.