ouroboros-consensus-cardano-0.20.0.0: The instantation of the Ouroboros consensus layer used by Cardano
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cardano.Api.Key

Synopsis

Documentation

data family AsType t Source #

A family of singleton types used in this API to indicate which type to use where it would otherwise be ambiguous or merely unclear.

Values of this type are passed to deserialisation functions for example.

Instances

Instances details
data AsType ByronKey Source # 
Instance details

Defined in Cardano.Api.KeysByron

data AsType ByronKeyLegacy Source # 
Instance details

Defined in Cardano.Api.KeysByron

data AsType KesKey Source # 
Instance details

Defined in Cardano.Api.KeysPraos

data AsType VrfKey Source # 
Instance details

Defined in Cardano.Api.KeysPraos

data AsType GenesisDelegateExtendedKey Source # 
Instance details

Defined in Cardano.Api.KeysShelley

data AsType GenesisDelegateKey Source # 
Instance details

Defined in Cardano.Api.KeysShelley

data AsType GenesisExtendedKey Source # 
Instance details

Defined in Cardano.Api.KeysShelley

data AsType GenesisKey Source # 
Instance details

Defined in Cardano.Api.KeysShelley

data AsType GenesisUTxOKey Source # 
Instance details

Defined in Cardano.Api.KeysShelley

data AsType PaymentExtendedKey Source # 
Instance details

Defined in Cardano.Api.KeysShelley

data AsType PaymentKey Source # 
Instance details

Defined in Cardano.Api.KeysShelley

data AsType StakeExtendedKey Source # 
Instance details

Defined in Cardano.Api.KeysShelley

data AsType StakeKey Source # 
Instance details

Defined in Cardano.Api.KeysShelley

data AsType StakePoolKey Source # 
Instance details

Defined in Cardano.Api.KeysShelley

data AsType OperationalCertificate Source # 
Instance details

Defined in Cardano.Api.OperationalCertificate

data AsType OperationalCertificateIssueCounter Source # 
Instance details

Defined in Cardano.Api.OperationalCertificate

data AsType TextEnvelope Source # 
Instance details

Defined in Cardano.Api.SerialiseTextEnvelope

data AsType (Hash a) Source # 
Instance details

Defined in Cardano.Api.Any

data AsType (Hash a) = AsHash (AsType a)
data AsType (SigningKey a) Source # 
Instance details

Defined in Cardano.Api.Key

data AsType (VerificationKey a) Source # 
Instance details

Defined in Cardano.Api.Key

class CastSigningKeyRole keyroleA keyroleB where Source #

Methods

castSigningKeySigningKey keyroleA → SigningKey keyroleB Source #

Change the role of a SigningKey, if the representation permits.

class CastVerificationKeyRole keyroleA keyroleB where Source #

Some key roles share the same representation and it is sometimes legitimate to change the role of a key.

Methods

castVerificationKeyVerificationKey keyroleA → VerificationKey keyroleB Source #

Change the role of a VerificationKey, if the representation permits.

Instances

Instances details
CastVerificationKeyRole ByronKey PaymentExtendedKey Source # 
Instance details

Defined in Cardano.Api.KeysByron

CastVerificationKeyRole ByronKey PaymentKey Source # 
Instance details

Defined in Cardano.Api.KeysByron

CastVerificationKeyRole ByronKeyLegacy ByronKey Source # 
Instance details

Defined in Cardano.Api.KeysByron

CastVerificationKeyRole GenesisDelegateExtendedKey GenesisDelegateKey Source # 
Instance details

Defined in Cardano.Api.KeysShelley

CastVerificationKeyRole GenesisDelegateKey StakePoolKey Source # 
Instance details

Defined in Cardano.Api.KeysShelley

CastVerificationKeyRole GenesisExtendedKey GenesisKey Source # 
Instance details

Defined in Cardano.Api.KeysShelley

CastVerificationKeyRole GenesisUTxOKey PaymentKey Source # 
Instance details

Defined in Cardano.Api.KeysShelley

CastVerificationKeyRole PaymentExtendedKey PaymentKey Source # 
Instance details

Defined in Cardano.Api.KeysShelley

CastVerificationKeyRole StakeExtendedKey StakeKey Source # 
Instance details

Defined in Cardano.Api.KeysShelley

class (Eq (VerificationKey keyrole), Show (VerificationKey keyrole), SerialiseAsRawBytes (Hash keyrole), HasTextEnvelope (VerificationKey keyrole), HasTextEnvelope (SigningKey keyrole)) ⇒ Key keyrole where Source #

An interface for cryptographic keys used for signatures with a SigningKey and a VerificationKey key.

This interface does not provide actual signing or verifying functions since this API is concerned with the management of keys: generating and serialising.

Associated Types

data VerificationKey keyrole ∷ Type Source #

The type of cryptographic verification key, for each key role.

data SigningKey keyrole ∷ Type Source #

The type of cryptographic signing key, for each key role.

Methods

getVerificationKeySigningKey keyrole → VerificationKey keyrole Source #

Get the corresponding verification key from a signing key.

deterministicSigningKeyAsType keyrole → SeedSigningKey keyrole Source #

Generate a SigningKey deterministically, given a Seed. The required size of the seed is given by deterministicSigningKeySeedSize.

deterministicSigningKeySeedSizeAsType keyrole → Word Source #

verificationKeyHashVerificationKey keyrole → Hash keyrole Source #

Instances

Instances details
Key ByronKey Source # 
Instance details

Defined in Cardano.Api.KeysByron

Key ByronKeyLegacy Source # 
Instance details

Defined in Cardano.Api.KeysByron

Key KesKey Source # 
Instance details

Defined in Cardano.Api.KeysPraos

Key VrfKey Source # 
Instance details

Defined in Cardano.Api.KeysPraos

Key GenesisDelegateExtendedKey Source # 
Instance details

Defined in Cardano.Api.KeysShelley

Key GenesisDelegateKey Source # 
Instance details

Defined in Cardano.Api.KeysShelley

Key GenesisExtendedKey Source # 
Instance details

Defined in Cardano.Api.KeysShelley

Key GenesisKey Source # 
Instance details

Defined in Cardano.Api.KeysShelley

Key GenesisUTxOKey Source # 
Instance details

Defined in Cardano.Api.KeysShelley

Key PaymentExtendedKey Source # 
Instance details

Defined in Cardano.Api.KeysShelley

Key PaymentKey Source # 
Instance details

Defined in Cardano.Api.KeysShelley

Key StakeExtendedKey Source # 
Instance details

Defined in Cardano.Api.KeysShelley

Key StakeKey Source # 
Instance details

Defined in Cardano.Api.KeysShelley

Key StakePoolKey Source # 
Instance details

Defined in Cardano.Api.KeysShelley

generateSigningKeyKey keyrole ⇒ AsType keyrole → IO (SigningKey keyrole) Source #

Generate a SigningKey using a seed from operating system entropy.