Otto Allmendinger
|
cec5fb5357
|
Extract BufferWriter class
Move various write methods to a class `BufferWriter`.
This allows increased code reuse for libraries that want to implement
different serialization formats.
Also de-duplicates some code paths and increases test coverage.
Original concept by idea by https://github.com/argjv:
https://github.com/BitGo/bitgo-utxo-lib/blob/master/src/bufferWriter.js
|
2020-01-14 15:03:14 +01:00 |
|