Safe Haskell | None |
---|---|
Language | Haskell2010 |
The NetworkId
type and related functions
Synopsis
- data NetworkId
- newtype NetworkMagic = NetworkMagic {}
- fromNetworkMagic :: NetworkMagic -> NetworkId
- toNetworkMagic :: NetworkId -> NetworkMagic
- mainnetNetworkMagic :: NetworkMagic
- toByronProtocolMagicId :: NetworkId -> ProtocolMagicId
- toByronNetworkMagic :: NetworkId -> NetworkMagic
- toByronRequiresNetworkMagic :: NetworkId -> RequiresNetworkMagic
- toShelleyNetwork :: NetworkId -> Network
- fromShelleyNetwork :: Network -> NetworkMagic -> NetworkId
Network types
newtype NetworkMagic Source #
NetworkMagic is used to differentiate between different networks during the initial handshake.
Instances
Internal conversion functions
toShelleyNetwork :: NetworkId -> Network Source #
fromShelleyNetwork :: Network -> NetworkMagic -> NetworkId Source #