125 lines
32 KiB
HTML
125 lines
32 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="Trait used by tests that require a full viewing key."><title>TestFvk in zcash_client_backend::data_api::testing - 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_client_backend" 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="sidebar-items.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 trait"><!--[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_client_backend/index.html">zcash_<wbr>client_<wbr>backend</a><span class="version">0.18.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">TestFvk</a></h2><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Nullifier" title="Nullifier">Nullifier</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.add_logical_action" title="add_logical_action">add_logical_action</a></li><li><a href="#tymethod.add_output" title="add_output">add_output</a></li><li><a href="#tymethod.add_spend" title="add_spend">add_spend</a></li><li><a href="#tymethod.orchard_ovk" title="orchard_ovk">orchard_ovk</a></li><li><a href="#tymethod.sapling_ovk" title="sapling_ovk">sapling_ovk</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-TestFvk-for-%26A" title="&A">&A</a></li><li><a href="#impl-TestFvk-for-FullViewingKey" title="FullViewingKey">FullViewingKey</a></li></ul><h3><a href="#dyn-compatibility">Dyn Compatibility</a></h3><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In zcash_<wbr>client_<wbr>backend::<wbr>data_<wbr>api::<wbr>testing</a></h2></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"><div class="rustdoc-breadcrumbs"><a href="../../index.html">zcash_client_backend</a>::<wbr><a href="../index.html">data_api</a>::<wbr><a href="index.html">testing</a></div><h1>Trait <span class="trait">TestFvk</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_client_backend/data_api/testing.rs.html#1737-1799">Source</a> </span></div><pre class="rust item-decl"><code>pub trait TestFvk: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> {
|
|
type <a href="#associatedtype.Nullifier" class="associatedtype">Nullifier</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>;
|
|
|
|
// Required methods
|
|
fn <a href="#tymethod.sapling_ovk" class="fn">sapling_ovk</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><OutgoingViewingKey>;
|
|
<span class="item-spacer"></span> fn <a href="#tymethod.orchard_ovk" class="fn">orchard_ovk</a>(&self, scope: Scope) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><OutgoingViewingKey>;
|
|
<span class="item-spacer"></span> fn <a href="#tymethod.add_spend" class="fn">add_spend</a><R: <a class="trait" href="https://rust-random.github.io/rand/rand_core/trait.RngCore.html" title="trait rand_core::RngCore">RngCore</a> + <a class="trait" href="https://rust-random.github.io/rand/rand_core/trait.CryptoRng.html" title="trait rand_core::CryptoRng">CryptoRng</a>>(
|
|
&self,
|
|
ctx: &mut <a class="struct" href="../../proto/compact_formats/struct.CompactTx.html" title="struct zcash_client_backend::proto::compact_formats::CompactTx">CompactTx</a>,
|
|
nf: Self::<a class="associatedtype" href="trait.TestFvk.html#associatedtype.Nullifier" title="type zcash_client_backend::data_api::testing::TestFvk::Nullifier">Nullifier</a>,
|
|
rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut R</a>,
|
|
);
|
|
<span class="item-spacer"></span> fn <a href="#tymethod.add_output" class="fn">add_output</a><P: Parameters, R: <a class="trait" href="https://rust-random.github.io/rand/rand_core/trait.RngCore.html" title="trait rand_core::RngCore">RngCore</a> + <a class="trait" href="https://rust-random.github.io/rand/rand_core/trait.CryptoRng.html" title="trait rand_core::CryptoRng">CryptoRng</a>>(
|
|
&self,
|
|
ctx: &mut <a class="struct" href="../../proto/compact_formats/struct.CompactTx.html" title="struct zcash_client_backend::proto::compact_formats::CompactTx">CompactTx</a>,
|
|
params: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&P</a>,
|
|
height: BlockHeight,
|
|
req: <a class="enum" href="enum.AddressType.html" title="enum zcash_client_backend::data_api::testing::AddressType">AddressType</a>,
|
|
value: Zatoshis,
|
|
initial_sapling_tree_size: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
|
rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut R</a>,
|
|
) -> Self::<a class="associatedtype" href="trait.TestFvk.html#associatedtype.Nullifier" title="type zcash_client_backend::data_api::testing::TestFvk::Nullifier">Nullifier</a>;
|
|
<span class="item-spacer"></span> fn <a href="#tymethod.add_logical_action" class="fn">add_logical_action</a><P: Parameters, R: <a class="trait" href="https://rust-random.github.io/rand/rand_core/trait.RngCore.html" title="trait rand_core::RngCore">RngCore</a> + <a class="trait" href="https://rust-random.github.io/rand/rand_core/trait.CryptoRng.html" title="trait rand_core::CryptoRng">CryptoRng</a>>(
|
|
&self,
|
|
ctx: &mut <a class="struct" href="../../proto/compact_formats/struct.CompactTx.html" title="struct zcash_client_backend::proto::compact_formats::CompactTx">CompactTx</a>,
|
|
params: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&P</a>,
|
|
height: BlockHeight,
|
|
nf: Self::<a class="associatedtype" href="trait.TestFvk.html#associatedtype.Nullifier" title="type zcash_client_backend::data_api::testing::TestFvk::Nullifier">Nullifier</a>,
|
|
req: <a class="enum" href="enum.AddressType.html" title="enum zcash_client_backend::data_api::testing::AddressType">AddressType</a>,
|
|
value: Zatoshis,
|
|
initial_sapling_tree_size: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
|
rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut R</a>,
|
|
) -> Self::<a class="associatedtype" href="trait.TestFvk.html#associatedtype.Nullifier" title="type zcash_client_backend::data_api::testing::TestFvk::Nullifier">Nullifier</a>;
|
|
}</code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>test-dependencies</code></strong> only.</div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Trait used by tests that require a full viewing key.</p>
|
|
</div></details><h2 id="required-associated-types" class="section-header">Required Associated Types<a href="#required-associated-types" class="anchor">§</a></h2><div class="methods"><details class="toggle" open><summary><section id="associatedtype.Nullifier" class="method"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#1740">Source</a><h4 class="code-header">type <a href="#associatedtype.Nullifier" class="associatedtype">Nullifier</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a></h4></section></summary><div class="docblock"><p>The type of nullifier corresponding to the kind of note that this full viewing key
|
|
can detect (and that its corresponding spending key can spend).</p>
|
|
</div></details></div><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.sapling_ovk" class="method"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#1744">Source</a><h4 class="code-header">fn <a href="#tymethod.sapling_ovk" class="fn">sapling_ovk</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><OutgoingViewingKey></h4></section></summary><div class="docblock"><p>Returns the Sapling outgoing viewing key corresponding to this full viewing key,
|
|
if any.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.orchard_ovk" class="method"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#1749">Source</a><h4 class="code-header">fn <a href="#tymethod.orchard_ovk" class="fn">orchard_ovk</a>(&self, scope: Scope) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><OutgoingViewingKey></h4></section><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>orchard</code></strong> only.</div></span></summary><div class="docblock"><p>Returns the Orchard outgoing viewing key corresponding to this full viewing key,
|
|
if any.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.add_spend" class="method"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#1753-1758">Source</a><h4 class="code-header">fn <a href="#tymethod.add_spend" class="fn">add_spend</a><R: <a class="trait" href="https://rust-random.github.io/rand/rand_core/trait.RngCore.html" title="trait rand_core::RngCore">RngCore</a> + <a class="trait" href="https://rust-random.github.io/rand/rand_core/trait.CryptoRng.html" title="trait rand_core::CryptoRng">CryptoRng</a>>(
|
|
&self,
|
|
ctx: &mut <a class="struct" href="../../proto/compact_formats/struct.CompactTx.html" title="struct zcash_client_backend::proto::compact_formats::CompactTx">CompactTx</a>,
|
|
nf: Self::<a class="associatedtype" href="trait.TestFvk.html#associatedtype.Nullifier" title="type zcash_client_backend::data_api::testing::TestFvk::Nullifier">Nullifier</a>,
|
|
rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut R</a>,
|
|
)</h4></section></summary><div class="docblock"><p>Adds a single spend to the given <a href="../../proto/compact_formats/struct.CompactTx.html" title="struct zcash_client_backend::proto::compact_formats::CompactTx"><code>CompactTx</code></a> of a note previously received by
|
|
this full viewing key.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.add_output" class="method"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#1765-1776">Source</a><h4 class="code-header">fn <a href="#tymethod.add_output" class="fn">add_output</a><P: Parameters, R: <a class="trait" href="https://rust-random.github.io/rand/rand_core/trait.RngCore.html" title="trait rand_core::RngCore">RngCore</a> + <a class="trait" href="https://rust-random.github.io/rand/rand_core/trait.CryptoRng.html" title="trait rand_core::CryptoRng">CryptoRng</a>>(
|
|
&self,
|
|
ctx: &mut <a class="struct" href="../../proto/compact_formats/struct.CompactTx.html" title="struct zcash_client_backend::proto::compact_formats::CompactTx">CompactTx</a>,
|
|
params: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&P</a>,
|
|
height: BlockHeight,
|
|
req: <a class="enum" href="enum.AddressType.html" title="enum zcash_client_backend::data_api::testing::AddressType">AddressType</a>,
|
|
value: Zatoshis,
|
|
initial_sapling_tree_size: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
|
rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut R</a>,
|
|
) -> Self::<a class="associatedtype" href="trait.TestFvk.html#associatedtype.Nullifier" title="type zcash_client_backend::data_api::testing::TestFvk::Nullifier">Nullifier</a></h4></section></summary><div class="docblock"><p>Adds a single output to the given <a href="../../proto/compact_formats/struct.CompactTx.html" title="struct zcash_client_backend::proto::compact_formats::CompactTx"><code>CompactTx</code></a> that will be received by this full
|
|
viewing key.</p>
|
|
<p><code>req</code> allows configuring how the full viewing key will detect the output.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.add_logical_action" class="method"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#1786-1798">Source</a><h4 class="code-header">fn <a href="#tymethod.add_logical_action" class="fn">add_logical_action</a><P: Parameters, R: <a class="trait" href="https://rust-random.github.io/rand/rand_core/trait.RngCore.html" title="trait rand_core::RngCore">RngCore</a> + <a class="trait" href="https://rust-random.github.io/rand/rand_core/trait.CryptoRng.html" title="trait rand_core::CryptoRng">CryptoRng</a>>(
|
|
&self,
|
|
ctx: &mut <a class="struct" href="../../proto/compact_formats/struct.CompactTx.html" title="struct zcash_client_backend::proto::compact_formats::CompactTx">CompactTx</a>,
|
|
params: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&P</a>,
|
|
height: BlockHeight,
|
|
nf: Self::<a class="associatedtype" href="trait.TestFvk.html#associatedtype.Nullifier" title="type zcash_client_backend::data_api::testing::TestFvk::Nullifier">Nullifier</a>,
|
|
req: <a class="enum" href="enum.AddressType.html" title="enum zcash_client_backend::data_api::testing::AddressType">AddressType</a>,
|
|
value: Zatoshis,
|
|
initial_sapling_tree_size: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
|
rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut R</a>,
|
|
) -> Self::<a class="associatedtype" href="trait.TestFvk.html#associatedtype.Nullifier" title="type zcash_client_backend::data_api::testing::TestFvk::Nullifier">Nullifier</a></h4></section></summary><div class="docblock"><p>Adds both a spend and an output to the given <a href="../../proto/compact_formats/struct.CompactTx.html" title="struct zcash_client_backend::proto::compact_formats::CompactTx"><code>CompactTx</code></a>.</p>
|
|
<ul>
|
|
<li>If this is a Sapling full viewing key, the transaction will gain both a Spend
|
|
and an Output.</li>
|
|
<li>If this is an Orchard full viewing key, the transaction will gain an Action.</li>
|
|
</ul>
|
|
<p><code>req</code> allows configuring how the full viewing key will detect the output.</p>
|
|
</div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#dyn-compatibility">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></div><h2 id="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-TestFvk-for-FullViewingKey" class="impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#1944-2045">Source</a><a href="#impl-TestFvk-for-FullViewingKey" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.TestFvk.html" title="trait zcash_client_backend::data_api::testing::TestFvk">TestFvk</a> for FullViewingKey</h3><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>orchard</code></strong> only.</div></span></section></summary><div class="impl-items"><section id="associatedtype.Nullifier-1" class="associatedtype trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#1945">Source</a><a href="#associatedtype.Nullifier-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Nullifier" class="associatedtype">Nullifier</a> = Nullifier</h4></section><section id="method.sapling_ovk" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#1947-1949">Source</a><a href="#method.sapling_ovk" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.sapling_ovk" class="fn">sapling_ovk</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><OutgoingViewingKey></h4></section><section id="method.orchard_ovk" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#1951-1953">Source</a><a href="#method.orchard_ovk" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.orchard_ovk" class="fn">orchard_ovk</a>(&self, scope: Scope) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><OutgoingViewingKey></h4></section><section id="method.add_spend" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#1955-1980">Source</a><a href="#method.add_spend" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.add_spend" class="fn">add_spend</a><R: <a class="trait" href="https://rust-random.github.io/rand/rand_core/trait.RngCore.html" title="trait rand_core::RngCore">RngCore</a> + <a class="trait" href="https://rust-random.github.io/rand/rand_core/trait.CryptoRng.html" title="trait rand_core::CryptoRng">CryptoRng</a>>(
|
|
&self,
|
|
ctx: &mut <a class="struct" href="../../proto/compact_formats/struct.CompactTx.html" title="struct zcash_client_backend::proto::compact_formats::CompactTx">CompactTx</a>,
|
|
revealed_spent_note_nullifier: Self::<a class="associatedtype" href="trait.TestFvk.html#associatedtype.Nullifier" title="type zcash_client_backend::data_api::testing::TestFvk::Nullifier">Nullifier</a>,
|
|
rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut R</a>,
|
|
)</h4></section><section id="method.add_output" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#1982-2013">Source</a><a href="#method.add_output" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.add_output" class="fn">add_output</a><P: Parameters, R: <a class="trait" href="https://rust-random.github.io/rand/rand_core/trait.RngCore.html" title="trait rand_core::RngCore">RngCore</a> + <a class="trait" href="https://rust-random.github.io/rand/rand_core/trait.CryptoRng.html" title="trait rand_core::CryptoRng">CryptoRng</a>>(
|
|
&self,
|
|
ctx: &mut <a class="struct" href="../../proto/compact_formats/struct.CompactTx.html" title="struct zcash_client_backend::proto::compact_formats::CompactTx">CompactTx</a>,
|
|
_: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&P</a>,
|
|
_: BlockHeight,
|
|
req: <a class="enum" href="enum.AddressType.html" title="enum zcash_client_backend::data_api::testing::AddressType">AddressType</a>,
|
|
value: Zatoshis,
|
|
_: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
|
rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut R</a>,
|
|
) -> Self::<a class="associatedtype" href="trait.TestFvk.html#associatedtype.Nullifier" title="type zcash_client_backend::data_api::testing::TestFvk::Nullifier">Nullifier</a></h4></section><section id="method.add_logical_action" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2016-2044">Source</a><a href="#method.add_logical_action" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.add_logical_action" class="fn">add_logical_action</a><P: Parameters, R: <a class="trait" href="https://rust-random.github.io/rand/rand_core/trait.RngCore.html" title="trait rand_core::RngCore">RngCore</a> + <a class="trait" href="https://rust-random.github.io/rand/rand_core/trait.CryptoRng.html" title="trait rand_core::CryptoRng">CryptoRng</a>>(
|
|
&self,
|
|
ctx: &mut <a class="struct" href="../../proto/compact_formats/struct.CompactTx.html" title="struct zcash_client_backend::proto::compact_formats::CompactTx">CompactTx</a>,
|
|
_: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&P</a>,
|
|
_: BlockHeight,
|
|
revealed_spent_note_nullifier: Self::<a class="associatedtype" href="trait.TestFvk.html#associatedtype.Nullifier" title="type zcash_client_backend::data_api::testing::TestFvk::Nullifier">Nullifier</a>,
|
|
address_type: <a class="enum" href="enum.AddressType.html" title="enum zcash_client_backend::data_api::testing::AddressType">AddressType</a>,
|
|
value: Zatoshis,
|
|
_: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
|
rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut R</a>,
|
|
) -> Self::<a class="associatedtype" href="trait.TestFvk.html#associatedtype.Nullifier" title="type zcash_client_backend::data_api::testing::TestFvk::Nullifier">Nullifier</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TestFvk-for-%26A" class="impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#1801-1869">Source</a><a href="#impl-TestFvk-for-%26A" class="anchor">§</a><h3 class="code-header">impl<A: <a class="trait" href="trait.TestFvk.html" title="trait zcash_client_backend::data_api::testing::TestFvk">TestFvk</a>> <a class="trait" href="trait.TestFvk.html" title="trait zcash_client_backend::data_api::testing::TestFvk">TestFvk</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&A</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Nullifier-2" class="associatedtype trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#1802">Source</a><a href="#associatedtype.Nullifier-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Nullifier" class="associatedtype">Nullifier</a> = <A as <a class="trait" href="trait.TestFvk.html" title="trait zcash_client_backend::data_api::testing::TestFvk">TestFvk</a>>::<a class="associatedtype" href="trait.TestFvk.html#associatedtype.Nullifier" title="type zcash_client_backend::data_api::testing::TestFvk::Nullifier">Nullifier</a></h4></section><section id="method.sapling_ovk-1" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#1804-1806">Source</a><a href="#method.sapling_ovk-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.sapling_ovk" class="fn">sapling_ovk</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><OutgoingViewingKey></h4></section><details class="toggle method-toggle" open><summary><section id="method.orchard_ovk-1" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#1809-1811">Source</a><a href="#method.orchard_ovk-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.orchard_ovk" class="fn">orchard_ovk</a>(&self, scope: Scope) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><OutgoingViewingKey></h4></section></summary><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>orchard</code></strong> only.</div></span></details><section id="method.add_spend-1" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#1813-1820">Source</a><a href="#method.add_spend-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.add_spend" class="fn">add_spend</a><R: <a class="trait" href="https://rust-random.github.io/rand/rand_core/trait.RngCore.html" title="trait rand_core::RngCore">RngCore</a> + <a class="trait" href="https://rust-random.github.io/rand/rand_core/trait.CryptoRng.html" title="trait rand_core::CryptoRng">CryptoRng</a>>(
|
|
&self,
|
|
ctx: &mut <a class="struct" href="../../proto/compact_formats/struct.CompactTx.html" title="struct zcash_client_backend::proto::compact_formats::CompactTx">CompactTx</a>,
|
|
nf: Self::<a class="associatedtype" href="trait.TestFvk.html#associatedtype.Nullifier" title="type zcash_client_backend::data_api::testing::TestFvk::Nullifier">Nullifier</a>,
|
|
rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut R</a>,
|
|
)</h4></section><section id="method.add_output-1" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#1822-1843">Source</a><a href="#method.add_output-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.add_output" class="fn">add_output</a><P: Parameters, R: <a class="trait" href="https://rust-random.github.io/rand/rand_core/trait.RngCore.html" title="trait rand_core::RngCore">RngCore</a> + <a class="trait" href="https://rust-random.github.io/rand/rand_core/trait.CryptoRng.html" title="trait rand_core::CryptoRng">CryptoRng</a>>(
|
|
&self,
|
|
ctx: &mut <a class="struct" href="../../proto/compact_formats/struct.CompactTx.html" title="struct zcash_client_backend::proto::compact_formats::CompactTx">CompactTx</a>,
|
|
params: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&P</a>,
|
|
height: BlockHeight,
|
|
req: <a class="enum" href="enum.AddressType.html" title="enum zcash_client_backend::data_api::testing::AddressType">AddressType</a>,
|
|
value: Zatoshis,
|
|
initial_sapling_tree_size: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
|
rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut R</a>,
|
|
) -> Self::<a class="associatedtype" href="trait.TestFvk.html#associatedtype.Nullifier" title="type zcash_client_backend::data_api::testing::TestFvk::Nullifier">Nullifier</a></h4></section><section id="method.add_logical_action-1" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#1845-1868">Source</a><a href="#method.add_logical_action-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.add_logical_action" class="fn">add_logical_action</a><P: Parameters, R: <a class="trait" href="https://rust-random.github.io/rand/rand_core/trait.RngCore.html" title="trait rand_core::RngCore">RngCore</a> + <a class="trait" href="https://rust-random.github.io/rand/rand_core/trait.CryptoRng.html" title="trait rand_core::CryptoRng">CryptoRng</a>>(
|
|
&self,
|
|
ctx: &mut <a class="struct" href="../../proto/compact_formats/struct.CompactTx.html" title="struct zcash_client_backend::proto::compact_formats::CompactTx">CompactTx</a>,
|
|
params: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&P</a>,
|
|
height: BlockHeight,
|
|
nf: Self::<a class="associatedtype" href="trait.TestFvk.html#associatedtype.Nullifier" title="type zcash_client_backend::data_api::testing::TestFvk::Nullifier">Nullifier</a>,
|
|
req: <a class="enum" href="enum.AddressType.html" title="enum zcash_client_backend::data_api::testing::AddressType">AddressType</a>,
|
|
value: Zatoshis,
|
|
initial_sapling_tree_size: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
|
rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut R</a>,
|
|
) -> Self::<a class="associatedtype" href="trait.TestFvk.html#associatedtype.Nullifier" title="type zcash_client_backend::data_api::testing::TestFvk::Nullifier">Nullifier</a></h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><details class="toggle implementors-toggle"><summary><section id="impl-TestFvk-for-DiversifiableFullViewingKey" class="impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#1871-1941">Source</a><a href="#impl-TestFvk-for-DiversifiableFullViewingKey" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.TestFvk.html" title="trait zcash_client_backend::data_api::testing::TestFvk">TestFvk</a> for <a class="struct" href="../../keys/sapling/struct.DiversifiableFullViewingKey.html" title="struct zcash_client_backend::keys::sapling::DiversifiableFullViewingKey">DiversifiableFullViewingKey</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Nullifier-3" class="associatedtype trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#1872">Source</a><a href="#associatedtype.Nullifier-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Nullifier" class="associatedtype">Nullifier</a> = Nullifier</h4></section></div></details></div><script src="../../../trait.impl/zcash_client_backend/data_api/testing/trait.TestFvk.js" data-ignore-extern-crates="sapling_crypto,orchard" async></script></section></div></main></body></html> |