Tweaked boundaries to match DataSpec

This commit is contained in:
str4d
2013-06-12 01:33:52 +00:00
parent c914621298
commit a55cf7f16c

View File

@ -180,9 +180,9 @@ A certificate is a container for various receipts or proof of works used through
1 byte <a href="#type_Integer">Integer</a> specifying certificate type, followed by a 2 <a href="#type_Integer">Integer</a> specifying the size of the certificate payload, then that many bytes. 1 byte <a href="#type_Integer">Integer</a> specifying certificate type, followed by a 2 <a href="#type_Integer">Integer</a> specifying the size of the certificate payload, then that many bytes.
{% endtrans %}</p> {% endtrans %}</p>
{% highlight lang='dataspec' %} {% highlight lang='dataspec' %}
+----+----+----+----+----+--// +----+----+----+----+----+-//
|type| length | payload |type| length | payload
+----+----+----+----+----+--// +----+----+----+----+----+-//
type :: Integer type :: Integer
length -> 1 byte length -> 1 byte
@ -318,7 +318,7 @@ Defines the way to uniquely identify a particular router
| | | |
+----+----+----+----+----+----+----+----+ +----+----+----+----+----+----+----+----+
| certificate | | certificate |
+----+----+----+--// +----+----+----+-//
public_key :: PublicKey public_key :: PublicKey
length -> 256 bytes length -> 256 bytes
@ -366,8 +366,8 @@ A Destination defines a particular endpoint to which messages can be directed fo
~ ~ ~ ~
| | | |
+----+----+----+----+----+----+----+----+ +----+----+----+----+----+----+----+----+
| certificate | certificate
+---// +-//
public_key :: PublicKey public_key :: PublicKey
length -> 256 bytes length -> 256 bytes
@ -581,11 +581,11 @@ IP address, port number, email address, URL, etc.
|cost| |cost|
+----+----+----+----+----+----+----+----+ +----+----+----+----+----+----+----+----+
| expiration | | expiration |
+----+----+----+----+--//+----+----+----+ +----+----+----+----+-//-+----+----+----+
| transport_style | | transport_style |
+----+----+----+----+--//+----+----+----+ +----+----+----+----+-//-+----+----+----+
| options | | options |
+----+----+----+----+--//+----+----+----+ +----+----+----+----+-//-+----+----+----+
cost :: Integer cost :: Integer
length -> 1 byte length -> 1 byte