#numbat #blockchain #smart-contracts #wasm #contract

yanked test-numbat-codec

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

1 unstable release

0.5.3 Dec 6, 2024

#783 in Magic Beans

Download history 123/week @ 2024-12-02 20/week @ 2024-12-09

143 downloads per month
Used in 3 crates (via test-numbat-wasm)

GPL-3.0-only

95KB
2.5K SLoC

test-numbat-codec

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

Dependencies

~160–570KB