BORSH — Binary serializer for NEAR Protocol

Alex Filatov
6 min readDec 20, 2022

BORSH a.k.a as Borscht (also spelled borsch, borsht, or borshch) is a type of soup that originated in Ukraine. It is typically made with beets and a variety of vegetables, such as cabbage, potatoes, onions, and carrots, and is often served with sour cream or other condiments.

But this article is not about the soup 😋

What is binary serialisation?

Binary serialization is a process of converting an object’s state (property values) into a binary format that can be stored on a file or transmitted over a network. The process of converting an object’s state into a binary format is called serialization, and the reverse process of creating an object from a binary representation is called deserialization.

Binary serialization is used to save an object’s state in a compact and efficient manner, making it possible to recreate the object from the serialized data at a later time. It is often used to store data in a persistent manner, such as in a database or on a file, or to transmit data over a network.

Binary serialization is generally faster and more efficient than other forms of serialization, such as XML or JSON, because it results in a smaller data size and requires less processing power to serialize and deserialize the data. However, it is not as…

--

--