Author: Tobias Ruck
An important consideration for a new transaction format is the integer encoding.
This article:
If you’re new to this, I recommend reading Amaury’s article on this topic.
In that article, he proposes a new integer encoding for Bitcoin, which we could use for a new tx format on eCash.
Choosing the right integer encoding format for a new tx format is important for many reasons:
Point 1 is obviously very important. The more compact we can encode integers, the more txs we can squeeze into our blocks, and the more throughput we can get. We compare the integer encodings to general purpose compression, using the LZ4 compression algorithm, which is very fast and also reasonably compact. ZSTD
Point 2 and especially the last point might seem a bit unnecessary for a tx format, but keep in mind that Bitcoin predominantly is a social project, where getting others to join and work on it is very important.
Writing a tx parser, for example, is a cool simple task a novice could start with, and parsing integers is one of the first things one has to do for this.