Safe Haskell | None |
---|---|
Language | Haskell2010 |
Cardano.Crypto.ProtocolMagic
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 #
Constructors
ProtocolMagicId | |
Fields |
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
).
Constructors
AProtocolMagic | |
Fields |
Instances
data RequiresNetworkMagic Source #
Bool-isomorphic flag indicating whether we're on testnet or mainnet/staging.
Constructors
RequiresNoMagic | |
RequiresMagic |
Instances
getProtocolMagic :: AProtocolMagic a -> Word32 Source #