pchain_types/lib.rs
1/*
2 Copyright © 2023, ParallelChain Lab
3 Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
4*/
5
6//! Rust implementations of the data types defined in the
7//! [ParallelChain Protocol](https://github.com/parallelchain-io/parallelchain-protocol), including
8//! transactions, blocks, cryptographic primitives, and RPC requests and responses.
9//!
10//! ## Organization
11//!
12//! The organization of this library into modules mirror the organization of the protocol specification
13//! into chapters. For example, transactions, which are specified in the "Blockchain" chapter of the
14//! [specification](https://github.com/parallelchain-io/parallelchain-protocol/blob/master/Blockchain.md#transaction),
15//! are defined in the blockchain module of this [library](blockchain::Transaction). The exception are the cryptographic
16//! primitives specified in the Blockchain chapter, which are here defined in its own module.
17
18pub mod cryptography;
19
20pub mod blockchain;
21
22pub mod rpc;
23
24pub mod runtime;
25
26pub mod serialization;