78 releases (29 breaking)

new 0.30.2 Sep 8, 2024
0.29.0 Jul 16, 2024
0.24.0 Mar 9, 2024
0.20.0 Nov 21, 2023
0.3.4 Dec 19, 2021

#251 in Magic Beans

Download history 545/week @ 2024-05-20 296/week @ 2024-05-27 215/week @ 2024-06-03 157/week @ 2024-06-10 76/week @ 2024-06-17 86/week @ 2024-06-24 274/week @ 2024-07-01 80/week @ 2024-07-08 369/week @ 2024-07-15 190/week @ 2024-07-22 177/week @ 2024-07-29 74/week @ 2024-08-05 39/week @ 2024-08-12 387/week @ 2024-08-19 450/week @ 2024-08-26 205/week @ 2024-09-02

1,087 downloads per month
Used in 4 crates (3 directly)

Apache-2.0

1MB
20K SLoC

Pallas Logo 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.

As already explained, Pallas aims at being an expanding set of components. The following tables describe the currently available crates, as well as the planned ones.

Ouroboros Network

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

Ouroboros Consensus

Crates Description
pallas-leadership Implementation of the slot leadership selection algorithm
pallas-selection Implementation of the consensus chain-selection algorithm

Cardano 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
pallas-ticking Time passage implementation for consensus algorithm
pallas-applying Logic for validating and applying new blocks and txs to the chain state
pallas-forecasting Ledger forecasting algorithm to be used by the consensus layer

Shared

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

Etymology

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

Dependencies

~11–25MB
~395K SLoC