forked from w3f/jamtestvectors
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathauthorizations.asn
46 lines (36 loc) · 977 Bytes
/
authorizations.asn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
-- Authorizations STF test vectors schema
AuthorizationsModule DEFINITIONS ::= BEGIN
IMPORTS
AuthPools, AuthQueues, OpaqueHash, TimeSlot, CoreIndex
FROM JamTypes;
State ::= SEQUENCE {
auth-pools AuthPools,
auth-queues AuthQueues
}
CoreAuthorizer ::= SEQUENCE {
core CoreIndex,
auth-hash OpaqueHash
}
-- This sequence is out of GP spec and derived from the Guarantees Extrinsic (E_G).
--
-- For the sake of construction simplicity, we prefer not to include the complete
-- extrinsic here but rather focus only on the components relevant to advancing
-- this subsystem's STF.
--
-- CoreAuthorizers[i] = CoreAuthorizer {
-- core: E_G[i].w.core,
-- auth-hash: E_G[i].w.auth-hash
-- }
CoreAuthorizers ::= SEQUENCE OF CoreAuthorizer
Input ::= SEQUENCE {
slot TimeSlot,
auths CoreAuthorizers
}
Output ::= NULL
TestCase ::= SEQUENCE {
input Input,
pre-state State,
output Output,
post-state State
}
END