librustzcash/rustdoc/latest/zcash_note_encryption/trait.Domain.html

46 lines
50 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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="API documentation for the Rust `Domain` trait in crate `zcash_note_encryption`."><meta name="keywords" content="rust, rustlang, rust-lang, Domain"><title>Domain in zcash_note_encryption - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings" ></script><script src="../storage.js"></script><script src="../crates.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../favicon.svg"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></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="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../zcash_note_encryption/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><h2 class="location">Trait Domain</h2><div class="sidebar-elems"><div class="block items"><h3 class="sidebar-title"><a href="#associated-types">Associated Types</a></h3><div class="sidebar-links"><a href="#associatedtype.DiversifiedTransmissionKey">DiversifiedTransmissionKey</a><a href="#associatedtype.EphemeralPublicKey">EphemeralPublicKey</a><a href="#associatedtype.EphemeralSecretKey">EphemeralSecretKey</a><a href="#associatedtype.ExtractedCommitment">ExtractedCommitment</a><a href="#associatedtype.ExtractedCommitmentBytes">ExtractedCommitmentBytes</a><a href="#associatedtype.IncomingViewingKey">IncomingViewingKey</a><a href="#associatedtype.Memo">Memo</a><a href="#associatedtype.Note">Note</a><a href="#associatedtype.OutgoingViewingKey">OutgoingViewingKey</a><a href="#associatedtype.Recipient">Recipient</a><a href="#associatedtype.SharedSecret">SharedSecret</a><a href="#associatedtype.SymmetricKey">SymmetricKey</a><a href="#associatedtype.ValueCommitment">ValueCommitment</a></div><h3 class="sidebar-title"><a href="#required-methods">Required Methods</a></h3><div class="sidebar-links"><a href="#tymethod.check_epk_bytes">check_epk_bytes</a><a href="#tymethod.cmstar">cmstar</a><a href="#tymethod.derive_esk">derive_esk</a><a href="#tymethod.derive_ock">derive_ock</a><a href="#tymethod.epk">epk</a><a href="#tymethod.epk_bytes">epk_bytes</a><a href="#tymethod.extract_esk">extract_esk</a><a href="#tymethod.extract_memo">extract_memo</a><a href="#tymethod.extract_pk_d">extract_pk_d</a><a href="#tymethod.get_pk_d">get_pk_d</a><a href="#tymethod.ka_agree_dec">ka_agree_dec</a><a href="#tymethod.ka_agree_enc">ka_agree_enc</a><a href="#tymethod.ka_derive_public">ka_derive_public</a><a href="#tymethod.kdf">kdf</a><a href="#tymethod.note_plaintext_bytes">note_plaintext_bytes</a><a href="#tymethod.outgoing_plaintext_bytes">outgoing_plaintext_bytes</a><a href="#tymethod.parse_note_plaintext_without_memo_ivk">parse_note_plaintext_without_memo_ivk</a><a href="#tymethod.parse_note_plaintext_without_memo_ovk">parse_note_plaintext_without_memo_ovk</a></div><h3 class="sidebar-title"><a href="#provided-methods">Provided Methods</a></h3><div class="sidebar-links"><a href="#method.batch_epk">batch_epk</a><a href="#method.batch_kdf">batch_kdf</a></div><h3 class="sidebar-title"><a href="#implementors">Implementors</a></h3></div><h2 class="location">Other items in<br><a href="index.html">zcash_note_encryption</a></h2><div id="sidebar-vars" data-name="Domain" data-ty="trait" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Trait <a href="index.html">zcash_note_encryption</a>::<wbr><a class="trait" href="#">Domain</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span><a class="srclink" href="../src/zcash_note_encryption/lib.rs.html#83-204" title="goto source code">[src]</a></span></h1><div class="docblock type-decl"><pre class="rust trait"><code>pub trait Domain {
<details class="rustdoc-toggle type-contents-toggle"><summary class="hideme"><span>Show 33 associated items</span></summary> type <a href="#associatedtype.EphemeralSecretKey" class="type">EphemeralSecretKey</a>: <a class="trait" href="https://docs.rs/subtle/2.4.1/subtle/trait.ConstantTimeEq.html" title="trait subtle::ConstantTimeEq">ConstantTimeEq</a>;
type <a href="#associatedtype.EphemeralPublicKey" class="type">EphemeralPublicKey</a>;
type <a href="#associatedtype.SharedSecret" class="type">SharedSecret</a>;
type <a href="#associatedtype.SymmetricKey" class="type">SymmetricKey</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">[</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>&gt;;
type <a href="#associatedtype.Note" class="type">Note</a>;
type <a href="#associatedtype.Recipient" class="type">Recipient</a>;
type <a href="#associatedtype.DiversifiedTransmissionKey" class="type">DiversifiedTransmissionKey</a>;
type <a href="#associatedtype.IncomingViewingKey" class="type">IncomingViewingKey</a>;
type <a href="#associatedtype.OutgoingViewingKey" class="type">OutgoingViewingKey</a>;
type <a href="#associatedtype.ValueCommitment" class="type">ValueCommitment</a>;
type <a href="#associatedtype.ExtractedCommitment" class="type">ExtractedCommitment</a>;
type <a href="#associatedtype.ExtractedCommitmentBytes" class="type">ExtractedCommitmentBytes</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + for&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;&amp;'a Self::<a class="type" href="trait.Domain.html#associatedtype.ExtractedCommitment" title="type zcash_note_encryption::Domain::ExtractedCommitment">ExtractedCommitment</a>&gt;;
type <a href="#associatedtype.Memo" class="type">Memo</a>;
fn <a href="#tymethod.derive_esk" class="fnname">derive_esk</a>(note: &amp;Self::<a class="type" href="trait.Domain.html#associatedtype.Note" title="type zcash_note_encryption::Domain::Note">Note</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self::<a class="type" href="trait.Domain.html#associatedtype.EphemeralSecretKey" title="type zcash_note_encryption::Domain::EphemeralSecretKey">EphemeralSecretKey</a>&gt;;
<div class="item-spacer"></div> fn <a href="#tymethod.get_pk_d" class="fnname">get_pk_d</a>(note: &amp;Self::<a class="type" href="trait.Domain.html#associatedtype.Note" title="type zcash_note_encryption::Domain::Note">Note</a>) -&gt; Self::<a class="type" href="trait.Domain.html#associatedtype.DiversifiedTransmissionKey" title="type zcash_note_encryption::Domain::DiversifiedTransmissionKey">DiversifiedTransmissionKey</a>;
<div class="item-spacer"></div> fn <a href="#tymethod.ka_derive_public" class="fnname">ka_derive_public</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;note: &amp;Self::<a class="type" href="trait.Domain.html#associatedtype.Note" title="type zcash_note_encryption::Domain::Note">Note</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;esk: &amp;Self::<a class="type" href="trait.Domain.html#associatedtype.EphemeralSecretKey" title="type zcash_note_encryption::Domain::EphemeralSecretKey">EphemeralSecretKey</a><br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; Self::<a class="type" href="trait.Domain.html#associatedtype.EphemeralPublicKey" title="type zcash_note_encryption::Domain::EphemeralPublicKey">EphemeralPublicKey</a>;
<div class="item-spacer"></div> fn <a href="#tymethod.ka_agree_enc" class="fnname">ka_agree_enc</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;esk: &amp;Self::<a class="type" href="trait.Domain.html#associatedtype.EphemeralSecretKey" title="type zcash_note_encryption::Domain::EphemeralSecretKey">EphemeralSecretKey</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pk_d: &amp;Self::<a class="type" href="trait.Domain.html#associatedtype.DiversifiedTransmissionKey" title="type zcash_note_encryption::Domain::DiversifiedTransmissionKey">DiversifiedTransmissionKey</a><br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; Self::<a class="type" href="trait.Domain.html#associatedtype.SharedSecret" title="type zcash_note_encryption::Domain::SharedSecret">SharedSecret</a>;
<div class="item-spacer"></div> fn <a href="#tymethod.ka_agree_dec" class="fnname">ka_agree_dec</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ivk: &amp;Self::<a class="type" href="trait.Domain.html#associatedtype.IncomingViewingKey" title="type zcash_note_encryption::Domain::IncomingViewingKey">IncomingViewingKey</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;epk: &amp;Self::<a class="type" href="trait.Domain.html#associatedtype.EphemeralPublicKey" title="type zcash_note_encryption::Domain::EphemeralPublicKey">EphemeralPublicKey</a><br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; Self::<a class="type" href="trait.Domain.html#associatedtype.SharedSecret" title="type zcash_note_encryption::Domain::SharedSecret">SharedSecret</a>;
<div class="item-spacer"></div> fn <a href="#tymethod.kdf" class="fnname">kdf</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;secret: Self::<a class="type" href="trait.Domain.html#associatedtype.SharedSecret" title="type zcash_note_encryption::Domain::SharedSecret">SharedSecret</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ephemeral_key: &amp;<a class="struct" href="struct.EphemeralKeyBytes.html" title="struct zcash_note_encryption::EphemeralKeyBytes">EphemeralKeyBytes</a><br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; Self::<a class="type" href="trait.Domain.html#associatedtype.SymmetricKey" title="type zcash_note_encryption::Domain::SymmetricKey">SymmetricKey</a>;
<div class="item-spacer"></div> fn <a href="#tymethod.note_plaintext_bytes" class="fnname">note_plaintext_bytes</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;note: &amp;Self::<a class="type" href="trait.Domain.html#associatedtype.Note" title="type zcash_note_encryption::Domain::Note">Note</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;recipient: &amp;Self::<a class="type" href="trait.Domain.html#associatedtype.Recipient" title="type zcash_note_encryption::Domain::Recipient">Recipient</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;memo: &amp;Self::<a class="type" href="trait.Domain.html#associatedtype.Memo" title="type zcash_note_encryption::Domain::Memo">Memo</a><br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="struct" href="struct.NotePlaintextBytes.html" title="struct zcash_note_encryption::NotePlaintextBytes">NotePlaintextBytes</a>;
<div class="item-spacer"></div> fn <a href="#tymethod.derive_ock" class="fnname">derive_ock</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ovk: &amp;Self::<a class="type" href="trait.Domain.html#associatedtype.OutgoingViewingKey" title="type zcash_note_encryption::Domain::OutgoingViewingKey">OutgoingViewingKey</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cv: &amp;Self::<a class="type" href="trait.Domain.html#associatedtype.ValueCommitment" title="type zcash_note_encryption::Domain::ValueCommitment">ValueCommitment</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cmstar_bytes: &amp;Self::<a class="type" href="trait.Domain.html#associatedtype.ExtractedCommitmentBytes" title="type zcash_note_encryption::Domain::ExtractedCommitmentBytes">ExtractedCommitmentBytes</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ephemeral_key: &amp;<a class="struct" href="struct.EphemeralKeyBytes.html" title="struct zcash_note_encryption::EphemeralKeyBytes">EphemeralKeyBytes</a><br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="struct" href="struct.OutgoingCipherKey.html" title="struct zcash_note_encryption::OutgoingCipherKey">OutgoingCipherKey</a>;
<div class="item-spacer"></div> fn <a href="#tymethod.outgoing_plaintext_bytes" class="fnname">outgoing_plaintext_bytes</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;note: &amp;Self::<a class="type" href="trait.Domain.html#associatedtype.Note" title="type zcash_note_encryption::Domain::Note">Note</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;esk: &amp;Self::<a class="type" href="trait.Domain.html#associatedtype.EphemeralSecretKey" title="type zcash_note_encryption::Domain::EphemeralSecretKey">EphemeralSecretKey</a><br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="struct" href="struct.OutPlaintextBytes.html" title="struct zcash_note_encryption::OutPlaintextBytes">OutPlaintextBytes</a>;
<div class="item-spacer"></div> fn <a href="#tymethod.epk_bytes" class="fnname">epk_bytes</a>(epk: &amp;Self::<a class="type" href="trait.Domain.html#associatedtype.EphemeralPublicKey" title="type zcash_note_encryption::Domain::EphemeralPublicKey">EphemeralPublicKey</a>) -&gt; <a class="struct" href="struct.EphemeralKeyBytes.html" title="struct zcash_note_encryption::EphemeralKeyBytes">EphemeralKeyBytes</a>;
<div class="item-spacer"></div> fn <a href="#tymethod.epk" class="fnname">epk</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ephemeral_key: &amp;<a class="struct" href="struct.EphemeralKeyBytes.html" title="struct zcash_note_encryption::EphemeralKeyBytes">EphemeralKeyBytes</a><br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self::<a class="type" href="trait.Domain.html#associatedtype.EphemeralPublicKey" title="type zcash_note_encryption::Domain::EphemeralPublicKey">EphemeralPublicKey</a>&gt;;
<div class="item-spacer"></div> fn <a href="#tymethod.check_epk_bytes" class="fnname">check_epk_bytes</a>&lt;F:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(&amp;Self::<a class="type" href="trait.Domain.html#associatedtype.EphemeralSecretKey" title="type zcash_note_encryption::Domain::EphemeralSecretKey">EphemeralSecretKey</a>) -&gt; <a class="enum" href="enum.NoteValidity.html" title="enum zcash_note_encryption::NoteValidity">NoteValidity</a>&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;note: &amp;Self::<a class="type" href="trait.Domain.html#associatedtype.Note" title="type zcash_note_encryption::Domain::Note">Note</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;check: F<br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="enum" href="enum.NoteValidity.html" title="enum zcash_note_encryption::NoteValidity">NoteValidity</a>;
<div class="item-spacer"></div> fn <a href="#tymethod.cmstar" class="fnname">cmstar</a>(note: &amp;Self::<a class="type" href="trait.Domain.html#associatedtype.Note" title="type zcash_note_encryption::Domain::Note">Note</a>) -&gt; Self::<a class="type" href="trait.Domain.html#associatedtype.ExtractedCommitment" title="type zcash_note_encryption::Domain::ExtractedCommitment">ExtractedCommitment</a>;
<div class="item-spacer"></div> fn <a href="#tymethod.parse_note_plaintext_without_memo_ivk" class="fnname">parse_note_plaintext_without_memo_ivk</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ivk: &amp;Self::<a class="type" href="trait.Domain.html#associatedtype.IncomingViewingKey" title="type zcash_note_encryption::Domain::IncomingViewingKey">IncomingViewingKey</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;plaintext: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;[</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a><br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>Self::<a class="type" href="trait.Domain.html#associatedtype.Note" title="type zcash_note_encryption::Domain::Note">Note</a>, Self::<a class="type" href="trait.Domain.html#associatedtype.Recipient" title="type zcash_note_encryption::Domain::Recipient">Recipient</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>&gt;;
<div class="item-spacer"></div> fn <a href="#tymethod.parse_note_plaintext_without_memo_ovk" class="fnname">parse_note_plaintext_without_memo_ovk</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pk_d: &amp;Self::<a class="type" href="trait.Domain.html#associatedtype.DiversifiedTransmissionKey" title="type zcash_note_encryption::Domain::DiversifiedTransmissionKey">DiversifiedTransmissionKey</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;esk: &amp;Self::<a class="type" href="trait.Domain.html#associatedtype.EphemeralSecretKey" title="type zcash_note_encryption::Domain::EphemeralSecretKey">EphemeralSecretKey</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ephemeral_key: &amp;<a class="struct" href="struct.EphemeralKeyBytes.html" title="struct zcash_note_encryption::EphemeralKeyBytes">EphemeralKeyBytes</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;plaintext: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;[</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a><br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>Self::<a class="type" href="trait.Domain.html#associatedtype.Note" title="type zcash_note_encryption::Domain::Note">Note</a>, Self::<a class="type" href="trait.Domain.html#associatedtype.Recipient" title="type zcash_note_encryption::Domain::Recipient">Recipient</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>&gt;;
<div class="item-spacer"></div> fn <a href="#tymethod.extract_memo" class="fnname">extract_memo</a>(&amp;self, plaintext: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;[</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>) -&gt; Self::<a class="type" href="trait.Domain.html#associatedtype.Memo" title="type zcash_note_encryption::Domain::Memo">Memo</a>;
<div class="item-spacer"></div> fn <a href="#tymethod.extract_pk_d" class="fnname">extract_pk_d</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;out_plaintext: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 64]</a><br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self::<a class="type" href="trait.Domain.html#associatedtype.DiversifiedTransmissionKey" title="type zcash_note_encryption::Domain::DiversifiedTransmissionKey">DiversifiedTransmissionKey</a>&gt;;
<div class="item-spacer"></div> fn <a href="#tymethod.extract_esk" class="fnname">extract_esk</a>(out_plaintext: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 64]</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self::<a class="type" href="trait.Domain.html#associatedtype.EphemeralSecretKey" title="type zcash_note_encryption::Domain::EphemeralSecretKey">EphemeralSecretKey</a>&gt;;
fn <a href="#method.batch_kdf" class="fnname">batch_kdf</a>&lt;'a&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;items: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a>&lt;Item = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self::<a class="type" href="trait.Domain.html#associatedtype.SharedSecret" title="type zcash_note_encryption::Domain::SharedSecret">SharedSecret</a>&gt;, &amp;'a <a class="struct" href="struct.EphemeralKeyBytes.html" title="struct zcash_note_encryption::EphemeralKeyBytes">EphemeralKeyBytes</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self::<a class="type" href="trait.Domain.html#associatedtype.SymmetricKey" title="type zcash_note_encryption::Domain::SymmetricKey">SymmetricKey</a>&gt;&gt; { ... }
<div class="item-spacer"></div> fn <a href="#method.batch_epk" class="fnname">batch_epk</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ephemeral_keys: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a>&lt;Item = <a class="struct" href="struct.EphemeralKeyBytes.html" title="struct zcash_note_encryption::EphemeralKeyBytes">EphemeralKeyBytes</a>&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self::<a class="type" href="trait.Domain.html#associatedtype.EphemeralPublicKey" title="type zcash_note_encryption::Domain::EphemeralPublicKey">EphemeralPublicKey</a>&gt;, <a class="struct" href="struct.EphemeralKeyBytes.html" title="struct zcash_note_encryption::EphemeralKeyBytes">EphemeralKeyBytes</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>&gt; { ... }
</details>}</code></pre></div><h2 id="associated-types" class="small-section-header">Associated Types<a href="#associated-types" class="anchor"></a></h2><div class="methods"><div id="associatedtype.EphemeralSecretKey" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/zcash_note_encryption/lib.rs.html#84" title="goto source code">[src]</a></div><h4 class="code-header">type <a href="#associatedtype.EphemeralSecretKey" class="type">EphemeralSecretKey</a>: <a class="trait" href="https://docs.rs/subtle/2.4.1/subtle/trait.ConstantTimeEq.html" title="trait subtle::ConstantTimeEq">ConstantTimeEq</a></h4></div><div id="associatedtype.EphemeralPublicKey" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/zcash_note_encryption/lib.rs.html#85" title="goto source code">[src]</a></div><h4 class="code-header">type <a href="#associatedtype.EphemeralPublicKey" class="type">EphemeralPublicKey</a></h4></div><div id="associatedtype.SharedSecret" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/zcash_note_encryption/lib.rs.html#86" title="goto source code">[src]</a></div><h4 class="code-header">type <a href="#associatedtype.SharedSecret" class="type">SharedSecret</a></h4></div><div id="associatedtype.SymmetricKey" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/zcash_note_encryption/lib.rs.html#87" title="goto source code">[src]</a></div><h4 class="code-header">type <a href="#associatedtype.SymmetricKey" class="type">SymmetricKey</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">[</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>&gt;</h4></div><div id="associatedtype.Note" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/zcash_note_encryption/lib.rs.html#88" title="goto source code">[src]</a></div><h4 class="code-header">type <a href="#associatedtype.Note" class="type">Note</a></h4></div><div id="associatedtype.Recipient" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/zcash_note_encryption/lib.rs.html#89" title="goto source code">[src]</a></div><h4 class="code-header">type <a href="#associatedtype.Recipient" class="type">Recipient</a></h4></div><div id="associatedtype.DiversifiedTransmissionKey" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/zcash_note_encryption/lib.rs.html#90" title="goto source code">[src]</a></div><h4 class="code-header">type <a href="#associatedtype.DiversifiedTransmissionKey" class="type">DiversifiedTransmissionKey</a></h4></div><div id="associatedtype.IncomingViewingKey" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/zcash_note_encryption/lib.rs.html#91" title="goto source code">[src]</a></div><h4 class="code-header">type <a href="#associatedtype.IncomingViewingKey" class="type">IncomingViewingKey</a></h4></div><div id="associatedtype.OutgoingViewingKey" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/zcash_note_encryption/lib.rs.html#92" title="goto source code">[src]</a></div><h4 class="code-header">type <a href="#associatedtype.OutgoingViewingKey" class="type">OutgoingViewingKey</a></h4></div><div id="associatedtype.ValueCommitment" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/zcash_note_encryption/lib.rs.html#93" title="goto source code">[src]</a></div><h4 class="code-header">type <a href="#associatedtype.ValueCommitment" class="type">ValueCommitment</a></h4></div><div id="associatedtype.ExtractedCommitment" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/zcash_note_encryption/lib.rs.html#94" title="goto source code">[src]</a></div><h4 class="code-header">type <a href="#associatedtype.ExtractedCommitment" class="type">ExtractedCommitment</a></h4></div><div id="associatedtype.ExtractedCommitmentBytes" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/zcash_note_encryption/lib.rs.html#95" title="goto source code">[src]</a></div><h4 class="code-header">type <a href="#associatedtype.ExtractedCommitmentBytes" class="type">ExtractedCommitmentBytes</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + for&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;&amp;'a Self::<a class="type" href="trait.Domain.html#associatedtype.ExtractedCommitment" title="type zcash_note_encryption::Domain::ExtractedCommitment">ExtractedCommitment</a>&gt;</h4></div><div id="associatedtype.Memo" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/zcash_note_encryption/lib.rs.html#96" title="goto source code">[src]</a></div><h4 class="code-header">type <a href="#associatedtype.Memo" class="type">Memo</a></h4></div></div><h2 id="required-methods" class="small-section-header">Required methods<a href="#required-methods" class="anchor"></a></h2><div class="methods"><div id="tymethod.derive_esk" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/zcash_note_encryption/lib.rs.html#98" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#tymethod.derive_esk" class="fnname">derive_esk</a>(note: &amp;Self::<a class="type" href="trait.Domain.html#associatedtype.Note" title="type zcash_note_encryption::Domain::Note">Note</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self::<a class="type" href="trait.Domain.html#associatedtype.EphemeralSecretKey" title="type zcash_note_encryption::Domain::EphemeralSecretKey">EphemeralSecretKey</a>&gt;</h4></div><div id="tymethod.get_pk_d" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/zcash_note_encryption/lib.rs.html#100" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#tymethod.get_pk_d" class="fnname">get_pk_d</a>(note: &amp;Self::<a class="type" href="trait.Domain.html#associatedtype.Note" title="type zcash_note_encryption::Domain::Note">Note</a>) -&gt; Self::<a class="type" href="trait.Domain.html#associatedtype.DiversifiedTransmissionKey" title="type zcash_note_encryption::Domain::DiversifiedTransmissionKey">DiversifiedTransmissionKey</a></h4></div><div id="tymethod.ka_derive_public" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/zcash_note_encryption/lib.rs.html#102-105" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#tymethod.ka_derive_public" class="fnname">ka_derive_public</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;note: &amp;Self::<a class="type" href="trait.Domain.html#associatedtype.Note" title="type zcash_note_encryption::Domain::Note">Note</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;esk: &amp;Self::<a class="type" href="trait.Domain.html#associatedtype.EphemeralSecretKey" title="type zcash_note_encryption::Domain::EphemeralSecretKey">EphemeralSecretKey</a><br>) -&gt; Self::<a class="type" href="trait.Domain.html#associatedtype.EphemeralPublicKey" title="type zcash_note_encryption::Domain::EphemeralPublicKey">EphemeralPublicKey</a></h4></div><div id="tymethod.ka_agree_enc" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/zcash_note_encryption/lib.rs.html#107-110" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#tymethod.ka_agree_enc" class="fnname">ka_agree_enc</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;esk: &amp;Self::<a class="type" href="trait.Domain.html#associatedtype.EphemeralSecretKey" title="type zcash_note_encryption::Domain::EphemeralSecretKey">EphemeralSecretKey</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;pk_d: &amp;Self::<a class="type" href="trait.Domain.html#associatedtype.DiversifiedTransmissionKey" title="type zcash_note_encryption::Domain::DiversifiedTransmissionKey">DiversifiedTransmissionKey</a><br>) -&gt; Self::<a class="type" href="trait.Domain.html#associatedtype.SharedSecret" title="type zcash_note_encryption::Domain::SharedSecret">SharedSecret</a></h4></div><div id="tymethod.ka_agree_dec" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/zcash_note_encryption/lib.rs.html#112-115" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#tymethod.ka_agree_dec" class="fnname">ka_agree_dec</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;ivk: &amp;Self::<a class="type" href="trait.Domain.html#associatedtype.IncomingViewingKey" title="type zcash_note_encryption::Domain::IncomingViewingKey">IncomingViewingKey</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;epk: &amp;Self::<a class="type" href="trait.Domain.html#associatedtype.EphemeralPublicKey" title="type zcash_note_encryption::Domain::EphemeralPublicKey">EphemeralPublicKey</a><br>) -&gt; Self::<a class="type" href="trait.Domain.html#associatedtype.SharedSecret" title="type zcash_note_encryption::Domain::SharedSecret">SharedSecret</a></h4></div><div id="tymethod.kdf" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/zcash_note_encryption/lib.rs.html#117" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#tymethod.kdf" class="fnname">kdf</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;secret: Self::<a class="type" href="trait.Domain.html#associatedtype.SharedSecret" title="type zcash_note_encryption::Domain::SharedSecret">SharedSecret</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;ephemeral_key: &amp;<a class="struct" href="struct.EphemeralKeyBytes.html" title="struct zcash_note_encryption::EphemeralKeyBytes">EphemeralKeyBytes</a><br>) -&gt; Self::<a class="type" href="trait.Domain.html#associatedtype.SymmetricKey" title="type zcash_note_encryption::Domain::SymmetricKey">SymmetricKey</a></h4></div><div id="tymethod.note_plaintext_bytes" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/zcash_note_encryption/lib.rs.html#135-139" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#tymethod.note_plaintext_bytes" class="fnname">note_plaintext_bytes</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;note: &amp;Self::<a class="type" href="trait.Domain.html#associatedtype.Note" title="type zcash_note_encryption::Domain::Note">Note</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;recipient: &amp;Self::<a class="type" href="trait.Domain.html#associatedtype.Recipient" title="type zcash_note_encryption::Domain::Recipient">Recipient</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;memo: &amp;Self::<a class="type" href="trait.Domain.html#associatedtype.Memo" title="type zcash_note_encryption::Domain::Memo">Memo</a><br>) -&gt; <a class="struct" href="struct.NotePlaintextBytes.html" title="struct zcash_note_encryption::NotePlaintextBytes">NotePlaintextBytes</a></h4></div><div id="tymethod.derive_ock" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/zcash_note_encryption/lib.rs.html#141-146" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#tymethod.derive_ock" class="fnname">derive_ock</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;ovk: &amp;Self::<a class="type" href="trait.Domain.html#associatedtype.OutgoingViewingKey" title="type zcash_note_encryption::Domain::OutgoingViewingKey">OutgoingViewingKey</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;cv: &amp;Self::<a class="type" href="trait.Domain.html#associatedtype.ValueCommitment" title="type zcash_note_encryption::Domain::ValueCommitment">ValueCommitment</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;cmstar_bytes: &amp;Self::<a class="type" href="trait.Domain.html#associatedtype.ExtractedCommitmentBytes" title="type zcash_note_encryption::Domain::ExtractedCommitmentBytes">ExtractedCommitmentBytes</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;ephemeral_key: &amp;<a class="struct" href="struct.EphemeralKeyBytes.html" title="struct zcash_note_encryption::EphemeralKeyBytes">EphemeralKeyBytes</a><br>) -&gt; <a class="struct" href="struct.OutgoingCipherKey.html" title="struct zcash_note_encryption::OutgoingCipherKey">OutgoingCipherKey</a></h4></div><div id="tymethod.outgoing_plaintext_bytes" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/zcash_note_encryption/lib.rs.html#148-151" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#tymethod.outgoing_plaintext_bytes" class="fnname">outgoing_plaintext_bytes</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;note: &amp;Self::<a class="type" href="trait.Domain.html#associatedtype.Note" title="type zcash_note_encryption::Domain::Note">Note</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;esk: &amp;Self::<a class="type" href="trait.Domain.html#associatedtype.EphemeralSecretKey" title="type zcash_note_encryption::Domain::EphemeralSecretKey">EphemeralSecretKey</a><br>) -&gt; <a class="struct" href="struct.OutPlaintextBytes.html" title="struct zcash_note_encryption::OutPlaintextBytes">OutPlaintextBytes</a></h4></div><div id="tymethod.epk_bytes" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/zcash_note_encryption/lib.rs.html#153" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#tymethod.epk_bytes" class="fnname">epk_bytes</a>(epk: &amp;Self::<a class="type" href="trait.Domain.html#associatedtype.EphemeralPublicKey" title="type zcash_note_encryption::Domain::EphemeralPublicKey">EphemeralPublicKey</a>) -&gt; <a class="struct" href="struct.EphemeralKeyBytes.html" title="struct zcash_note_encryption::EphemeralKeyBytes">EphemeralKeyBytes</a></h4></div><div id="tymethod.epk" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/zcash_note_encryption/lib.rs.html#155" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#tymethod.epk" class="fnname">epk</a>(ephemeral_key: &amp;<a class="struct" href="struct.EphemeralKeyBytes.html" title="struct zcash_note_encryption::EphemeralKeyBytes">EphemeralKeyBytes</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self::<a class="type" href="trait.Domain.html#associatedtype.EphemeralPublicKey" title="type zcash_note_encryption::Domain::EphemeralPublicKey">EphemeralPublicKey</a>&gt;</h4></div><div id="tymethod.check_epk_bytes" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/zcash_note_encryption/lib.rs.html#173-176" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#tymethod.check_epk_bytes" class="fnname">check_epk_bytes</a>&lt;F:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(&amp;Self::<a class="type" href="trait.Domain.html#associatedtype.EphemeralSecretKey" title="type zcash_note_encryption::Domain::EphemeralSecretKey">EphemeralSecretKey</a>) -&gt; <a class="enum" href="enum.NoteValidity.html" title="enum zcash_note_encryption::NoteValidity">NoteValidity</a>&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;note: &amp;Self::<a class="type" href="trait.Domain.html#associatedtype.Note" title="type zcash_note_encryption::Domain::Note">Note</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;check: F<br>) -&gt; <a class="enum" href="enum.NoteValidity.html" title="enum zcash_note_encryption::NoteValidity">NoteValidity</a></h4></div><div id="tymethod.cmstar" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/zcash_note_encryption/lib.rs.html#178" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#tymethod.cmstar" class="fnname">cmstar</a>(note: &amp;Self::<a class="type" href="trait.Domain.html#associatedtype.Note" title="type zcash_note_encryption::Domain::Note">Note</a>) -&gt; Self::<a class="type" href="trait.Domain.html#associatedtype.ExtractedCommitment" title="type zcash_note_encryption::Domain::ExtractedCommitment">ExtractedCommitment</a></h4></div><div id="tymethod.parse_note_plaintext_without_memo_ivk" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/zcash_note_encryption/lib.rs.html#180-184" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#tymethod.parse_note_plaintext_without_memo_ivk" class="fnname">parse_note_plaintext_without_memo_ivk</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;ivk: &amp;Self::<a class="type" href="trait.Domain.html#associatedtype.IncomingViewingKey" title="type zcash_note_encryption::Domain::IncomingViewingKey">IncomingViewingKey</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;plaintext: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;[</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>Self::<a class="type" href="trait.Domain.html#associatedtype.Note" title="type zcash_note_encryption::Domain::Note">Note</a>, Self::<a class="type" href="trait.Domain.html#associatedtype.Recipient" title="type zcash_note_encryption::Domain::Recipient">Recipient</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>&gt;</h4></div><div id="tymethod.parse_note_plaintext_without_memo_ovk" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/zcash_note_encryption/lib.rs.html#186-192" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#tymethod.parse_note_plaintext_without_memo_ovk" class="fnname">parse_note_plaintext_without_memo_ovk</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;pk_d: &amp;Self::<a class="type" href="trait.Domain.html#associatedtype.DiversifiedTransmissionKey" title="type zcash_note_encryption::Domain::DiversifiedTransmissionKey">DiversifiedTransmissionKey</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;esk: &amp;Self::<a class="type" href="trait.Domain.html#associatedtype.EphemeralSecretKey" title="type zcash_note_encryption::Domain::EphemeralSecretKey">EphemeralSecretKey</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;ephemeral_key: &amp;<a class="struct" href="struct.EphemeralKeyBytes.html" title="struct zcash_note_encryption::EphemeralKeyBytes">EphemeralKeyBytes</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;plaintext: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;[</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>Self::<a class="type" href="trait.Domain.html#associatedtype.Note" title="type zcash_note_encryption::Domain::Note">Note</a>, Self::<a class="type" href="trait.Domain.html#associatedtype.Recipient" title="type zcash_note_encryption::Domain::Recipient">Recipient</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>&gt;</h4></div><div id="tymethod.extract_memo" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/zcash_note_encryption/lib.rs.html#197" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#tymethod.extract_memo" class="fnname">extract_memo</a>(&amp;self, plaintext: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;[</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>) -&gt; Self::<a class="type" href="trait.Domain.html#associatedtype.Memo" title="type zcash_note_encryption::Domain::Memo">Memo</a></h4></div><div id="tymethod.extract_pk_d" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/zcash_note_encryption/lib.rs.html#199-201" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#tymethod.extract_pk_d" class="fnname">extract_pk_d</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;out_plaintext: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 64]</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self::<a class="type" href="trait.Domain.html#associatedtype.DiversifiedTransmissionKey" title="type zcash_note_encryption::Domain::DiversifiedTransmissionKey">DiversifiedTransmissionKey</a>&gt;</h4></div><div id="tymethod.extract_esk" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/zcash_note_encryption/lib.rs.html#203" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#tymethod.extract_esk" class="fnname">extract_esk</a>(out_plaintext: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 64]</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self::<a class="type" href="trait.Domain.html#associatedtype.EphemeralSecretKey" title="type zcash_note_encryption::Domain::EphemeralSecretKey">EphemeralSecretKey</a>&gt;</h4></div></div><h2 id="provided-methods" class="small-section-header">Provided methods<a href="#provided-methods" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle" open><summary><div id="method.batch_kdf" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/zcash_note_encryption/lib.rs.html#123-130" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#method.batch_kdf" class="fnname">batch_kdf</a>&lt;'a&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;items: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a>&lt;Item = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self::<a class="type" href="trait.Domain.html#associatedtype.SharedSecret" title="type zcash_note_encryption::Domain::SharedSecret">SharedSecret</a>&gt;, &amp;'a <a class="struct" href="struct.EphemeralKeyBytes.html" title="struct zcash_note_encryption::EphemeralKeyBytes">EphemeralKeyBytes</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>&gt;<br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self::<a class="type" href="trait.Domain.html#associatedtype.SymmetricKey" title="type zcash_note_encryption::Domain::SymmetricKey">SymmetricKey</a>&gt;&gt;</h4></div></summary><div class="docblock"><p>Computes <code>Self::kdf</code> on a batch of items.</p>
<p>For each item in the batch, if the shared secret is <code>None</code>, this returns <code>None</code> at
that position.</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="method.batch_epk" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/zcash_note_encryption/lib.rs.html#164-171" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#method.batch_epk" class="fnname">batch_epk</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;ephemeral_keys: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a>&lt;Item = <a class="struct" href="struct.EphemeralKeyBytes.html" title="struct zcash_note_encryption::EphemeralKeyBytes">EphemeralKeyBytes</a>&gt;<br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self::<a class="type" href="trait.Domain.html#associatedtype.EphemeralPublicKey" title="type zcash_note_encryption::Domain::EphemeralPublicKey">EphemeralPublicKey</a>&gt;, <a class="struct" href="struct.EphemeralKeyBytes.html" title="struct zcash_note_encryption::EphemeralKeyBytes">EphemeralKeyBytes</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>&gt;</h4></div></summary><div class="docblock"><p>Computes <code>Self::epk</code> on a batch of ephemeral keys.</p>
<p>This is useful for protocols where the underlying curve requires an inversion to
parse an encoded point.</p>
<p>For usability, this returns tuples of the ephemeral keys and the result of parsing
them.</p>
</div></details></div><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"></div><script type="text/javascript" src="../implementors/zcash_note_encryption/trait.Domain.js" async></script></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="zcash_note_encryption" data-search-index-js="../search-index.js" data-search-js="../search.js"></div>
<script src="../main.js"></script>
</body></html>