From b5f58515653e45850061a0353fbf9d84a76ef912 Mon Sep 17 00:00:00 2001 From: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com> Date: Fri, 16 Feb 2024 08:09:09 +1000 Subject: [PATCH] Fix up strict discussion --- core/cap-0052.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/core/cap-0052.md b/core/cap-0052.md index 7f8a02ade..aa396a124 100644 --- a/core/cap-0052.md +++ b/core/cap-0052.md @@ -69,9 +69,13 @@ Parameter `padding` specifies the padding character with the same limitations on valid values as specified in [RFC4648]. The padding character is 8-bit, and is stored in the lower 8-bits of the U32Val type. If the padding value of 0xffffffff is used it indicates no padding is to be used when encoding, and no -padding is required when decoding, but padding is permitted. If the padding -value of 0xfffffffe is used it indicates decoding should fail if the trailing -padding bits are not zero. +padding is required when decoding, but padding is permitted, unless strict is +specified. + +Parameter `strict` specifies for decoding whether incomplete, non-existent, or +present-when-unspected padding should be considered an error. If strict is +specified then any padding that doesn't exactly match the padding that's +required would cause an error. ```diff mddiffcheck.ignore=true mddiffcheck.base=v20.1.0 --- a/soroban-env-common/env.json