#cardano #deserialize #serialization #along #js #utility #browser

cardano-serialization-lib

(De)serialization functions for the Cardano blockchain along with related utility functions

113 releases (41 stable)

13.2.1 Jan 9, 2025
13.2.0 Nov 14, 2024
13.1.0 Oct 16, 2024
12.1.1 Oct 4, 2024
5.0.0 Jan 12, 2021

#794 in Magic Beans

Download history 328/week @ 2024-09-26 528/week @ 2024-10-03 538/week @ 2024-10-10 364/week @ 2024-10-17 168/week @ 2024-10-24 301/week @ 2024-10-31 250/week @ 2024-11-07 382/week @ 2024-11-14 222/week @ 2024-11-21 504/week @ 2024-11-28 1920/week @ 2024-12-05 1192/week @ 2024-12-12 298/week @ 2024-12-19 255/week @ 2024-12-26 810/week @ 2025-01-02 853/week @ 2025-01-09

2,314 downloads per month
Used in 6 crates (3 directly)

MIT license

2MB
48K SLoC

Cardano Serialization Lib

This is a library, written in Rust, for serialization & deserialization of data structures used in Cardano's Haskell implementation of Alonzo along with useful utility functions.

NPM packages
NPM packages with GC support

Note: This package uses weak references flag from wasm-bindgen. It uses FinalizationRegistry under the hood to automatically call "free" for each CSL struct when it is no longer needed. However, use this feature with caution as it may have unpredictable behaviors.

Rust crates
Mobile bindings

Documentation

You can find documentation here

Dependencies

~5–7.5MB
~138K SLoC