bcc-api-1.99.0
Safe HaskellNone
LanguageHaskell2010

Bcc.Api.Key

Synopsis

Documentation

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 → Seed → SigningKey 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 StakePoolKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Key VestedDelegateExtendedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Key VestedDelegateKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Key VestedExtendedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Key VestedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Key GenesisVestedDelegateExtendedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Key GenesisVestedDelegateKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Key GenesisVestedExtendedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Key GenesisVestedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Key VestedUTxOKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Key GenesisUTxOKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Key GenesisDelegateExtendedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Key GenesisDelegateKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Key GenesisExtendedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Key GenesisKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Key StakeExtendedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Key StakeKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Key PaymentExtendedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Key PaymentKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

Key ColeKeyLegacy Source # 
Instance details

Defined in Bcc.Api.KeysCole

Key ColeKey Source # 
Instance details

Defined in Bcc.Api.KeysCole

Key VrfKey Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

Key KesKey Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

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

Generate a SigningKey using a seed from operating system entropy.

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 VestedDelegateExtendedKey VestedDelegateKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

CastVerificationKeyRole VestedDelegateKey StakePoolKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

CastVerificationKeyRole VestedExtendedKey VestedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

CastVerificationKeyRole GenesisVestedDelegateExtendedKey GenesisVestedDelegateKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

CastVerificationKeyRole GenesisVestedDelegateKey StakePoolKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

CastVerificationKeyRole GenesisVestedExtendedKey GenesisVestedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

CastVerificationKeyRole VestedUTxOKey PaymentKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

CastVerificationKeyRole GenesisUTxOKey PaymentKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

CastVerificationKeyRole GenesisDelegateExtendedKey GenesisDelegateKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

CastVerificationKeyRole GenesisDelegateKey StakePoolKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

CastVerificationKeyRole GenesisExtendedKey GenesisKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

CastVerificationKeyRole StakeExtendedKey StakeKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

CastVerificationKeyRole PaymentExtendedKey PaymentKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

CastVerificationKeyRole ColeKeyLegacy ColeKey Source # 
Instance details

Defined in Bcc.Api.KeysCole

CastVerificationKeyRole ColeKey PaymentExtendedKey Source # 
Instance details

Defined in Bcc.Api.KeysCole

CastVerificationKeyRole ColeKey PaymentKey Source # 
Instance details

Defined in Bcc.Api.KeysCole

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 AurumEra Source # 
Instance details

Defined in Bcc.Api.Eras

data AsType JenEra Source # 
Instance details

Defined in Bcc.Api.Eras

data AsType EvieEra Source # 
Instance details

Defined in Bcc.Api.Eras

data AsType SophieEra Source # 
Instance details

Defined in Bcc.Api.Eras

data AsType ColeEra Source # 
Instance details

Defined in Bcc.Api.Eras

data AsType TextEnvelope Source # 
Instance details

Defined in Bcc.Api.SerialiseTextEnvelope

data AsType TxMetadata Source # 
Instance details

Defined in Bcc.Api.TxMetadata

data AsType StakePoolKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType VestedDelegateExtendedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType VestedDelegateKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType VestedExtendedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType VestedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType GenesisVestedDelegateExtendedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType GenesisVestedDelegateKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType GenesisVestedExtendedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType GenesisVestedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType VestedUTxOKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType GenesisUTxOKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType GenesisDelegateExtendedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType GenesisDelegateKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType GenesisExtendedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType GenesisKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType StakeExtendedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType StakeKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType PaymentExtendedKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType PaymentKey Source # 
Instance details

Defined in Bcc.Api.KeysSophie

data AsType ScriptData Source # 
Instance details

Defined in Bcc.Api.ScriptData

data AsType ScriptHash Source # 
Instance details

Defined in Bcc.Api.Script

data AsType ScriptInAnyLang Source # 
Instance details

Defined in Bcc.Api.Script

data AsType ZerepochScriptV1 Source # 
Instance details

Defined in Bcc.Api.Script

data AsType SimpleScriptV2 Source # 
Instance details

Defined in Bcc.Api.Script

data AsType SimpleScriptV1 Source # 
Instance details

Defined in Bcc.Api.Script

data AsType ColeKeyLegacy Source # 
Instance details

Defined in Bcc.Api.KeysCole

data AsType ColeKey Source # 
Instance details

Defined in Bcc.Api.KeysCole

data AsType ColeVote Source # 
Instance details

Defined in Bcc.Api.SpecialCole

data AsType ColeUpdateProposal Source # 
Instance details

Defined in Bcc.Api.SpecialCole

data AsType VrfKey Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

data AsType KesKey Source # 
Instance details

Defined in Bcc.Api.KeysOptimum

data AsType StakePoolMetadata Source # 
Instance details

Defined in Bcc.Api.StakePoolMetadata

data AsType StakeAddress Source # 
Instance details

Defined in Bcc.Api.Address

data AsType AddressAny Source # 
Instance details

Defined in Bcc.Api.Address

data AsType SophieAddr Source # 
Instance details

Defined in Bcc.Api.Address

data AsType ColeAddr Source # 
Instance details

Defined in Bcc.Api.Address

data AsType AssetName Source # 
Instance details

Defined in Bcc.Api.Value

data AsType PolicyId Source # 
Instance details

Defined in Bcc.Api.Value

data AsType UpdateProposal Source # 
Instance details

Defined in Bcc.Api.ProtocolParameters

data AsType OptimumNonce Source # 
Instance details

Defined in Bcc.Api.ProtocolParameters

data AsType Certificate Source # 
Instance details

Defined in Bcc.Api.Certificate

data AsType TxId Source # 
Instance details

Defined in Bcc.Api.TxBody

data AsType BlockHeader Source # 
Instance details

Defined in Bcc.Api.Block

data AsType OperationalCertificateIssueCounter Source # 
Instance details

Defined in Bcc.Api.OperationalCertificate

data AsType OperationalCertificate Source # 
Instance details

Defined in Bcc.Api.OperationalCertificate

data AsType (Hash a) Source # 
Instance details

Defined in Bcc.Api.Hash

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

Defined in Bcc.Api.Key

data AsType (SigningKey a) Source # 
Instance details

Defined in Bcc.Api.Key

data AsType (ZerepochScript lang) Source # 
Instance details

Defined in Bcc.Api.Script

data AsType (SimpleScript lang) Source # 
Instance details

Defined in Bcc.Api.Script

data AsType (ScriptInEra era) Source # 
Instance details

Defined in Bcc.Api.Script

data AsType (Script lang) Source # 
Instance details

Defined in Bcc.Api.Script

data AsType (Script lang) = AsScript (AsType lang)
data AsType (AddressInEra era) Source # 
Instance details

Defined in Bcc.Api.Address

data AsType (Address addrtype) Source # 
Instance details

Defined in Bcc.Api.Address

data AsType (Address addrtype) = AsAddress (AsType addrtype)
data AsType (TxBody era) Source # 
Instance details

Defined in Bcc.Api.TxBody

data AsType (TxBody era) = AsTxBody (AsType era)
data AsType (KeyWitness era) Source # 
Instance details

Defined in Bcc.Api.Tx

data AsType (Tx era) Source # 
Instance details

Defined in Bcc.Api.Tx

data AsType (Tx era) = AsTx (AsType era)