Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
L

librustzcash

> 编程语言
Open source

Rust-language assets for Zcash

396 stars0 likes1 views
WebsiteGitHub

About

Rust-language assets for Zcash

Zcash Rust crates

This repository contains a (work-in-progress) set of Rust crates for working with Zcash.

⚠️ IMPORTANT: The only way to check Zcash consensus validity is to use a Zcash consensus node. ⚠️

The public API surfaces of these crates include many APIs that are used by the zcashd and Zebra node implementations, as well as other critical components in the Zcash ecosystem, but none of them expose any way to check consensus validity of transactions. In particular, APIs for parsing transactions only check a subset of validity constraints. The specific subset they check is not sufficient to guarantee any meaningful user-level validity constraints, and is not necessarily stable over time, or consistent with other implementations of parsers for Zcash transactions.

…

Crates

librustzcash: a Rust Crates Walkthrough w/ nuttycom

Zcash Protocol

  • zcash_protocol: Constants & common types
    • consensus parameters
    • bounded value types (Zatoshis, ZatBalance)
    • memo types
  • zcash_transparent: Bitcoin-derived transparent transaction components
    • transparent addresses
    • transparent input, output, and bundle types
    • support for transparent parts of pczt construction
  • zcash_primitives: Core utilities for working with Zcash transactions
    • the primary transaction data type
    • transaction builder(s)
    • proving, signing, & serialization
    • low-level fee types
  • zcash_proofs: The Sprout circuit & proving system

Keys, Addresses & Wallet Support

  • zcash_address: Parsing & serialization of Zcash addresses
    • unified address, fvk & ivk containers
    • no dependencies on protocol-specific types
    • serialization API definitions
  • zip321: Parsing & serizalization for ZIP 321 payment requests
  • zcash_keys: Spending Keys, Viewing Keys, & Addresses
    • protocol-specific & Unified address types
    • ZIP 32 key & address derivation implementations
    • Unified spending keys & viewing keys
    • Sapling spending & viewing key types
  • pczt: Data types & interfaces for PCZT construction
    • partially constructed transaction types
    • transaction construction role interfaces & partial implementations
  • zcash_client_backend: A wallet framework for Zcash
    • wallet data storage APIs
    • chain scanning
    • light client protocol support
    • fee calculation
    • transaction proposals & high-level transaction construction APIs
  • zcash_client_sqlite: SQLite-based implementation of zcash_client_backend storage APIs
  • zcash_pool_migration: Backend-agnostic engine for migrating wallet funds between value pools (first used for the NU6.3 Orchard → Ironwood migration)
    • note-split planning into self-funding denominations
    • migration PCZT construction, signing & height-based scheduling
    • state persistence through a wallet backend

Utilities & Common Dependencies

  • payment_uri: Parsing and validation for cross-chain payment request URIs
  • f4jumble: Encoding for Unified addresses
  • zcash_encoding: Bitcoin-derived transaction encoding utilities for Zcash
  • equihash: Proof-of-work protocol implementation
  • zcash_history: Zcash blockchain history tree
    • the ZIP 221 Merkle Mountain Range over per-block metadata
    • consumed by node implementations (Zebra, zcashd) for FlyClient proofs

Security Warnings

These libraries are under development and have not been fully reviewed.

License

All code in this workspace is licensed under either of

  • Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
  • MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Issues· 389 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rust

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言