I recently saw the BIP 324 proposal. It shows us there can be some privacy enhancement by using ECDH secrets and encryption algorithms such as ChaCha20 and AEAD-ChaCha20-Poly1305. The proposal includes:
- The length decriptor size is reduced to 3 Bytes.
- The command could be expressed as an ID (1 Byte) OR as characters (13 Bytes, by including the 0x00 byte selector).
- However, I don't fully understand the order in data will be structured. Can it be explained ?
- What algorithm will be applied to which data structure ? Because I can suppose the ChaCha20 is used in order to encrypt the payload size and AEAD-ChaCha20-Poly1305 to encrypt payload.