mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-03-07 05:58:18 +01:00
akwizgran created page: BSP
@@ -14,7 +14,7 @@ Each channel has a unique identifier hash_len bytes long. This identifier is sup
|
|||||||
|
|
||||||
### Message format
|
### Message format
|
||||||
|
|
||||||
Each message consists of one or more blocks. Each block is block_len bytes long, except the last, which may be shorter. The blocks form the leaves of a binary hash tree, and the root hash of the tree uniquely identifies the message.
|
Each message consists of one or more blocks. Each block is block_len bytes long, except the last, which may be shorter. The blocks form the leaves of a binary hash tree. Each internal node of the tree consists of the concatenated hashes of its children, and the hash of the root node uniquely identifies the message.
|
||||||
|
|
||||||
A message header is prepended to each node of the tree before hashing. The message header consists of the channel identifier, a timestamp indicating when the message was posted, the depth of the hash tree, and the message type.
|
A message header is prepended to each node of the tree before hashing. The message header consists of the channel identifier, a timestamp indicating when the message was posted, the depth of the hash tree, and the message type.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user