]> Untitled Git - bitcoindevkit.org/blob
05440b58dbbd5f3f44fb8053a7408357911b046b
[bitcoindevkit.org] /
1 <!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="Parameters that influence chain consensus."><title>Params in bdk_chain::bitcoin::consensus::params - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.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-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-dd39b87e5fcfba68.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="bdk_chain" data-themes="" data-resource-suffix="" data-rustdoc-version="1.80.0-nightly (78a775127 2024-05-11)" data-channel="nightly" data-search-js="search-d52510db62a78183.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../../../static.files/storage-118b08c4c78b968e.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-df360f571f6edeae.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc struct"><!--[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><a class="logo-container" href="../../../../bdk_chain/index.html"><img src="https://github.com/bitcoindevkit/bdk/raw/master/static/bdk.png" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="../../../../bdk_chain/index.html"><img src="https://github.com/bitcoindevkit/bdk/raw/master/static/bdk.png" alt="logo"></a><h2><a href="../../../../bdk_chain/index.html">bdk_chain</a><span class="version">0.19.0</span></h2></div><h2 class="location"><a href="#">Params</a></h2><div class="sidebar-elems"><section><h3><a href="#fields">Fields</a></h3><ul class="block structfield"><li><a href="#structfield.allow_min_difficulty_blocks">allow_min_difficulty_blocks</a></li><li><a href="#structfield.bip16_time">bip16_time</a></li><li><a href="#structfield.bip34_height">bip34_height</a></li><li><a href="#structfield.bip65_height">bip65_height</a></li><li><a href="#structfield.bip66_height">bip66_height</a></li><li><a href="#structfield.max_attainable_target">max_attainable_target</a></li><li><a href="#structfield.miner_confirmation_window">miner_confirmation_window</a></li><li><a href="#structfield.network">network</a></li><li><a href="#structfield.no_pow_retargeting">no_pow_retargeting</a></li><li><a href="#structfield.pow_limit">pow_limit</a></li><li><a href="#structfield.pow_target_spacing">pow_target_spacing</a></li><li><a href="#structfield.pow_target_timespan">pow_target_timespan</a></li><li><a href="#structfield.rule_change_activation_threshold">rule_change_activation_threshold</a></li></ul><h3><a href="#implementations">Associated Constants</a></h3><ul class="block associatedconstant"><li><a href="#associatedconstant.BITCOIN">BITCOIN</a></li><li><a href="#associatedconstant.MAINNET">MAINNET</a></li><li><a href="#associatedconstant.REGTEST">REGTEST</a></li><li><a href="#associatedconstant.SIGNET">SIGNET</a></li><li><a href="#associatedconstant.TESTNET">TESTNET</a></li></ul><h3><a href="#implementations">Methods</a></h3><ul class="block method"><li><a href="#method.difficulty_adjustment_interval">difficulty_adjustment_interval</a></li><li><a href="#method.new">new</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-AsRef%3CParams%3E-for-Network">AsRef&lt;Params&gt;</a></li><li><a href="#impl-AsRef%3CParams%3E-for-Params">AsRef&lt;Params&gt;</a></li><li><a href="#impl-Clone-for-Params">Clone</a></li><li><a href="#impl-Debug-for-Params">Debug</a></li><li><a href="#impl-From%3C%26Network%3E-for-%26Params">From&lt;&amp;Network&gt;</a></li><li><a href="#impl-From%3C%26Network%3E-for-Params">From&lt;&amp;Network&gt;</a></li><li><a href="#impl-From%3CNetwork%3E-for-%26Params">From&lt;Network&gt;</a></li><li><a href="#impl-From%3CNetwork%3E-for-Params">From&lt;Network&gt;</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block synthetic-implementation"><li><a href="#impl-Freeze-for-Params">Freeze</a></li><li><a href="#impl-RefUnwindSafe-for-Params">RefUnwindSafe</a></li><li><a href="#impl-Send-for-Params">Send</a></li><li><a href="#impl-Sync-for-Params">Sync</a></li><li><a href="#impl-Unpin-for-Params">Unpin</a></li><li><a href="#impl-UnwindSafe-for-Params">UnwindSafe</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block blanket-implementation"><li><a href="#impl-Any-for-T">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a href="#impl-ToOwned-for-T">ToOwned</a></li><li><a href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li><li><a href="#impl-VZip%3CV%3E-for-T">VZip&lt;V&gt;</a></li></ul></section><h2><a href="index.html">In bdk_chain::bitcoin::consensus::params</a></h2></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>Struct <a href="../../../index.html">bdk_chain</a>::<wbr><a href="../../index.html">bitcoin</a>::<wbr><a href="../index.html">consensus</a>::<wbr><a href="index.html">params</a>::<wbr><a class="struct" href="#">Params</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code><div class="code-attribute">#[non_exhaustive]</div>pub struct Params {<details class="toggle type-contents-toggle"><summary class="hideme"><span>Show 13 fields</span></summary>
2 pub network: <a class="enum" href="../../enum.Network.html" title="enum bdk_chain::bitcoin::Network">Network</a>,
3 pub bip16_time: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
4 pub bip34_height: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
5 pub bip65_height: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
6 pub bip66_height: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
7 pub rule_change_activation_threshold: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
8 pub miner_confirmation_window: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
9 pub pow_limit: <a class="struct" href="../../struct.Target.html" title="struct bdk_chain::bitcoin::Target">Target</a>,
10 pub max_attainable_target: <a class="struct" href="../../struct.Target.html" title="struct bdk_chain::bitcoin::Target">Target</a>,
11 pub pow_target_spacing: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>,
12 pub pow_target_timespan: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>,
13 pub allow_min_difficulty_blocks: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
14 pub no_pow_retargeting: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
15 </details>}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Parameters that influence chain consensus.</p>
16 </div></details><h2 id="fields" class="fields section-header">Fields (Non-exhaustive)<a href="#fields" class="anchor">§</a></h2><details class="toggle non-exhaustive"><summary class="hideme"><span>This struct is marked as non-exhaustive</span></summary><div class="docblock">Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional <code>Struct { .. }</code> syntax; cannot be matched against without a wildcard <code>..</code>; and struct update syntax will not work.</div></details><span id="structfield.network" class="structfield section-header"><a href="#structfield.network" class="anchor field">§</a><code>network: <a class="enum" href="../../enum.Network.html" title="enum bdk_chain::bitcoin::Network">Network</a></code></span><div class="docblock"><p>Network for which parameters are valid.</p>
17 </div><span id="structfield.bip16_time" class="structfield section-header"><a href="#structfield.bip16_time" class="anchor field">§</a><code>bip16_time: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><div class="docblock"><p>Time when BIP16 becomes active.</p>
18 </div><span id="structfield.bip34_height" class="structfield section-header"><a href="#structfield.bip34_height" class="anchor field">§</a><code>bip34_height: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><div class="docblock"><p>Block height at which BIP34 becomes active.</p>
19 </div><span id="structfield.bip65_height" class="structfield section-header"><a href="#structfield.bip65_height" class="anchor field">§</a><code>bip65_height: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><div class="docblock"><p>Block height at which BIP65 becomes active.</p>
20 </div><span id="structfield.bip66_height" class="structfield section-header"><a href="#structfield.bip66_height" class="anchor field">§</a><code>bip66_height: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><div class="docblock"><p>Block height at which BIP66 becomes active.</p>
21 </div><span id="structfield.rule_change_activation_threshold" class="structfield section-header"><a href="#structfield.rule_change_activation_threshold" class="anchor field">§</a><code>rule_change_activation_threshold: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><div class="docblock"><p>Minimum blocks including miner confirmation of the total of 2016 blocks in a retargeting period,
22 (nPowTargetTimespan / nPowTargetSpacing) which is also used for BIP9 deployments.
23 Examples: 1916 for 95%, 1512 for testchains.</p>
24 </div><span id="structfield.miner_confirmation_window" class="structfield section-header"><a href="#structfield.miner_confirmation_window" class="anchor field">§</a><code>miner_confirmation_window: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><div class="docblock"><p>Number of blocks with the same set of rules.</p>
25 </div><span id="structfield.pow_limit" class="structfield section-header"><a href="#structfield.pow_limit" class="anchor field">§</a><code>pow_limit: <a class="struct" href="../../struct.Target.html" title="struct bdk_chain::bitcoin::Target">Target</a></code></span><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated since 0.32.0: field renamed to max_attainable_target</span></div></span><div class="docblock"><p>Proof of work limit value. It contains the lowest possible difficulty.</p>
26 </div><span id="structfield.max_attainable_target" class="structfield section-header"><a href="#structfield.max_attainable_target" class="anchor field">§</a><code>max_attainable_target: <a class="struct" href="../../struct.Target.html" title="struct bdk_chain::bitcoin::Target">Target</a></code></span><div class="docblock"><p>The maximum <strong>attainable</strong> target value for these params.</p>
27 <p>Not all target values are attainable because consensus code uses the compact format to
28 represent targets (see [<code>CompactTarget</code>]).</p>
29 <p>Note that this value differs from Bitcoin Core’s powLimit field in that this value is
30 attainable, but Bitcoin Core’s is not. Specifically, because targets in Bitcoin are always
31 rounded to the nearest float expressible in “compact form”, not all targets are attainable.
32 Still, this should not affect consensus as the only place where the non-compact form of
33 this is used in Bitcoin Core’s consensus algorithm is in comparison and there are no
34 compact-expressible values between Bitcoin Core’s and the limit expressed here.</p>
35 </div><span id="structfield.pow_target_spacing" class="structfield section-header"><a href="#structfield.pow_target_spacing" class="anchor field">§</a><code>pow_target_spacing: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a></code></span><div class="docblock"><p>Expected amount of time to mine one block.</p>
36 </div><span id="structfield.pow_target_timespan" class="structfield section-header"><a href="#structfield.pow_target_timespan" class="anchor field">§</a><code>pow_target_timespan: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a></code></span><div class="docblock"><p>Difficulty recalculation interval.</p>
37 </div><span id="structfield.allow_min_difficulty_blocks" class="structfield section-header"><a href="#structfield.allow_min_difficulty_blocks" class="anchor field">§</a><code>allow_min_difficulty_blocks: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span><div class="docblock"><p>Determines whether minimal difficulty may be used for blocks or not.</p>
38 </div><span id="structfield.no_pow_retargeting" class="structfield section-header"><a href="#structfield.no_pow_retargeting" class="anchor field">§</a><code>no_pow_retargeting: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span><div class="docblock"><p>Determines whether retargeting is disabled for this network or not.</p>
39 </div><h2 id="implementations" class="section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Params" class="impl"><a href="#impl-Params" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="../struct.Params.html" title="struct bdk_chain::bitcoin::consensus::Params">Params</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedconstant.BITCOIN" class="associatedconstant"><h4 class="code-header">pub const <a href="#associatedconstant.BITCOIN" class="constant">BITCOIN</a>: <a class="struct" href="../struct.Params.html" title="struct bdk_chain::bitcoin::consensus::Params">Params</a> = Params::MAINNET</h4></section></summary><div class="docblock"><p>The mainnet parameters (alias for <code>Params::MAINNET</code>).</p>
40 </div></details><details class="toggle" open><summary><section id="associatedconstant.MAINNET" class="associatedconstant"><h4 class="code-header">pub const <a href="#associatedconstant.MAINNET" class="constant">MAINNET</a>: <a class="struct" href="../struct.Params.html" title="struct bdk_chain::bitcoin::consensus::Params">Params</a> = _</h4></section></summary><div class="docblock"><p>The mainnet parameters.</p>
41 </div></details><details class="toggle" open><summary><section id="associatedconstant.TESTNET" class="associatedconstant"><h4 class="code-header">pub const <a href="#associatedconstant.TESTNET" class="constant">TESTNET</a>: <a class="struct" href="../struct.Params.html" title="struct bdk_chain::bitcoin::consensus::Params">Params</a> = _</h4></section></summary><div class="docblock"><p>The testnet parameters.</p>
42 </div></details><details class="toggle" open><summary><section id="associatedconstant.SIGNET" class="associatedconstant"><h4 class="code-header">pub const <a href="#associatedconstant.SIGNET" class="constant">SIGNET</a>: <a class="struct" href="../struct.Params.html" title="struct bdk_chain::bitcoin::consensus::Params">Params</a> = _</h4></section></summary><div class="docblock"><p>The signet parameters.</p>
43 </div></details><details class="toggle" open><summary><section id="associatedconstant.REGTEST" class="associatedconstant"><h4 class="code-header">pub const <a href="#associatedconstant.REGTEST" class="constant">REGTEST</a>: <a class="struct" href="../struct.Params.html" title="struct bdk_chain::bitcoin::consensus::Params">Params</a> = _</h4></section></summary><div class="docblock"><p>The regtest parameters.</p>
44 </div></details><details class="toggle method-toggle" open><summary><section id="method.new" class="method"><h4 class="code-header">pub const fn <a href="#method.new" class="fn">new</a>(network: <a class="enum" href="../../enum.Network.html" title="enum bdk_chain::bitcoin::Network">Network</a>) -&gt; <a class="struct" href="../struct.Params.html" title="struct bdk_chain::bitcoin::consensus::Params">Params</a></h4></section></summary><div class="docblock"><p>Creates parameters set for the given network. /// Creates parameters set for the given network.</p>
45 </div></details><details class="toggle method-toggle" open><summary><section id="method.difficulty_adjustment_interval" class="method"><h4 class="code-header">pub fn <a href="#method.difficulty_adjustment_interval" class="fn">difficulty_adjustment_interval</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a></h4></section></summary><div class="docblock"><p>Calculates the number of blocks between difficulty adjustments.</p>
46 </div></details></div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-AsRef%3CParams%3E-for-Network" class="impl"><a href="#impl-AsRef%3CParams%3E-for-Network" class="anchor">§</a><h3 class="code-header">impl <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="struct" href="../struct.Params.html" title="struct bdk_chain::bitcoin::consensus::Params">Params</a>&gt; for <a class="enum" href="../../enum.Network.html" title="enum bdk_chain::bitcoin::Network">Network</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_ref-1" class="method trait-impl"><a href="#method.as_ref-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fn">as_ref</a>(&amp;self) -&gt; &amp;<a class="struct" href="../struct.Params.html" title="struct bdk_chain::bitcoin::consensus::Params">Params</a></h4></section></summary><div class='docblock'>Converts this type into a shared reference of the (usually inferred) input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-AsRef%3CParams%3E-for-Params" class="impl"><a href="#impl-AsRef%3CParams%3E-for-Params" class="anchor">§</a><h3 class="code-header">impl <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="struct" href="../struct.Params.html" title="struct bdk_chain::bitcoin::consensus::Params">Params</a>&gt; for <a class="struct" href="../struct.Params.html" title="struct bdk_chain::bitcoin::consensus::Params">Params</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl"><a href="#method.as_ref" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fn">as_ref</a>(&amp;self) -&gt; &amp;<a class="struct" href="../struct.Params.html" title="struct bdk_chain::bitcoin::consensus::Params">Params</a></h4></section></summary><div class='docblock'>Converts this type into a shared reference of the (usually inferred) input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Clone-for-Params" class="impl"><a href="#impl-Clone-for-Params" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../struct.Params.html" title="struct bdk_chain::bitcoin::consensus::Params">Params</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl"><a href="#method.clone" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone" class="fn">clone</a>(&amp;self) -&gt; <a class="struct" href="../struct.Params.html" title="struct bdk_chain::bitcoin::consensus::Params">Params</a></h4></section></summary><div class='docblock'>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/nightly/src/core/clone.rs.html#169">source</a></span><a href="#method.clone_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from" class="fn">clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;Self</a>)</h4></section></summary><div class='docblock'>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Debug-for-Params" class="impl"><a href="#impl-Debug-for-Params" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../struct.Params.html" title="struct bdk_chain::bitcoin::consensus::Params">Params</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl"><a href="#method.fmt" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fn">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-From%3C%26Network%3E-for-%26Params" class="impl"><a href="#impl-From%3C%26Network%3E-for-%26Params" class="anchor">§</a><h3 class="code-header">impl <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 class="enum" href="../../enum.Network.html" title="enum bdk_chain::bitcoin::Network">Network</a>&gt; for &amp;'static <a class="struct" href="../struct.Params.html" title="struct bdk_chain::bitcoin::consensus::Params">Params</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from-3" class="method trait-impl"><a href="#method.from-3" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(value: &amp;<a class="enum" href="../../enum.Network.html" title="enum bdk_chain::bitcoin::Network">Network</a>) -&gt; &amp;'static <a class="struct" href="../struct.Params.html" title="struct bdk_chain::bitcoin::consensus::Params">Params</a></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-From%3C%26Network%3E-for-Params" class="impl"><a href="#impl-From%3C%26Network%3E-for-Params" class="anchor">§</a><h3 class="code-header">impl <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 class="enum" href="../../enum.Network.html" title="enum bdk_chain::bitcoin::Network">Network</a>&gt; for <a class="struct" href="../struct.Params.html" title="struct bdk_chain::bitcoin::consensus::Params">Params</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from" class="method trait-impl"><a href="#method.from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(value: &amp;<a class="enum" href="../../enum.Network.html" title="enum bdk_chain::bitcoin::Network">Network</a>) -&gt; <a class="struct" href="../struct.Params.html" title="struct bdk_chain::bitcoin::consensus::Params">Params</a></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-From%3CNetwork%3E-for-%26Params" class="impl"><a href="#impl-From%3CNetwork%3E-for-%26Params" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="enum" href="../../enum.Network.html" title="enum bdk_chain::bitcoin::Network">Network</a>&gt; for &amp;'static <a class="struct" href="../struct.Params.html" title="struct bdk_chain::bitcoin::consensus::Params">Params</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl"><a href="#method.from-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(value: <a class="enum" href="../../enum.Network.html" title="enum bdk_chain::bitcoin::Network">Network</a>) -&gt; &amp;'static <a class="struct" href="../struct.Params.html" title="struct bdk_chain::bitcoin::consensus::Params">Params</a></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-From%3CNetwork%3E-for-Params" class="impl"><a href="#impl-From%3CNetwork%3E-for-Params" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="enum" href="../../enum.Network.html" title="enum bdk_chain::bitcoin::Network">Network</a>&gt; for <a class="struct" href="../struct.Params.html" title="struct bdk_chain::bitcoin::consensus::Params">Params</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from-2" class="method trait-impl"><a href="#method.from-2" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(value: <a class="enum" href="../../enum.Network.html" title="enum bdk_chain::bitcoin::Network">Network</a>) -&gt; <a class="struct" href="../struct.Params.html" title="struct bdk_chain::bitcoin::consensus::Params">Params</a></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details></div><h2 id="synthetic-implementations" class="section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor">§</a></h2><div id="synthetic-implementations-list"><section id="impl-Freeze-for-Params" class="impl"><a href="#impl-Freeze-for-Params" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a> for <a class="struct" href="../struct.Params.html" title="struct bdk_chain::bitcoin::consensus::Params">Params</a></h3></section><section id="impl-RefUnwindSafe-for-Params" class="impl"><a href="#impl-RefUnwindSafe-for-Params" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../struct.Params.html" title="struct bdk_chain::bitcoin::consensus::Params">Params</a></h3></section><section id="impl-Send-for-Params" class="impl"><a href="#impl-Send-for-Params" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../struct.Params.html" title="struct bdk_chain::bitcoin::consensus::Params">Params</a></h3></section><section id="impl-Sync-for-Params" class="impl"><a href="#impl-Sync-for-Params" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../struct.Params.html" title="struct bdk_chain::bitcoin::consensus::Params">Params</a></h3></section><section id="impl-Unpin-for-Params" class="impl"><a href="#impl-Unpin-for-Params" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../struct.Params.html" title="struct bdk_chain::bitcoin::consensus::Params">Params</a></h3></section><section id="impl-UnwindSafe-for-Params" class="impl"><a href="#impl-UnwindSafe-for-Params" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../struct.Params.html" title="struct bdk_chain::bitcoin::consensus::Params">Params</a></h3></section></div><h2 id="blanket-implementations" class="section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor">§</a></h2><div id="blanket-implementations-list"><details class="toggle implementors-toggle"><summary><section id="impl-Any-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#140">source</a><a href="#impl-Any-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T<div class="where">where
47 T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#141">source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fn">type_id</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#208">source</a><a href="#impl-Borrow%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;T&gt; for T<div class="where">where
48 T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#210">source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;T</a></h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#216">source</a><a href="#impl-BorrowMut%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt; for T<div class="where">where
49 T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#217">source</a><a href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fn">borrow_mut</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut T</a></h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#765">source</a><a href="#impl-From%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from-4" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#768">source</a><a href="#method.from-4" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(t: T) -&gt; T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
50 </div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#748-750">source</a><a href="#impl-Into%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;U&gt; for T<div class="where">where
51 U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#758">source</a><a href="#method.into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into" class="fn">into</a>(self) -&gt; U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p>
52 <p>That is, this conversion is whatever the implementation of
53 <code><a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; for U</code> chooses to do.</p>
54 </div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ToOwned-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#83-85">source</a><a href="#impl-ToOwned-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T<div class="where">where
55 T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Owned" class="associatedtype trait-impl"><a href="#associatedtype.Owned" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" class="associatedtype">Owned</a> = T</h4></section></summary><div class='docblock'>The resulting type after obtaining ownership.</div></details><details class="toggle method-toggle" open><summary><section id="method.to_owned" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#88">source</a><a href="#method.to_owned" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned" class="fn">to_owned</a>(&amp;self) -&gt; T</h4></section></summary><div class='docblock'>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#92">source</a><a href="#method.clone_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into" class="fn">clone_into</a>(&amp;self, target: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut T</a>)</h4></section></summary><div class='docblock'>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#805-807">source</a><a href="#impl-TryFrom%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt; for T<div class="where">where
56 U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#812">source</a><a href="#method.try_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from" class="fn">try_from</a>(value: U) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;T, &lt;T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#790-792">source</a><a href="#impl-TryInto%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a>&lt;U&gt; for T<div class="where">where
57 U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl"><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = &lt;U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#797">source</a><a href="#method.try_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into" class="fn">try_into</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;U, &lt;U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-VZip%3CV%3E-for-T" class="impl"><a href="#impl-VZip%3CV%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;V, T&gt; VZip&lt;V&gt; for T<div class="where">where
58 V: MultiLane&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><section id="method.vzip" class="method trait-impl"><a href="#method.vzip" class="anchor">§</a><h4 class="code-header">fn <a class="fn">vzip</a>(self) -&gt; V</h4></section></div></details></div></section></div></main></body></html>