Skip to main content

Crate zcash_protocol

Crate zcash_protocol 

Source
Expand description

A crate for Zcash protocol constants and value types.

zcash_protocol contains Rust structs, traits and functions that provide the network constants for the Zcash main and test networks, as well types for representing ZEC amounts and value balances.

§Feature flags

  • test-dependencies — Exposes APIs that are useful for testing, such as proptest strategies.
  • local-consensus — Exposes support for working with a local consensus (e.g. regtest).

Modules§

consensus
Consensus logic and parameters.
constants
Network-specific Zcash constants.
local_consensuslocal-consensus
memo
Structs for handling encrypted memos.
testingtest-dependencies
value
zip318
Protocol parameters for ZIP 318 pool migration: the canonical denomination series that pool-crossing values are drawn from, the anchor bucket grid that crossings are proved against, and the constants that shape and space the transactions carrying them.

Structs§

TxId
The identifier for a Zcash transaction.

Enums§

PoolType
A value pool in the Zcash protocol.
ShieldedPool
A Zcash shielded pool.

Type Aliases§

ShieldedProtocolDeprecated