MCPcopy Index your code
hub / github.com/Emurgo/cardano-serialization-lib

github.com/Emurgo/cardano-serialization-lib @15.0.3

Chat with this repo
repository ↗ · DeepWiki ↗ · release 15.0.3 ↗ · + Follow
3,359 symbols 14,078 edges 390 files 216 documented · 6%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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. - NodeJS WASM package with GC - Browser (chrome/firefox) WASM package with GC - Browser (pure JS - no WASM) ASM.js package with GC

Rust crates
Mobile bindings

Documentation

You can find documentation here

Extension points exported contracts — how you extend this code

SerializeEmbeddedGroup (Interface)
This is only for use for plain cddl groups who need to be embedded within outer groups. [18 implementers]
rust/src/serialization/traits.rs
Window (Interface)
(no doc)
example/src/context/CardanoContext.tsx
Deserialize (Interface)
same as cbor_event::de::Deserialize but with our DeserializeError [118 implementers]
rust/src/serialization/traits.rs
CardanoContextInterface (Interface)
(no doc)
example/src/context/CardanoContext.tsx
DeserializeEmbeddedGroup (Interface)
This is only for use for plain cddl groups who need to be embedded within outer groups. [54 implementers]
rust/src/serialization/traits.rs
Serialize (Interface)
Define that an object can be written to a `Write` object. [185 implementers]
rust/src/chain_core/property.rs
Deserialize (Interface)
Define that an object can be read from a `Read` object. [38 implementers]
rust/src/chain_core/property.rs

Core symbols most depended-on inside this repo

clone
called by 1368
rust/src/chain_crypto/key.rs
derive
called by 500
rust/src/protocol_types/crypto/bip32_public_key.rs
add
called by 392
rust/src/protocol_types/metadata.rs
annotate
called by 370
rust/src/error.rs
deserialize
called by 363
rust/src/serialization/witnesses/transaction_witnesses_set.rs
insert
called by 290
rust/src/protocol_types/metadata.rs
from_bytes
called by 218
rust/src/utils.rs
to_bytes
called by 185
rust/src/protocol_types/pointer.rs

Shape

Method 2,060
Function 916
Class 272
Enum 73
Interface 38

Languages

Rust96%
TypeScript4%
Python1%

Modules by API surface

rust/src/tests/builders/tx_builder.rs138 symbols
rust/src/builders/tx_builder.rs128 symbols
rust/src/lib.rs115 symbols
rust/src/protocol_types/protocol_param_update.rs89 symbols
rust/src/protocol_types/plutus/plutus_data.rs73 symbols
rust/src/utils.rs70 symbols
rust/src/tests/fakes.rs65 symbols
rust/src/protocol_types/metadata.rs60 symbols
rust/src/tests/serialization/general.rs54 symbols
rust/src/protocol_types/transaction_body.rs46 symbols
rust/src/protocol_types/address.rs45 symbols
rust/src/protocol_types/certificates/certificate.rs43 symbols

For agents

$ claude mcp add cardano-serialization-lib \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page