10 lines
5.4 KiB
HTML
10 lines
5.4 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A crate for Zcash protocol constants and value types."><title>zcash_protocol - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../static.files/rustdoc-20739d33.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="zcash_protocol" data-themes="" data-resource-suffix="" data-rustdoc-version="1.88.0-nightly (74509131e 2025-04-29)" data-channel="nightly" data-search-js="search-f7877310.js" data-settings-js="settings-5514c975.js" ><script src="../static.files/storage-4e99c027.js"></script><script defer src="../crates.js"></script><script defer src="../static.files/main-7ef8a74a.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-893ab5e7.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-044be391.svg"></head><body class="rustdoc mod crate"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../zcash_protocol/index.html">zcash_<wbr>protocol</a><span class="version">0.5.1</span></h2></div><div class="sidebar-elems"><ul class="block"><li><a id="all-types" href="all.html">All Items</a></li></ul><section id="rustdoc-toc"><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#feature-flags" title="Feature flags">Feature flags</a></li></ul><h3><a href="#modules">Crate Items</a></h3><ul class="block"><li><a href="#modules" title="Modules">Modules</a></li><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#enums" title="Enums">Enums</a></li></ul></section><div id="rustdoc-modnav"></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Crate <span>zcash_protocol</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../src/zcash_protocol/lib.rs.html#1-69">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p><em>A crate for Zcash protocol constants and value types.</em></p>
|
|
<p><code>zcash_protocol</code> 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.</p>
|
|
<h3 id="feature-flags"><a class="doc-anchor" href="#feature-flags">§</a>Feature flags</h3>
|
|
<ul>
|
|
<li><strong><code>test-dependencies</code></strong> — Exposes APIs that are useful for testing, such as <code>proptest</code> strategies.</li>
|
|
<li><strong><code>local-consensus</code></strong> — Exposes support for working with a local consensus (e.g. regtest).</li>
|
|
</ul>
|
|
</div></details><h2 id="modules" class="section-header">Modules<a href="#modules" class="anchor">§</a></h2><dl class="item-table"><dt><a class="mod" href="consensus/index.html" title="mod zcash_protocol::consensus">consensus</a></dt><dd>Consensus logic and parameters.</dd><dt><a class="mod" href="constants/index.html" title="mod zcash_protocol::constants">constants</a></dt><dd>Network-specific Zcash constants.</dd><dt><a class="mod" href="local_consensus/index.html" title="mod zcash_protocol::local_consensus">local_<wbr>consensus</a><wbr><span class="stab portability" title="Available on crate feature `local-consensus` only"><code>local-consensus</code></span></dt><dt><a class="mod" href="memo/index.html" title="mod zcash_protocol::memo">memo</a></dt><dd>Structs for handling encrypted memos.</dd><dt><a class="mod" href="value/index.html" title="mod zcash_protocol::value">value</a></dt></dl><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.TxId.html" title="struct zcash_protocol::TxId">TxId</a></dt><dd>The identifier for a Zcash transaction.</dd></dl><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><dl class="item-table"><dt><a class="enum" href="enum.PoolType.html" title="enum zcash_protocol::PoolType">Pool<wbr>Type</a></dt><dd>A value pool in the Zcash protocol.</dd><dt><a class="enum" href="enum.ShieldedProtocol.html" title="enum zcash_protocol::ShieldedProtocol">Shielded<wbr>Protocol</a></dt><dd>A Zcash shielded transfer protocol.</dd></dl></section></div></main></body></html> |