From 331df3d0e191f55a37e78df59941bf8ff5c48cf2 Mon Sep 17 00:00:00 2001 From: Philipp Gackstatter Date: Wed, 8 Nov 2023 10:49:25 +0100 Subject: [PATCH] Add no trailing zero bytes rule --- tips/TIP-0045/tip-0045.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tips/TIP-0045/tip-0045.md b/tips/TIP-0045/tip-0045.md index 266bb7f4f..00b1fe65f 100644 --- a/tips/TIP-0045/tip-0045.md +++ b/tips/TIP-0045/tip-0045.md @@ -972,6 +972,9 @@ to be valid, the following conditions must hold: previous byte, the indices continue where the previous byte's indices left off. - For example: In a list of two bytes with the bit patterns `0001 0000` and `0000 0100`, bits with indices `4` and `10` are set. +- There must be no trailing zero bytes in the byte array. + - This rule ensures that two transactions whose content is identical, and in particular, that have the same + capabilities will have the same binary representation. #### Capability Flags