#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)

new 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

#36 in Magic Beans

Download history 210/week @ 2024-10-21 180/week @ 2024-10-28 373/week @ 2024-11-04 353/week @ 2024-11-11 244/week @ 2024-11-18 150/week @ 2024-11-25 1369/week @ 2024-12-02 1861/week @ 2024-12-09 586/week @ 2024-12-16 94/week @ 2024-12-23 568/week @ 2024-12-30 926/week @ 2025-01-06 909/week @ 2025-01-13 856/week @ 2025-01-20 749/week @ 2025-01-27 1131/week @ 2025-02-03

3,691 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–7.5MB
~137K SLoC