From fed956a175865455b8d00d35bc6ff55886827a80 Mon Sep 17 00:00:00 2001 From: Matthias Geihs Date: Mon, 30 May 2022 15:09:54 +0200 Subject: [PATCH] channel: Improve Data documentation Signed-off-by: Matthias Geihs --- channel/state.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/channel/state.go b/channel/state.go index f3c57164..758728a7 100644 --- a/channel/state.go +++ b/channel/state.go @@ -55,6 +55,8 @@ type ( // It is sent as binary data over the wire. For unmarshaling a data from // binary representation, use App.NewData() to create an instance of Data // specific to this application and then unmarshal using it. + // + // The encoding must be stable, that is, E(data) = E(D(E(data))). Data interface { encoding.BinaryMarshaler encoding.BinaryUnmarshaler