]> Cypherpunks.ru repositories - nncp.git/blob - doc/pkt/area.texi
172c09c092558356a85014f56a3d40d32fc25133
[nncp.git] / doc / pkt / area.texi
1 @node Encrypted area
2 @section Encrypted area packet
3
4 @ref{Multicast} area messages contains the encrypted packet, that is
5 completely similar and have the same format as an ordinary
6 @ref{Encrypted, encrypted packet}. But instead of the node's identity,
7 area's identity is used as a recipient.
8
9 For example when @code{nodeA} sends multicast packet with file
10 transmission and @code{nodeB} is the area's subscriber, then
11 @code{nodeA} has an encrypted packet to the @code{nodeB} in the outgoing
12 spool directory:
13
14 @verbatim
15 ENCRYPTED PACKET (sender=nodeA, recipient=nodeB) WRAPS
16   PLAIN PACKET (type=area, path=AREA ID) WRAPS
17     ENCRYPTED PACKET (sender=nodeA, recipient=AREA) WRAPS  <-- MsgHash
18       PLAIN PACKET (type=file, path=FILENAME) WRAPS
19         FILE CONTENTS
20 @end verbatim
21
22 Area's message identity is the BLAKE2b-256 hash of header of the area's
23 packet encrypted packet.