#dharitri #blockchain #smart-contracts #wasm #contract

nightly no-std dharitri-codec

Lightweight binary serializer/deserializer, written especially for Dharitri smart contracts

41 releases (4 breaking)

0.4.1 Feb 15, 2024
0.4.0 Feb 15, 2024
0.3.9 Feb 14, 2024
0.2.9 Feb 7, 2024
0.0.9 Jan 23, 2024

#18 in #dharitri

Download history 1/week @ 2024-06-15 4/week @ 2024-07-06 244/week @ 2024-07-27 1/week @ 2024-08-03 70/week @ 2024-09-21 14/week @ 2024-09-28

84 downloads per month
Used in 12 crates (via dharitri-wasm)

GPL-3.0-only

120KB
3K SLoC

dharitri-codec

Lightweight binary serializer/deserializer, written especially for Dharitri smart contracts.

Designed to:

  • produce minimal WASM bytecode
  • be fast
  • avoid data copy as much as possible

Largely inspired by the Parity SCALE codec, but a completely different format and implementation.

For more info about the serialization format, see the developer reference.

no-std

Being designed for dharitri-wasm smart contracts, it needs to be able to run in a no-std environment.

Dependencies

~155–660KB
~11K SLoC