← Back

Modules

Leios

  • Abstract
  • Base
  • Blocks
  • Config
  • Defaults
  • FFD
  • Foreign.BaseTypes
  • Foreign.HsTypes
  • Foreign.Types
  • Foreign.Util
  • KeyRegistration
  • Network
  • Prelude
  • Protocol
  • Short
  • Short.Decidable
  • Short.Trace.Verifier
  • Short.Trace.Verifier.Test
  • Simplified
  • Simplified.Deterministic
  • SpecStructure
  • Traces
  • Voting
  • VRF
123456789101112131415161718
open import Leios.Prelude
open import Tactic.Defaults
open import Tactic.Derive.DecEq
 
module Leios.Config where
 
data BlockType : Type where
IB EB VT : BlockType
 
unquoteDecl DecEq-BlockType = derive-DecEq ((quote BlockType , DecEq-BlockType) ∷ [])
 
record Params : Type where
field numberOfParties : ℕ
sutId : Fin numberOfParties
stakeDistribution : TotalMap (Fin numberOfParties) ℕ
stageLength : ℕ
⦃ NonZero-stageLength ⦄ : NonZero stageLength
winning-slots : ℙ (BlockType × ℕ)