Skip to content

Commit

Permalink
Fix up strict discussion
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmcculloch committed Feb 15, 2024
1 parent dea4cba commit b5f5851
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions core/cap-0052.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b5f5851

Please sign in to comment.