#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

#19 in #dharitri


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

~150–660KB
~11K SLoC