tari-project / rfcs

RFC documents for the Tari protocol
3 stars 17 forks source link

fix(rfc-0172): clarify empty body rules for EnvelopeBody #90

Closed sdbondi closed 1 year ago

sdbondi commented 1 year ago

Description

Clarifies empty body rules for EnvelopeBody

Motivation and Context

In the encrypted case, a valid node should discard a message if the encoded EnvelopeBody is zero-sized. A cleartext EnvelopeBody may be zero-sized as this is valid proto3 encoding.

Ref https://github.com/tari-project/tari/pull/5130