#dharithri #blockchain #smart-contracts #wasm #contract

nightly no-std dharithri-sc-codec

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

1 unstable release

0.18.1 Sep 14, 2023

#3 in #dharithri

Download history 11/week @ 2024-02-11 24/week @ 2024-02-18 32/week @ 2024-02-25 16/week @ 2024-03-03 28/week @ 2024-03-10 21/week @ 2024-03-17 27/week @ 2024-03-24 62/week @ 2024-03-31 18/week @ 2024-04-07 16/week @ 2024-04-14 22/week @ 2024-04-21 15/week @ 2024-04-28 22/week @ 2024-05-05 16/week @ 2024-05-12 19/week @ 2024-05-19 13/week @ 2024-05-26

73 downloads per month
Used in 8 crates (via dharithri-sc)

GPL-3.0-only

120KB
3K SLoC

Smart contract standard codec

crates.io

Lightweight binary serializer/deserializer, written especially for dharithri 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 dharithri smart contracts, it needs to be able to run in a no-std environment.

It is also safe to run in a regular std environment.

The types provided by default all work without an allocator. To use an allocator, pass feature flag "alloc".

Dependencies

~61–380KB