-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(asn1): update with final ilp payment packet
Also includes draft of ILQP formats.
- Loading branch information
Showing
9 changed files
with
322 additions
and
243 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
GenericPacket | ||
DEFINITIONS | ||
AUTOMATIC TAGS ::= | ||
BEGIN | ||
|
||
IMPORTS | ||
UInt8, | ||
VarBytes | ||
FROM GenericTypes | ||
|
||
InterledgerProtocolPaymentMessage | ||
FROM InterledgerProtocol | ||
|
||
QuoteLiquidityRequest, | ||
QuoteLiquidityResponse, | ||
QuoteBySourceAmountRequest, | ||
QuoteBySourceAmountResponse, | ||
QuoteByDestinationAmountRequest, | ||
QuoteByDestinationAmountResponse | ||
FROM InterledgerQuotingProtocol | ||
; | ||
|
||
PACKET ::= CLASS { | ||
&typeId UInt8 UNIQUE, | ||
&Type | ||
} WITH SYNTAX {&typeId &Type} | ||
|
||
PacketSet PACKET ::= { | ||
{1 InterledgerProtocolPaymentMessage} | | ||
{2 QuoteLiquidityRequest} | | ||
{3 QuoteLiquidityResponse} | | ||
{4 QuoteBySourceAmountRequest} | | ||
{5 QuoteBySourceAmountResponse} | | ||
{6 QuoteByDestinationAmountRequest} | | ||
{7 QuoteByDestinationAmountResponse} | ||
} | ||
|
||
InterledgerPacket ::= SEQUENCE { | ||
-- One byte type ID | ||
type PACKET.&typeId ({PacketSet}), | ||
-- Length-prefixed header | ||
data PACKET.&Type ({PacketSet}{@type}) | ||
} | ||
|
||
END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
InterledgerProtocol | ||
DEFINITIONS | ||
AUTOMATIC TAGS ::= | ||
BEGIN | ||
|
||
IMPORTS | ||
UInt64 | ||
FROM GenericTypes | ||
|
||
Address, | ||
Amount | ||
FROM InterledgerTypes | ||
|
||
MetadataEntry | ||
FROM MetadataEntry | ||
; | ||
|
||
InterledgerProtocolPaymentMessage ::= SEQUENCE { | ||
-- Amount which must be received at the destination | ||
amount UInt64, | ||
-- Destination ILP Address | ||
account Address, | ||
-- Information for recipient (transport layer information) | ||
data OCTET STRING (SIZE (0..32767)), | ||
-- Enable ASN.1 Extensibility | ||
extensions SEQUENCE { | ||
... | ||
} | ||
} | ||
|
||
END |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.