cardano-ledger-shelley-test-1.6.0.0: Test helpers from cardano-ledger-shelley exposed to other packages
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Cardano.Ledger.Shelley.Examples.Consensus

Synopsis

Documentation

defaultShelleyLedgerExamples ∷ ∀ era. (EraSegWits era, EraGov era, PredicateFailure (EraRule "DELEGS" era) ~ ShelleyDelegsPredFailure era, PredicateFailure (EraRule "LEDGER" era) ~ ShelleyLedgerPredFailure era, Default (StashedAVVMAddresses era), ProtVerAtMost era 4) ⇒ (TxBody era → [KeyPair 'Witness] → TxWits era) → (ShelleyTx era → Tx era) → Value era → TxBody era → TxAuxData era → TranslationContext era → ShelleyLedgerExamples era Source #

mkKeyHash ∷ ∀ discriminator. IntKeyHash discriminator Source #

exampleTx ∷ ∀ era. EraTx era ⇒ (TxBody era → [KeyPair 'Witness] → TxWits era) → TxBody era → TxAuxData era → ShelleyTx era Source #

This is not a valid transaction. We don't care, we are only interested in serialisation, not validation.

testShelleyGenesisShelleyGenesis Source #

These are dummy values.

exampleNewEpochState ∷ ∀ era. (EraTxOut era, EraGov era, Default (StashedAVVMAddresses era)) ⇒ Value era → PParams era → PParams era → NewEpochState era Source #

This is probably not a valid ledger. We don't care, we are only interested in serialisation, not validation.

ledgerExamplesShelleyShelleyLedgerExamples ShelleyEra Source #

ShelleyLedgerExamples for Shelley era

mkWitnessesPreAlonzoEraTx era ⇒ Proxy era → TxBody era → [KeyPair 'Witness] → ShelleyTxWits era Source #

mkDSIGNKeyPair ∷ ∀ kd. Word8KeyPair kd Source #

mkKeyPair' from Test.Cardano.Ledger.Shelley.Utils doesn't work for real crypto: https://github.com/intersectmbo/cardano-ledger/issues/1770

mkVRFKeyPair ∷ ∀ c. Crypto c ⇒ Proxy c → Word8VRFKeyPair c Source #