#testnumbat #blockchain #smart-contracts #wasm #contract

no-std testnumbat-codec

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

2 releases

new 0.0.2 Dec 10, 2024
0.0.1 Dec 10, 2024

#712 in Magic Beans

Download history 270/week @ 2024-12-08

270 downloads per month
Used in 4 crates (via testnumbat-wasm)

GPL-3.0-only

97KB
2.5K SLoC

testnumbat-codec

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

Dependencies

~150–570KB