Copyright | © 2018-2022 IOHK |
---|---|
License | Apache-2.0 |
Safe Haskell | None |
Language | Haskell2010 |
Provides the
ProtocolMagic
type and related constants.
Synopsis
- newtype ProtocolMagic = ProtocolMagic { }
- mainnetMagic :: ProtocolMagic
- testnetMagic :: forall pm. KnownNat pm => ProtocolMagic
Documentation
newtype ProtocolMagic Source #
Magic constant associated with a given network.
Instances
mainnetMagic :: ProtocolMagic Source #
Hard-coded protocol magic for the Byron MainNet
testnetMagic :: forall pm. KnownNat pm => ProtocolMagic Source #
Derive testnet magic from a type-level Nat