cardano-protocol-tpraos-1.4.0.0: Cardano Protocol: Transitional Praos
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Cardano.Protocol.TPraos.Create

Synopsis

Documentation

data AllIssuerKeys c (r ∷ KeyRole) Source #

Instances

Instances details
(Show (SignKeyVRF (VRF c)), Show (VerKeyVRF (VRF c)), Show (VerKeyKES (KES c))) ⇒ Show (AllIssuerKeys c r) Source # 
Instance details

Defined in Test.Cardano.Protocol.TPraos.Create

data KESKeyPair c Source #

Constructors

KESKeyPair 

Instances

Instances details
Show (VerKeyKES (KES c)) ⇒ Show (KESKeyPair c) Source # 
Instance details

Defined in Test.Cardano.Protocol.Crypto.KES

data VRFKeyPair c Source #

Constructors

VRFKeyPair 

Fields

Instances

Instances details
(Show (SignKeyVRF (VRF c)), Show (VerKeyVRF (VRF c))) ⇒ Show (VRFKeyPair c) Source # 
Instance details

Defined in Test.Cardano.Protocol.Crypto.VRF

mkOCert ∷ ∀ c r. Crypto c ⇒ AllIssuerKeys c r → Word64KESPeriodOCert c Source #

mkBHeader Source #

Arguments

∷ (Crypto c, Signable (KES c) (BHBody c)) 
AllIssuerKeys c r 
Word 
Word

KES period of key registration

BHBody c 
BHeader c 

mkBlock Source #

Arguments

∷ ∀ era r c. (Crypto c, EraSegWits era, Signable (VRF c) Seed, Signable (KES c) (BHBody c)) 
HashHeader

Hash of previous block

AllIssuerKeys c r

All keys in the stake pool

→ [Tx era]

Transactions to record

SlotNo

Current slot

BlockNo

Block numberchain lengthchain "difficulty"

Nonce

EpochNo nonce

Word

Period of KES (key evolving signature scheme)

Word

KES period of key registration

OCert c

Operational certificate

Block (BHeader c) era 

mkBlockFakeVRF Source #

Arguments

∷ ∀ era r c. (Crypto c, EraSegWits era, Signable (VRF c) (WithResult Seed), Signable (KES c) (BHBody c)) 
HashHeader

Hash of previous block

AllIssuerKeys c r

All keys in the stake pool

→ [Tx era]

Transactions to record

SlotNo

Current slot

BlockNo

Block number/chain length/chain "difficulty"

Nonce

EpochNo nonce

NatNonce

Block nonce

UnitInterval

Praos leader value

Word

Period of KES (key evolving signature scheme)

Word

KES period of key registration

OCert c

Operational certificate

Block (BHeader c) era 

Create a block with a faked VRF result.

evolveKESUntil Source #

Arguments

∷ (UnsoundPureKESAlgorithm c, ContextKES c ~ ()) 
UnsoundPureSignKeyKES c 
KESPeriod

Current KES period

KESPeriod

Target KES period

Maybe (UnsoundPureSignKeyKES c) 

Try to evolve KES key until specific KES period is reached, given the current KES period.