I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 8f80ae4a authored by str4d's avatar str4d
Browse files

Datagram dataspec

parent ec7153c5
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,7 @@ currently limit messages to about 32 KB, although this may be raised in the futu
Repliable datagrams contain a 'from' address and a signature. These add at least 427 bytes of overhead.
{%- endtrans %}</p>
<h4>Format</h4>
<pre>
{% highlight lang='dataspec' %}
+----+----+----+----+----+----+----+----+
| from |
+ +
......@@ -68,27 +68,24 @@ Repliable datagrams contain a 'from' address and a signature. These add at least
+----+----+----+----//
from :: a <a href="{{ site_url('docs/spec/common-structures') }}#struct_Destination">Destination</a>
from :: a `Destination`
length: 387+ bytes
The originator and signer of the datagram
signature :: a <a href="{{ site_url('docs/spec/common-structures') }}#type_Signature">Signature</a>
Signature type must match the signing public key type in the 'from' Destination.
signature :: a `Signature`
Signature type must match the signing public key type of $from
length: 40+ bytes, as implied by the Signature type.
For the default DSA_SHA1 key type:
The DSA <a href="{{ site_url('docs/spec/common-structures') }}#type_Signature">signature</a> of the SHA-256 hash of the payload.
The DSA `Signature` of the SHA-256 hash of the payload.
For other key types:
The <a href="{{ site_url('docs/spec/common-structures') }}#type_Signature">signature</a> of the payload.
The signature may be verified by the signing public key of the 'from' Destination.
The `Signature` of the payload.
The signature may be verified by the signing public key of $from
payload :: The data
Length: 0 to ~31.5 KB (see notes)
Total length: Payload length + 427+
</pre>
{% endhighlight %}
<h4>{% trans %}Notes{% endtrans %}</h4>
<ul>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment