diff options
Diffstat (limited to 'draft-schanzen-r5n.xml')
-rw-r--r-- | draft-schanzen-r5n.xml | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/draft-schanzen-r5n.xml b/draft-schanzen-r5n.xml index 412c460..746003a 100644 --- a/draft-schanzen-r5n.xml +++ b/draft-schanzen-r5n.xml | |||
@@ -1721,13 +1721,17 @@ bchar = *(ALPHA / DIGIT) | |||
1721 | <li> | 1721 | <li> |
1722 | If the <tt>BTYPE</tt> is supported, then the <tt>BLOCK</tt> | 1722 | If the <tt>BTYPE</tt> is supported, then the <tt>BLOCK</tt> |
1723 | <bcp14>MUST</bcp14> be validated against the | 1723 | <bcp14>MUST</bcp14> be validated against the |
1724 | requested <tt>BTYPE</tt>. To do this, the peer attempts to compute the | 1724 | requested <tt>BTYPE</tt>. To do this, the peer |
1725 | key using <tt>DeriveBlockKey</tt>. Note that the computed key | ||
1726 | does not have to match the <tt>QUERY_HASH</tt>. Next, the peer | ||
1727 | checks that the block is valid using <tt>ValidateBlockStoreRequest</tt>. | 1725 | checks that the block is valid using <tt>ValidateBlockStoreRequest</tt>. |
1728 | If the result is <tt>BLOCK_INVALID</tt>, the message <bcp14>MUST</bcp14> be | 1726 | If the result is <tt>BLOCK_INVALID</tt>, the message <bcp14>MUST</bcp14> be |
1729 | discarded. | 1727 | discarded. |
1730 | </li> | 1728 | </li> |
1729 | <li> | ||
1730 | The peer also attempts to compute the | ||
1731 | key using <tt>DeriveBlockKey</tt>. This may result in <tt>NONE</tt>. | ||
1732 | The result is used later. Note that even if a key was computed, it | ||
1733 | does not have to match the <tt>QUERY_HASH</tt>. | ||
1734 | </li> | ||
1731 | <li> | 1735 | <li> |
1732 | If the sender of the message is already found on the | 1736 | If the sender of the message is already found on the |
1733 | <tt>GETPATH</tt>, the path <bcp14>MUST</bcp14> be truncated at this position. | 1737 | <tt>GETPATH</tt>, the path <bcp14>MUST</bcp14> be truncated at this position. |
@@ -1741,6 +1745,8 @@ bchar = *(ALPHA / DIGIT) | |||
1741 | to the peer indicated in the HELLO block using the address information | 1745 | to the peer indicated in the HELLO block using the address information |
1742 | from the HELLO block. If a connection is established, | 1746 | from the HELLO block. If a connection is established, |
1743 | the peer is added to the respective k-bucket of the routing table. | 1747 | the peer is added to the respective k-bucket of the routing table. |
1748 | Note that the k-bucket <bcp14>MUST</bcp14> be determined by the | ||
1749 | key computed using <tt>DeriveBlockKey</tt> and not by the <tt>QUERY_HASH</tt>. | ||
1744 | </li> | 1750 | </li> |
1745 | <li> | 1751 | <li> |
1746 | <t> | 1752 | <t> |