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

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

#2051 in Magic Beans

Download history 61/week @ 2024-01-15 277/week @ 2024-01-22 439/week @ 2024-01-29 536/week @ 2024-02-05 823/week @ 2024-02-12 109/week @ 2024-02-19 23/week @ 2024-02-26 40/week @ 2024-03-04 6/week @ 2024-03-11 747/week @ 2024-04-01

755 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

~150–630KB
~11K SLoC