Skip to content

Commit 481ab0e

Browse files
committed
Reorganize some base types
1 parent a1b749e commit 481ab0e

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

ouroboros-consensus-cardano/cddl/base.cddl

+9-7
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,12 @@ ns7<byron, shelley, allegra, mary, alonzo, babbage, conway>
1919
;; Blockchain types
2020
pastEra = [bound, bound]
2121
currentEra<st> = [bound, st]
22-
blockno = word64
2322
bound = [relativeTime, slotno, epochno]
24-
coin = word64
25-
epochno = word64
2623
eraIdx = word8
27-
hash = bstr
2824
individualPoolStake = [stake, hash]
29-
keyhash = bstr
3025
nonce = [0] / [1, hash]
3126
point = [] / [ slotno, hash ]
3227
poolDistr = map<keyhash, individualPoolStake>
33-
rational = [int, int]
34-
relativeTime = int
3528
slotno = word64
3629
stake = rational
3730

@@ -45,6 +38,15 @@ maybe<x> = [] / [x]
4538
seq<x> = [*23 x] / [24* x] ; encoded with indefinite-length encoding
4639
set<x> = #6.258([* x])
4740

41+
;; Types from other packages
42+
blockno = word64
43+
epochno = word64
44+
coin = word64
45+
rational = [int, int]
46+
keyhash = bstr .size 28
47+
hash = bstr .size 32
48+
relativeTime = int
49+
4850
;; Base word types
4951
word8 = 0..255
5052
word32 = 0..4294967295

0 commit comments

Comments
 (0)