#pallas #ecosystem #interop #ledger #cardano #blockchain

pallas

Rust-native building blocks for the Cardano blockchain ecosystem

82 releases

new 1.0.0-alpha.2 May 2, 2025
0.32.0 Dec 29, 2024
0.31.0 Nov 4, 2024
0.29.0 Jul 16, 2024
0.3.4 Dec 19, 2021

#297 in Magic Beans

Download history 112/week @ 2025-01-10 154/week @ 2025-01-17 144/week @ 2025-01-24 1348/week @ 2025-01-31 321/week @ 2025-02-07 94/week @ 2025-02-14 109/week @ 2025-02-21 98/week @ 2025-02-28 224/week @ 2025-03-07 88/week @ 2025-03-14 179/week @ 2025-03-21 494/week @ 2025-03-28 110/week @ 2025-04-04 431/week @ 2025-04-11 361/week @ 2025-04-18 141/week @ 2025-04-25

1,463 downloads per month
Used in 7 crates (5 directly)

Apache-2.0 and maybe LGPL-3.0+

1.5MB
33K SLoC

Pallas Logo

Rust-native building blocks for the Cardano blockchain ecosystem

GitHub Crates.io GitHub Workflow Status

Introduction

Pallas is an expanding collection of modules that re-implements common Ouroboros / Cardano logic in native Rust. This crate doesn't provide any particular application, it is meant to be used as a base layer to facilitate the development of higher-level use-cases, such as explorers, wallets, etc (who knows, maybe even a full node in a far away future).

Unboxing

The repository is organized as a Cargo workspace. Each Pallas "building block" lives in its own crate. The root pallas crate serves as an all-in-one dependency that re-exports all of the other modules in an hierarchically organized fashion, using Cargo features to tailor the setup for each use-case.

Core

Crates Description
pallas-codec Shared CBOR encoding / decoding using minicbor lib
pallas-crypto Shared Cryptographic primitives
pallas-math Shared mathematics functions

Network

Crates Description
pallas-network Network stack providing multiplexer and mini-protocol implementations

Ledger

Crates Description
pallas-primitives Ledger primitives and cbor codec for the different Cardano eras
pallas-traverse Utilities to traverse over multi-era block data
pallas-addresses Encode / decode Cardano addresses of any type

Tx Builder

Crates Description
pallas-txbuilder Ergonomic transaction builder

Interop

Crates Description
pallas-hardano Interoperability with implementation-specific artifacts of the Haskell Cardano node
pallas-utxorpc Interoperability with the UTxO RPC specification

Etymology

Pallas: (Greek mythology) goddess of wisdom and useful arts and prudent warfare;

Dependencies

~11–26MB
~411K SLoC