mirror of
https://github.com/lightning/bolts.git
synced 2025-02-21 22:11:54 +01:00
minimally encoded explanation needs inverting (#685)
This commit is contained in:
parent
78bc516f96
commit
7078c9141a
1 changed files with 2 additions and 2 deletions
|
@ -418,8 +418,8 @@ function that takes a `uint64` value `x` and produces:
|
|||
Here `+` denotes concatenation and `be16`, `be32`, and `be64` produce a
|
||||
big-endian encoding of the input for 16, 32, and 64-bit integers, respectively.
|
||||
|
||||
A value is said to be _minimally encoded_ if it could have been encoded using a
|
||||
smaller representation. For example, a BigSize encoding that occupies 5 bytes
|
||||
A value is said to be _minimally encoded_ if it could not be encoded using
|
||||
fewer bytes. For example, a BigSize encoding that occupies 5 bytes
|
||||
but whose value is less than 0x10000 is not minimally encoded. All values
|
||||
decoded with BigSize should be checked to ensure they are minimally encoded.
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue