forked from interledger/rfcs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInterledgerProtocol.asn
55 lines (41 loc) · 1.06 KB
/
InterledgerProtocol.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
47
48
49
50
51
52
53
54
55
InterledgerProtocol
DEFINITIONS
AUTOMATIC TAGS ::=
BEGIN
IMPORTS
UInt64,
UInt256
FROM GenericTypes
Address,
Timestamp
FROM InterledgerTypes
;
InterledgerPrepare ::= SEQUENCE {
-- Local amount (changes at each hop)
amount UInt64,
-- Expiry date
expiresAt Timestamp,
-- Execution condition
executionCondition UInt256,
-- Destination ILP Address
destination Address,
-- Information for recipient (transport layer information)
data OCTET STRING (SIZE (0..32767))
}
InterledgerFulfill ::= SEQUENCE {
-- Execution condition fulfillment
fulfillment UInt256,
-- Information for sender (transport layer information)
data OCTET STRING (SIZE (0..32767))
}
InterledgerReject ::= SEQUENCE {
-- Standardized error code
code IA5String (SIZE (3)),
-- Participant that originally emitted the error
triggeredBy Address,
-- User-readable error message
message UTF8String (SIZE (0..8191)),
-- Machine-readable error data, dependent on code
data OCTET STRING (SIZE (0..32767))
}
END