#blockchain #cardano #deserialize #cddl

cardano-serialization-lib

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

117 releases (44 stable)

new 14.1.2-beta.1 Apr 13, 2025
14.1.1 Feb 11, 2025
14.0.0 Jan 28, 2025
13.2.1 Jan 9, 2025
5.0.0 Jan 12, 2021

#6 in #cardano

Download history 124/week @ 2024-12-22 526/week @ 2024-12-29 949/week @ 2025-01-05 947/week @ 2025-01-12 836/week @ 2025-01-19 763/week @ 2025-01-26 1126/week @ 2025-02-02 979/week @ 2025-02-09 704/week @ 2025-02-16 612/week @ 2025-02-23 914/week @ 2025-03-02 646/week @ 2025-03-09 680/week @ 2025-03-16 525/week @ 2025-03-23 888/week @ 2025-03-30 1356/week @ 2025-04-06

3,475 downloads per month
Used in 7 crates (4 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
~144K SLoC