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

cardano-serialization-lib

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

116 releases (44 stable)

14.1.1 Feb 11, 2025
14.0.0 Jan 28, 2025
13.2.1 Jan 9, 2025
13.2.0 Nov 14, 2024
5.0.0 Jan 12, 2021

#917 in Magic Beans

Download history 238/week @ 2024-10-29 321/week @ 2024-11-05 365/week @ 2024-11-12 222/week @ 2024-11-19 229/week @ 2024-11-26 1620/week @ 2024-12-03 1669/week @ 2024-12-10 463/week @ 2024-12-17 119/week @ 2024-12-24 703/week @ 2024-12-31 893/week @ 2025-01-07 922/week @ 2025-01-14 841/week @ 2025-01-21 731/week @ 2025-01-28 1177/week @ 2025-02-04 950/week @ 2025-02-11

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

MIT license

2MB
49K 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.5–7.5MB
~145K SLoC