This is probably the most involved change in the sequence of changes extracted from #10785.
In order to implement the differential encoding of BIP152, this change changes VectorFormatter
to permit a stateful sub-formatter, which is then used by DifferenceFormatter
. A CustomUintFormatter
is added as well to do the 48-bit serialization of short ids.