Description
Implementation of BORSH serialisation.
Description
This package provides type classes and combinators for serialisation/deserialisation to/from Borsh format. Unlike CBOR, Borsh is a non self-describing serialisation format. It is designed such that any object serialises to a canonical and deterministic string of bytes.
The library supports incremental encoding and incremental decoding, and supports the use of the ST
monad in the decoder for efficient decoding for types such as arrays. However, the library has currently not been optimized for speed, and there may well be low-hanging fruit to make it faster.