@@ -21,10 +21,10 @@ open import Ledger.PParams crypto es ss using (ProtVer)
2121
2222record BlockStructure : Type₁ where
2323 field
24-
2524\end{code}
2625
27- \begin{figure*}[htb]
26+ \begin{figure*}[h]
27+ \begin{AgdaAlign}
2828\emph{Abstract types}
2929\begin{code}
3030 HashHeader : Type -- hash of a block header
@@ -36,29 +36,43 @@ record BlockStructure : Type₁ where
3636 BlockNo = ℕ -- block number
3737\end{code}
3838\emph{Operational Certificate}
39+ \begin{AgdaSuppressSpace}
3940\begin{code}
4041 record OCert : Type where
42+ \end{code}
43+ \begin{code}[hide]
4144 constructor ⟦_,_,_,_⟧ᵒᶜ
42- field vkₕ : VKeyᵏ -- operational (hot) key
43- n : ℕ -- certificate issue number
44- c₀ : KESPeriod -- start KES period
45- σ : Sigˢ -- cold key signature
45+ field
46+ \end{code}
47+ \begin{code}
48+ vkₕ : VKeyᵏ -- operational (hot) key
49+ n : ℕ -- certificate issue number
50+ c₀ : KESPeriod -- start KES period
51+ σ : Sigˢ -- cold key signature
4652\end{code}
53+ \end{AgdaSuppressSpace}
4754\emph{Block Header Body}
55+ \begin{AgdaSuppressSpace}
4856\begin{code}
4957 record BHBody : Type where
50- field prevHeader : Maybe HashHeader -- hash of previous block header
51- issuerVk : VKeyˢ -- block issuer
52- vrfVk : VKeyᵛ -- VRF verification key
53- blockNo : BlockNo -- block number
54- slot : Slot -- block slot
55- vrfRes : VRFRes -- VRF result value
56- vrfPrf : Proof -- VRF proof
57- bodySize : ℕ -- size of the block body
58- bodyHash : HashBBody -- block body hash
59- oc : OCert -- operational certificate
60- pv : ProtVer -- protocol version
6158\end{code}
59+ \begin{code}[hide]
60+ field
61+ \end{code}
62+ \begin{code}
63+ prevHeader : Maybe HashHeader -- hash of previous block header
64+ issuerVk : VKeyˢ -- block issuer
65+ vrfVk : VKeyᵛ -- VRF verification key
66+ blockNo : BlockNo -- block number
67+ slot : Slot -- block slot
68+ vrfRes : VRFRes -- VRF result value
69+ vrfPrf : Proof -- VRF proof
70+ bodySize : ℕ -- size of the block body
71+ bodyHash : HashBBody -- block body hash
72+ oc : OCert -- operational certificate
73+ pv : ProtVer -- protocol version
74+ \end{code}
75+ \end{AgdaSuppressSpace}
6276\emph{Block Types}
6377\begin{code}
6478 BHeader = BHBody × Sigᵏ -- block header
@@ -76,6 +90,7 @@ record BlockStructure : Type₁ where
7690 serHashToℕ : SerHash → ∃[ n ] n < 2 ^ 512 -- [0, 2^512) (64-byte VRF output)
7791 serHashToNonce : SerHash → Nonce
7892\end{code}
93+ \end{AgdaAlign}
7994\caption{Block definitions}
8095\label{fig:defs:blocks}
8196\end{figure*}
0 commit comments