Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- genTxCert ∷ ∀ era. (EraGen era, ProtVerAtMost era 8) ⇒ Constants → KeySpace era → PParams era → AccountState → CertState era → SlotNo → Gen (Maybe (TxCert era, CertCred era))
- data CertCred era
- = CoreKeyCred [GenesisKeyPair MockCrypto]
- | StakeCred (KeyPair 'Staking)
- | PoolCred (KeyPair 'StakePool)
- | ScriptCred (Script era, Script era)
- | DelegateCred [KeyPair 'GenesisDelegate]
- | NoCred
Documentation
genTxCert ∷ ∀ era. (EraGen era, ProtVerAtMost era 8) ⇒ Constants → KeySpace era → PParams era → AccountState → CertState era → SlotNo → Gen (Maybe (TxCert era, CertCred era)) Source #
Occasionally generate a valid certificate
Returning Nothing
indicates a failure to generate a value, usually due to lack of
available values from the pre-populated (e.g. key) spaces.
A Just
represents a successfully generated value.
Different generators return witnesses that are either genesis or regular keys.
Note: we register keys and pools more often than deregistering/retiring them, and we generate more delegations than registrations of keys/pools.
CoreKeyCred [GenesisKeyPair MockCrypto] | |
StakeCred (KeyPair 'Staking) | |
PoolCred (KeyPair 'StakePool) | |
ScriptCred (Script era, Script era) | |
DelegateCred [KeyPair 'GenesisDelegate] | |
NoCred |