byron-spec-ledger-1.0.1.0: Executable specification of Cardano ledger
Safe HaskellSafe-Inferred
LanguageHaskell2010

Byron.Spec.Ledger.Core.Omniscient

Description

Functions that are intended to be used in tests, but not in the executable specifications. These functions are not possible in practice (like recovering the signed data from the signature only), but are possible for the abstract data we use in the specifications.

Synopsis

Documentation

signatureVKeySig a → VKey Source #

Extract the verifying key of a signature. This is useful when elaborating an abstract signature into a concrete one.

signatureDataSig a → a Source #

Extract the signature data.

skeyVKeySKey Source #

Get the signing key from the verification key. We use this in the generators, where we need to generate signed data for a given verification key (e.g. one that appears in the delegation map) for which we don't have the signing key.

signWithGenesisKeyVKeyGenesis → a → Sig a Source #

Sign using a genesis verifying key.

See skey for details about situations where this function is used.