spec updates and fixes for LS2

This commit is contained in:
zzz
2019-02-28 14:34:03 +00:00
parent c3b8b9d087
commit 54e27afd0f
2 changed files with 17 additions and 18 deletions

View File

@@ -1391,20 +1391,16 @@ Description
Contained in a I2NP DatabaseStore message of type 5. Contained in a I2NP DatabaseStore message of type 5.
Supported as of 0.9.38; see proposal 123 for more information. Supported as of 0.9.38; see proposal 123 for more information.
Contains all of the currently authorized MetaLease_ for a particular Destination_, Only the blinded key and expiration are visible in cleartext.
the PublicKey_ to which garlic messages can be encrypted, and then the The actual lease set is encrypted.
SigningPublicKey_ that can be used to revoke this particular version of the
structure. The LeaseSet is one of the two structures stored in the network
database (the other being RouterInfo_), and is keyed under the SHA256 of the
contained Destination_.
Contents Contents
```````` ````````
LeaseSet2Header_, followed by a options, A two byte signature type, the blinded SigningPrivateKey_,
Integer_ specifying how many Lease2_ structures are in the set, followed by the published time, expiration, and flags.
actual Lease2_ structures and finally a Signature_ of the previous bytes signed Then, a two byte length followed by encrypted data.
by the Destination_'s SigningPrivateKey_ or the transient key. Finally, a Signature_ of the previous bytes signed
by the blinded SigningPrivateKey_ or the transient key.
.. raw:: html .. raw:: html
@@ -1475,8 +1471,8 @@ by the Destination_'s SigningPrivateKey_ or the transient key.
length -> len bytes length -> len bytes
signature :: `Signature` signature :: `Signature`
length -> 40 bytes or as specified in destination's key length -> As specified by the sigtype of the blinded pubic key,
certificate, or by the sigtype of the transient public key, or by the sigtype of the transient public key,
if present in the header if present in the header
{% endhighlight %} {% endhighlight %}
@@ -1497,8 +1493,11 @@ Notes
* This structure does not use the LeaseSet2Header_. * This structure does not use the LeaseSet2Header_.
* Maximum actual expires time is TBD, may be about 11 minutes, unless * Maximum actual expires time is about 11 minutes, unless
we will support encrypted MetaLeaseSet_. it is an encrypted MetaLeaseSet_.
* TODO probably don't want the offline block in cleartext;
may not be able to make offline signatures work with encrypted leasesets at all.
JavaDoc: http://{{ i2pconv('echelon.i2p/javadoc') }}/net/i2p/data/EncryptedLeaseSet.html JavaDoc: http://{{ i2pconv('echelon.i2p/javadoc') }}/net/i2p/data/EncryptedLeaseSet.html

View File

@@ -3,8 +3,8 @@ I2NP Specification
================== ==================
.. meta:: .. meta::
:category: Protocols :category: Protocols
:lastupdated: January 2019 :lastupdated: February 2019
:accuratefor: 0.9.38 :accuratefor: 0.9.39
.. contents:: .. contents::
@@ -580,7 +580,7 @@ An unsolicited database store, or the response to a successful DatabaseLookup_ M
Contents Contents
```````` ````````
An uncompressed LeaseSet or a compressed RouterInfo An uncompressed LeaseSet, LeaseSet2, MetaLeaseSet, or EncryptedLeaseset, or a compressed RouterInfo
.. raw:: html .. raw:: html