View on GitHub
File Changes
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Cardano.Wallet.Byron.Network</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><link rel="stylesheet" type="text/css" href="quick-jump.css" /><script src="haddock-bundle.min.js" async="async" type="text/javascript"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Cardano.Wallet.Byron.Network.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">cardano-wallet-byron-2020.1.21: Wallet backend protocol-specific bits implemented using byron nodes</p></div><div id="content"><div id="module-header"><table class="info"><tr><th valign="top">Copyright</th><td>&#169; 2020 IOHK</td></tr><tr><th>License</th><td>Apache-2.0</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><p class="caption">Cardano.Wallet.Byron.Network</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Top-Level Interface</a></li><li><a href="#g:2">Transport Helpers</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Network Layer for talking to Haskell re-written nodes.</p><p>Good to read before / additional resources:</p><ul><li>Module's documentation in `ouroboros-network/typed-protocols/src/Network/TypedProtocols.hs`</li><li>Data Diffusion and Peer Networking in Shelley (see: <a href="https://raw.githubusercontent.com/wiki/input-output-hk/cardano-wallet/data_diffusion_and_peer_networking_in_shelley.pdf)">https://raw.githubusercontent.com/wiki/input-output-hk/cardano-wallet/data_diffusion_and_peer_networking_in_shelley.pdf)</a></li><li>In particular sections 4.1, 4.2, 4.6 and 4.8</li></ul></div></div><div id="synopsis"><details id="syn"><summary>Synopsis</summary><ul class="details-toggle" data-details-id="syn"><li class="src short"><span class="keyword">pattern</span> <a href="#v:Cursor">Cursor</a> :: Point <a href="Cardano-Wallet-Byron-Compatibility.html#t:ByronBlock" title="Cardano.Wallet.Byron.Compatibility">ByronBlock</a> -&gt; TQueue m (NetworkClientCmd m) -&gt; <a href="../cardano-wallet-core-2020.1.27/Cardano-Wallet-Network.html#t:Cursor" title="Cardano.Wallet.Network">Cursor</a> (m <a href="Cardano-Wallet-Byron-Compatibility.html#t:Byron" title="Cardano.Wallet.Byron.Compatibility">Byron</a>)</li><li class="src short"><a href="#v:newNetworkLayer">newNetworkLayer</a> :: Trace <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a> -&gt; <a href="../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:BlockchainParameters" title="Cardano.Wallet.Primitive.Types">BlockchainParameters</a> -&gt; <a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a> -&gt; (NodeToClientVersionData, CodecCBORTerm <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a> NodeToClientVersionData) -&gt; <a href="../cardano-wallet-core-2020.1.27/Cardano-Wallet-Network.html#t:NetworkLayer" title="Cardano.Wallet.Network">NetworkLayer</a> <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> (<a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> <a href="Cardano-Wallet-Byron-Compatibility.html#t:Byron" title="Cardano.Wallet.Byron.Compatibility">Byron</a>) <a href="Cardano-Wallet-Byron-Compatibility.html#t:ByronBlock" title="Cardano.Wallet.Byron.Compatibility">ByronBlock</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:AddrInfo">AddrInfo</a></li><li class="src short"><a href="#v:localSocketAddrInfo">localSocketAddrInfo</a> :: <a href="../base-4.12.0.0/System-IO.html#t:FilePath" title="System.IO">FilePath</a> -&gt; <a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a></li></ul></details></div><div id="interface"><a href="#g:1" id="g:1"><h1>Top-Level Interface</h1></a><div class="top"><p class="src"><span class="keyword">pattern</span> <a id="v:Cursor" class="def">Cursor</a> :: Point <a href="Cardano-Wallet-Byron-Compatibility.html#t:ByronBlock" title="Cardano.Wallet.Byron.Compatibility">ByronBlock</a> -&gt; TQueue m (NetworkClientCmd m) -&gt; <a href="../cardano-wallet-core-2020.1.27/Cardano-Wallet-Network.html#t:Cursor" title="Cardano.Wallet.Network">Cursor</a> (m <a href="Cardano-Wallet-Byron-Compatibility.html#t:Byron" title="Cardano.Wallet.Byron.Compatibility">Byron</a>) <a href="src/Cardano.Wallet.Byron.Network.html#Cursor" class="link">Source</a> <a href="#v:Cursor" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:newNetworkLayer" class="def">newNetworkLayer</a> <a href="src/Cardano.Wallet.Byron.Network.html#newNetworkLayer" class="link">Source</a> <a href="#v:newNetworkLayer" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: Trace <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a></td><td class="doc"><p>Logging of network layer startup</p></td></tr><tr><td class="src">-&gt; <a href="../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:BlockchainParameters" title="Cardano.Wallet.Primitive.Types">BlockchainParameters</a></td><td class="doc"><p>Static blockchain parameters</p></td></tr><tr><td class="src">-&gt; <a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a></td><td class="doc"><p>Socket for communicating with the node</p></td></tr><tr><td class="src">-&gt; (NodeToClientVersionData, CodecCBORTerm <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a> NodeToClientVersionData)</td><td class="doc"><p>Codecs for the node's client</p></td></tr><tr><td class="src">-&gt; <a href="../cardano-wallet-core-2020.1.27/Cardano-Wallet-Network.html#t:NetworkLayer" title="Cardano.Wallet.Network">NetworkLayer</a> <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> (<a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> <a href="Cardano-Wallet-Byron-Compatibility.html#t:Byron" title="Cardano.Wallet.Byron.Compatibility">Byron</a>) <a href="Cardano-Wallet-Byron-Compatibility.html#t:ByronBlock" title="Cardano.Wallet.Byron.Compatibility">ByronBlock</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Create an instance of the network layer</p></div></div><a href="#g:2" id="g:2"><h1>Transport Helpers</h1></a><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:AddrInfo" class="def">AddrInfo</a> <a href="#t:AddrInfo" class="selflink">#</a></p><div class="subs instances"><details id="i:AddrInfo" open="open"><summary>Instances</summary><table><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:AddrInfo:Eq:1"></span> <a href="../base-4.12.0.0/Data-Eq.html#t:Eq" title="Data.Eq">Eq</a> <a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a></span></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:AddrInfo:Eq:1"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Network-Socket.html">Network.Socket</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a> -&gt; <a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a> -&gt; <a href="../base-4.12.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="#v:-61--61-" class="selflink">#</a></p><p class="src"><a href="#v:-47--61-">(/=)</a> :: <a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a> -&gt; <a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a> -&gt; <a href="../base-4.12.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="#v:-47--61-" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:AddrInfo:Show:2"></span> <a href="../base-4.12.0.0/Text-Show.html#t:Show" title="Text.Show">Show</a> <a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a></span></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:AddrInfo:Show:2"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Network-Socket.html">Network.Socket</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="../base-4.12.0.0/Data-Int.html#t:Int" title="Data.Int">Int</a> -&gt; <a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a> -&gt; <a href="../base-4.12.0.0/Text-Show.html#t:ShowS" title="Text.Show">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a> -&gt; <a href="../base-4.12.0.0/Data-String.html#t:String" title="Data.String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a>] -&gt; <a href="../base-4.12.0.0/Text-Show.html#t:ShowS" title="Text.Show">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:AddrInfo:Storable:3"></span> <a href="../base-4.12.0.0/Foreign-Storable.html#t:Storable" title="Foreign.Storable">Storable</a> <a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a></span></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:AddrInfo:Storable:3"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Network-Socket.html">Network.Socket</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:sizeOf">sizeOf</a> :: <a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a> -&gt; <a href="../base-4.12.0.0/Data-Int.html#t:Int" title="Data.Int">Int</a> <a href="#v:sizeOf" class="selflink">#</a></p><p class="src"><a href="#v:alignment">alignment</a> :: <a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a> -&gt; <a href="../base-4.12.0.0/Data-Int.html#t:Int" title="Data.Int">Int</a> <a href="#v:alignment" class="selflink">#</a></p><p class="src"><a href="#v:peekElemOff">peekElemOff</a> :: <a href="../base-4.12.0.0/Foreign-Ptr.html#t:Ptr" title="Foreign.Ptr">Ptr</a> <a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a> -&gt; <a href="../base-4.12.0.0/Data-Int.html#t:Int" title="Data.Int">Int</a> -&gt; <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> <a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a> <a href="#v:peekElemOff" class="selflink">#</a></p><p class="src"><a href="#v:pokeElemOff">pokeElemOff</a> :: <a href="../base-4.12.0.0/Foreign-Ptr.html#t:Ptr" title="Foreign.Ptr">Ptr</a> <a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a> -&gt; <a href="../base-4.12.0.0/Data-Int.html#t:Int" title="Data.Int">Int</a> -&gt; <a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a> -&gt; <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> () <a href="#v:pokeElemOff" class="selflink">#</a></p><p class="src"><a href="#v:peekByteOff">peekByteOff</a> :: <a href="../base-4.12.0.0/Foreign-Ptr.html#t:Ptr" title="Foreign.Ptr">Ptr</a> b -&gt; <a href="../base-4.12.0.0/Data-Int.html#t:Int" title="Data.Int">Int</a> -&gt; <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> <a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a> <a href="#v:peekByteOff" class="selflink">#</a></p><p class="src"><a href="#v:pokeByteOff">pokeByteOff</a> :: <a href="../base-4.12.0.0/Foreign-Ptr.html#t:Ptr" title="Foreign.Ptr">Ptr</a> b -&gt; <a href="../base-4.12.0.0/Data-Int.html#t:Int" title="Data.Int">Int</a> -&gt; <a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a> -&gt; <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> () <a href="#v:pokeByteOff" class="selflink">#</a></p><p class="src"><a href="#v:peek">peek</a> :: <a href="../base-4.12.0.0/Foreign-Ptr.html#t:Ptr" title="Foreign.Ptr">Ptr</a> <a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a> -&gt; <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> <a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a> <a href="#v:peek" class="selflink">#</a></p><p class="src"><a href="#v:poke">poke</a> :: <a href="../base-4.12.0.0/Foreign-Ptr.html#t:Ptr" title="Foreign.Ptr">Ptr</a> <a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a> -&gt; <a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a> -&gt; <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> () <a href="#v:poke" class="selflink">#</a></p></div></details></td></tr></table></details></div></div><div class="top"><p class="src"><a id="v:localSocketAddrInfo" class="def">localSocketAddrInfo</a> :: <a href="../base-4.12.0.0/System-IO.html#t:FilePath" title="System.IO">FilePath</a> -&gt; <a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a> <a href="src/Cardano.Wallet.Byron.Network.html#localSocketAddrInfo" class="link">Source</a> <a href="#v:localSocketAddrInfo" class="selflink">#</a></p></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.22.0</p></div></body></html>
\ No newline at end of file
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Cardano.Wallet.Byron.Network</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><link rel="stylesheet" type="text/css" href="quick-jump.css" /><script src="haddock-bundle.min.js" async="async" type="text/javascript"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Cardano.Wallet.Byron.Network.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">cardano-wallet-byron-2020.1.21: Wallet backend protocol-specific bits implemented using byron nodes</p></div><div id="content"><div id="module-header"><table class="info"><tr><th valign="top">Copyright</th><td>&#169; 2020 IOHK</td></tr><tr><th>License</th><td>Apache-2.0</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><p class="caption">Cardano.Wallet.Byron.Network</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Top-Level Interface</a></li><li><a href="#g:2">Transport Helpers</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Network Layer for talking to Haskell re-written nodes.</p><p>Good to read before / additional resources:</p><ul><li>Module's documentation in `ouroboros-network/typed-protocols/src/Network/TypedProtocols.hs`</li><li>Data Diffusion and Peer Networking in Shelley (see: <a href="https://raw.githubusercontent.com/wiki/input-output-hk/cardano-wallet/data_diffusion_and_peer_networking_in_shelley.pdf)">https://raw.githubusercontent.com/wiki/input-output-hk/cardano-wallet/data_diffusion_and_peer_networking_in_shelley.pdf)</a></li><li>In particular sections 4.1, 4.2, 4.6 and 4.8</li></ul></div></div><div id="synopsis"><details id="syn"><summary>Synopsis</summary><ul class="details-toggle" data-details-id="syn"><li class="src short"><span class="keyword">pattern</span> <a href="#v:Cursor">Cursor</a> :: Point <a href="Cardano-Wallet-Byron-Compatibility.html#t:ByronBlock" title="Cardano.Wallet.Byron.Compatibility">ByronBlock</a> -&gt; TQueue m (ChainSyncCmd m) -&gt; <a href="../cardano-wallet-core-2020.1.27/Cardano-Wallet-Network.html#t:Cursor" title="Cardano.Wallet.Network">Cursor</a> (m <a href="Cardano-Wallet-Byron-Compatibility.html#t:Byron" title="Cardano.Wallet.Byron.Compatibility">Byron</a>)</li><li class="src short"><a href="#v:newNetworkLayer">newNetworkLayer</a> :: Trace <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a> -&gt; <a href="../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:BlockchainParameters" title="Cardano.Wallet.Primitive.Types">BlockchainParameters</a> -&gt; <a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a> -&gt; (NodeToClientVersionData, CodecCBORTerm <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a> NodeToClientVersionData) -&gt; <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> (<a href="../cardano-wallet-core-2020.1.27/Cardano-Wallet-Network.html#t:NetworkLayer" title="Cardano.Wallet.Network">NetworkLayer</a> <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> (<a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> <a href="Cardano-Wallet-Byron-Compatibility.html#t:Byron" title="Cardano.Wallet.Byron.Compatibility">Byron</a>) <a href="Cardano-Wallet-Byron-Compatibility.html#t:ByronBlock" title="Cardano.Wallet.Byron.Compatibility">ByronBlock</a>)</li><li class="src short"><span class="keyword">data</span> <a href="#t:AddrInfo">AddrInfo</a></li><li class="src short"><a href="#v:localSocketAddrInfo">localSocketAddrInfo</a> :: <a href="../base-4.12.0.0/System-IO.html#t:FilePath" title="System.IO">FilePath</a> -&gt; <a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a></li></ul></details></div><div id="interface"><a href="#g:1" id="g:1"><h1>Top-Level Interface</h1></a><div class="top"><p class="src"><span class="keyword">pattern</span> <a id="v:Cursor" class="def">Cursor</a> :: Point <a href="Cardano-Wallet-Byron-Compatibility.html#t:ByronBlock" title="Cardano.Wallet.Byron.Compatibility">ByronBlock</a> -&gt; TQueue m (ChainSyncCmd m) -&gt; <a href="../cardano-wallet-core-2020.1.27/Cardano-Wallet-Network.html#t:Cursor" title="Cardano.Wallet.Network">Cursor</a> (m <a href="Cardano-Wallet-Byron-Compatibility.html#t:Byron" title="Cardano.Wallet.Byron.Compatibility">Byron</a>) <a href="src/Cardano.Wallet.Byron.Network.html#Cursor" class="link">Source</a> <a href="#v:Cursor" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:newNetworkLayer" class="def">newNetworkLayer</a> <a href="src/Cardano.Wallet.Byron.Network.html#newNetworkLayer" class="link">Source</a> <a href="#v:newNetworkLayer" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: Trace <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a></td><td class="doc"><p>Logging of network layer startup</p></td></tr><tr><td class="src">-&gt; <a href="../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:BlockchainParameters" title="Cardano.Wallet.Primitive.Types">BlockchainParameters</a></td><td class="doc"><p>Static blockchain parameters</p></td></tr><tr><td class="src">-&gt; <a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a></td><td class="doc"><p>Socket for communicating with the node</p></td></tr><tr><td class="src">-&gt; (NodeToClientVersionData, CodecCBORTerm <a href="../text-1.2.3.1/Data-Text.html#t:Text" title="Data.Text">Text</a> NodeToClientVersionData)</td><td class="doc"><p>Codecs for the node's client</p></td></tr><tr><td class="src">-&gt; <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> (<a href="../cardano-wallet-core-2020.1.27/Cardano-Wallet-Network.html#t:NetworkLayer" title="Cardano.Wallet.Network">NetworkLayer</a> <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> (<a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> <a href="Cardano-Wallet-Byron-Compatibility.html#t:Byron" title="Cardano.Wallet.Byron.Compatibility">Byron</a>) <a href="Cardano-Wallet-Byron-Compatibility.html#t:ByronBlock" title="Cardano.Wallet.Byron.Compatibility">ByronBlock</a>)</td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Create an instance of the network layer</p></div></div><a href="#g:2" id="g:2"><h1>Transport Helpers</h1></a><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:AddrInfo" class="def">AddrInfo</a> <a href="#t:AddrInfo" class="selflink">#</a></p><div class="subs instances"><details id="i:AddrInfo" open="open"><summary>Instances</summary><table><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:AddrInfo:Eq:1"></span> <a href="../base-4.12.0.0/Data-Eq.html#t:Eq" title="Data.Eq">Eq</a> <a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a></span></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:AddrInfo:Eq:1"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Network-Socket.html">Network.Socket</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a> -&gt; <a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a> -&gt; <a href="../base-4.12.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="#v:-61--61-" class="selflink">#</a></p><p class="src"><a href="#v:-47--61-">(/=)</a> :: <a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a> -&gt; <a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a> -&gt; <a href="../base-4.12.0.0/Data-Bool.html#t:Bool" title="Data.Bool">Bool</a> <a href="#v:-47--61-" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:AddrInfo:Show:2"></span> <a href="../base-4.12.0.0/Text-Show.html#t:Show" title="Text.Show">Show</a> <a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a></span></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:AddrInfo:Show:2"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Network-Socket.html">Network.Socket</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="../base-4.12.0.0/Data-Int.html#t:Int" title="Data.Int">Int</a> -&gt; <a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a> -&gt; <a href="../base-4.12.0.0/Text-Show.html#t:ShowS" title="Text.Show">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a> -&gt; <a href="../base-4.12.0.0/Data-String.html#t:String" title="Data.String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a>] -&gt; <a href="../base-4.12.0.0/Text-Show.html#t:ShowS" title="Text.Show">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:AddrInfo:Storable:3"></span> <a href="../base-4.12.0.0/Foreign-Storable.html#t:Storable" title="Foreign.Storable">Storable</a> <a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a></span></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:AddrInfo:Storable:3"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="Network-Socket.html">Network.Socket</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:sizeOf">sizeOf</a> :: <a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a> -&gt; <a href="../base-4.12.0.0/Data-Int.html#t:Int" title="Data.Int">Int</a> <a href="#v:sizeOf" class="selflink">#</a></p><p class="src"><a href="#v:alignment">alignment</a> :: <a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a> -&gt; <a href="../base-4.12.0.0/Data-Int.html#t:Int" title="Data.Int">Int</a> <a href="#v:alignment" class="selflink">#</a></p><p class="src"><a href="#v:peekElemOff">peekElemOff</a> :: <a href="../base-4.12.0.0/Foreign-Ptr.html#t:Ptr" title="Foreign.Ptr">Ptr</a> <a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a> -&gt; <a href="../base-4.12.0.0/Data-Int.html#t:Int" title="Data.Int">Int</a> -&gt; <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> <a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a> <a href="#v:peekElemOff" class="selflink">#</a></p><p class="src"><a href="#v:pokeElemOff">pokeElemOff</a> :: <a href="../base-4.12.0.0/Foreign-Ptr.html#t:Ptr" title="Foreign.Ptr">Ptr</a> <a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a> -&gt; <a href="../base-4.12.0.0/Data-Int.html#t:Int" title="Data.Int">Int</a> -&gt; <a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a> -&gt; <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> () <a href="#v:pokeElemOff" class="selflink">#</a></p><p class="src"><a href="#v:peekByteOff">peekByteOff</a> :: <a href="../base-4.12.0.0/Foreign-Ptr.html#t:Ptr" title="Foreign.Ptr">Ptr</a> b -&gt; <a href="../base-4.12.0.0/Data-Int.html#t:Int" title="Data.Int">Int</a> -&gt; <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> <a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a> <a href="#v:peekByteOff" class="selflink">#</a></p><p class="src"><a href="#v:pokeByteOff">pokeByteOff</a> :: <a href="../base-4.12.0.0/Foreign-Ptr.html#t:Ptr" title="Foreign.Ptr">Ptr</a> b -&gt; <a href="../base-4.12.0.0/Data-Int.html#t:Int" title="Data.Int">Int</a> -&gt; <a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a> -&gt; <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> () <a href="#v:pokeByteOff" class="selflink">#</a></p><p class="src"><a href="#v:peek">peek</a> :: <a href="../base-4.12.0.0/Foreign-Ptr.html#t:Ptr" title="Foreign.Ptr">Ptr</a> <a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a> -&gt; <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> <a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a> <a href="#v:peek" class="selflink">#</a></p><p class="src"><a href="#v:poke">poke</a> :: <a href="../base-4.12.0.0/Foreign-Ptr.html#t:Ptr" title="Foreign.Ptr">Ptr</a> <a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a> -&gt; <a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a> -&gt; <a href="../base-4.12.0.0/System-IO.html#t:IO" title="System.IO">IO</a> () <a href="#v:poke" class="selflink">#</a></p></div></details></td></tr></table></details></div></div><div class="top"><p class="src"><a id="v:localSocketAddrInfo" class="def">localSocketAddrInfo</a> :: <a href="../base-4.12.0.0/System-IO.html#t:FilePath" title="System.IO">FilePath</a> -&gt; <a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">AddrInfo</a> <a href="src/Cardano.Wallet.Byron.Network.html#localSocketAddrInfo" class="link">Source</a> <a href="#v:localSocketAddrInfo" class="selflink">#</a></p></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.22.0</p></div></body></html>
\ No newline at end of file
toEpochSlots :: EpochLength -> EpochSlots
toPoint :: BlockHeader -> Point ByronBlock
toSlotNo :: SlotId -> SlotNo
+

                      
+
-- | SealedTx are the result of rightfully constructed byron transactions
+
--   so, it is relatively safe to unserialize them from CBOR.
+
toGenTx :: HasCallStack => SealedTx -> GenTx ByronBlock
fromByronBlock :: Hash "Genesis" -> ByronBlock -> Block
fromTxAux :: TxAux -> Tx
fromTxIn :: TxIn -> TxIn
--   <li>In particular sections 4.1, 4.2, 4.6 and 4.8</li>
--   </ul>
module Cardano.Wallet.Byron.Network
-
pattern Cursor :: () => Point ByronBlock -> TQueue m (NetworkClientCmd m) -> Cursor (m Byron)
+
pattern Cursor :: () => Point ByronBlock -> TQueue m (ChainSyncCmd m) -> Cursor (m Byron)

                      
-- | Create an instance of the network layer
-
newNetworkLayer :: Trace IO Text -> BlockchainParameters -> AddrInfo -> (NodeToClientVersionData, CodecCBORTerm Text NodeToClientVersionData) -> NetworkLayer IO (IO Byron) ByronBlock
+
newNetworkLayer :: Trace IO Text -> BlockchainParameters -> AddrInfo -> (NodeToClientVersionData, CodecCBORTerm Text NodeToClientVersionData) -> IO (NetworkLayer IO (IO Byron) ByronBlock)
data AddrInfo
localSocketAddrInfo :: FilePath -> AddrInfo

                      
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>cardano-wallet-byron-2020.1.21: Wallet backend protocol-specific bits implemented using byron nodes (Index)</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><link rel="stylesheet" type="text/css" href="quick-jump.css" /><script src="haddock-bundle.min.js" async="async" type="text/javascript"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">cardano-wallet-byron-2020.1.21: Wallet backend protocol-specific bits implemented using byron nodes</p></div><div id="content"><div id="index"><p class="caption">Index</p><table><tr><td class="src">AddrInfo</td><td class="module"><a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">Cardano.Wallet.Byron.Network</a></td></tr><tr><td class="src">apiServerTracer</td><td class="module"><a href="Cardano-Wallet-Byron.html#v:apiServerTracer" title="Cardano.Wallet.Byron">Cardano.Wallet.Byron</a></td></tr><tr><td class="src">ApplicationLog</td><td class="module"><a href="Cardano-Wallet-Byron.html#t:ApplicationLog" title="Cardano.Wallet.Byron">Cardano.Wallet.Byron</a></td></tr><tr><td class="src">applicationTracer</td><td class="module"><a href="Cardano-Wallet-Byron.html#v:applicationTracer" title="Cardano.Wallet.Byron">Cardano.Wallet.Byron</a></td></tr><tr><td class="src">blockchainParameters</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:blockchainParameters" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">Byron</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#t:Byron" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">byronActiveSlotCoefficient</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:byronActiveSlotCoefficient" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">ByronBlock</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#t:ByronBlock" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">byronEpochLength</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:byronEpochLength" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">byronEpochStability</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:byronEpochStability" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">byronFeePolicy</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:byronFeePolicy" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">byronSlotLength</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:byronSlotLength" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">byronTxMaxSize</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:byronTxMaxSize" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">Cursor</td><td class="module"><a href="Cardano-Wallet-Byron-Network.html#v:Cursor" title="Cardano.Wallet.Byron.Network">Cardano.Wallet.Byron.Network</a></td></tr><tr><td class="src">fromBlockNo</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:fromBlockNo" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">fromByronBlock</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:fromByronBlock" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">fromByronHash</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:fromByronHash" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">fromChainHash</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:fromChainHash" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">fromSlotNo</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:fromSlotNo" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">fromTip</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:fromTip" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">fromTxAux</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:fromTxAux" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">fromTxIn</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:fromTxIn" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">fromTxOut</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:fromTxOut" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">genesisBlock</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:genesisBlock" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">genesisTip</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:genesisTip" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">KnownNetwork</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#t:KnownNetwork" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">localSocketAddrInfo</td><td class="module"><a href="Cardano-Wallet-Byron-Network.html#v:localSocketAddrInfo" title="Cardano.Wallet.Byron.Network">Cardano.Wallet.Byron.Network</a></td></tr><tr><td class="src">mainnetGenesisHash</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:mainnetGenesisHash" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">mainnetParameters</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:mainnetParameters" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">mainnetStartTime</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:mainnetStartTime" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">mainnetVersionData</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:mainnetVersionData" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">MsgDatabaseStartup</td><td class="module"><a href="Cardano-Wallet-Byron.html#v:MsgDatabaseStartup" title="Cardano.Wallet.Byron">Cardano.Wallet.Byron</a></td></tr><tr><td class="src">MsgNetworkName</td><td class="module"><a href="Cardano-Wallet-Byron.html#v:MsgNetworkName" title="Cardano.Wallet.Byron">Cardano.Wallet.Byron</a></td></tr><tr><td class="src">MsgServerStartupError</td><td class="module"><a href="Cardano-Wallet-Byron.html#v:MsgServerStartupError" title="Cardano.Wallet.Byron">Cardano.Wallet.Byron</a></td></tr><tr><td class="src">MsgSigTerm</td><td class="module"><a href="Cardano-Wallet-Byron.html#v:MsgSigTerm" title="Cardano.Wallet.Byron">Cardano.Wallet.Byron</a></td></tr><tr><td class="src">MsgStarting</td><td class="module"><a href="Cardano-Wallet-Byron.html#v:MsgStarting" title="Cardano.Wallet.Byron">Cardano.Wallet.Byron</a></td></tr><tr><td class="src">newNetworkLayer</td><td class="module"><a href="Cardano-Wallet-Byron-Network.html#v:newNetworkLayer" title="Cardano.Wallet.Byron.Network">Cardano.Wallet.Byron.Network</a></td></tr><tr><td class="src">newTransactionLayer</td><td class="module"><a href="Cardano-Wallet-Byron-Transaction.html#v:newTransactionLayer" title="Cardano.Wallet.Byron.Transaction">Cardano.Wallet.Byron.Transaction</a></td></tr><tr><td class="src">serveWallet</td><td class="module"><a href="Cardano-Wallet-Byron.html#v:serveWallet" title="Cardano.Wallet.Byron">Cardano.Wallet.Byron</a></td></tr><tr><td class="src">setupTracers</td><td class="module"><a href="Cardano-Wallet-Byron.html#v:setupTracers" title="Cardano.Wallet.Byron">Cardano.Wallet.Byron</a></td></tr><tr><td class="src">sizeOfCoin</td><td class="module"><a href="Cardano-Wallet-Byron-Transaction-Size.html#v:sizeOfCoin" title="Cardano.Wallet.Byron.Transaction.Size">Cardano.Wallet.Byron.Transaction.Size</a></td></tr><tr><td class="src">sizeOfSignedTx</td><td class="module"><a href="Cardano-Wallet-Byron-Transaction-Size.html#v:sizeOfSignedTx" title="Cardano.Wallet.Byron.Transaction.Size">Cardano.Wallet.Byron.Transaction.Size</a></td></tr><tr><td class="src">sizeOfTxIn</td><td class="module"><a href="Cardano-Wallet-Byron-Transaction-Size.html#v:sizeOfTxIn" title="Cardano.Wallet.Byron.Transaction.Size">Cardano.Wallet.Byron.Transaction.Size</a></td></tr><tr><td class="src">sizeOfTxOut</td><td class="module"><a href="Cardano-Wallet-Byron-Transaction-Size.html#v:sizeOfTxOut" title="Cardano.Wallet.Byron.Transaction.Size">Cardano.Wallet.Byron.Transaction.Size</a></td></tr><tr><td class="src">sizeOfTxWitness</td><td class="module"><a href="Cardano-Wallet-Byron-Transaction-Size.html#v:sizeOfTxWitness" title="Cardano.Wallet.Byron.Transaction.Size">Cardano.Wallet.Byron.Transaction.Size</a></td></tr><tr><td class="src">testnetVersionData</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:testnetVersionData" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">toByronHash</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:toByronHash" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">toEpochSlots</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:toEpochSlots" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">toPoint</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:toPoint" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">toSlotNo</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:toSlotNo" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">tracerDescriptions</td><td class="module"><a href="Cardano-Wallet-Byron.html#v:tracerDescriptions" title="Cardano.Wallet.Byron">Cardano.Wallet.Byron</a></td></tr><tr><td class="src">tracerLabels</td><td class="module"><a href="Cardano-Wallet-Byron.html#v:tracerLabels" title="Cardano.Wallet.Byron">Cardano.Wallet.Byron</a></td></tr><tr><td class="src">Tracers</td><td>&nbsp;</td></tr><tr><td class="alt">1 (Type/Class)</td><td class="module"><a href="Cardano-Wallet-Byron.html#t:Tracers" title="Cardano.Wallet.Byron">Cardano.Wallet.Byron</a></td></tr><tr><td class="alt">2 (Data Constructor)</td><td class="module"><a href="Cardano-Wallet-Byron.html#v:Tracers" title="Cardano.Wallet.Byron">Cardano.Wallet.Byron</a></td></tr><tr><td class="src">Tracers'</td><td class="module"><a href="Cardano-Wallet-Byron.html#t:Tracers-39-" title="Cardano.Wallet.Byron">Cardano.Wallet.Byron</a></td></tr><tr><td class="src">TracerSeverities</td><td class="module"><a href="Cardano-Wallet-Byron.html#t:TracerSeverities" title="Cardano.Wallet.Byron">Cardano.Wallet.Byron</a></td></tr><tr><td class="src">tracerSeverities</td><td class="module"><a href="Cardano-Wallet-Byron.html#v:tracerSeverities" title="Cardano.Wallet.Byron">Cardano.Wallet.Byron</a></td></tr><tr><td class="src">versionData</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:versionData" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">walletDbTracer</td><td class="module"><a href="Cardano-Wallet-Byron.html#v:walletDbTracer" title="Cardano.Wallet.Byron">Cardano.Wallet.Byron</a></td></tr><tr><td class="src">walletEngineTracer</td><td class="module"><a href="Cardano-Wallet-Byron.html#v:walletEngineTracer" title="Cardano.Wallet.Byron">Cardano.Wallet.Byron</a></td></tr><tr><td class="src">WorstSizeOf</td><td class="module"><a href="Cardano-Wallet-Byron-Transaction-Size.html#t:WorstSizeOf" title="Cardano.Wallet.Byron.Transaction.Size">Cardano.Wallet.Byron.Transaction.Size</a></td></tr><tr><td class="src">worstSizeOf</td><td class="module"><a href="Cardano-Wallet-Byron-Transaction-Size.html#v:worstSizeOf" title="Cardano.Wallet.Byron.Transaction.Size">Cardano.Wallet.Byron.Transaction.Size</a></td></tr></table></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.22.0</p></div></body></html>
\ No newline at end of file
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>cardano-wallet-byron-2020.1.21: Wallet backend protocol-specific bits implemented using byron nodes (Index)</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><link rel="stylesheet" type="text/css" href="quick-jump.css" /><script src="haddock-bundle.min.js" async="async" type="text/javascript"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">cardano-wallet-byron-2020.1.21: Wallet backend protocol-specific bits implemented using byron nodes</p></div><div id="content"><div id="index"><p class="caption">Index</p><table><tr><td class="src">AddrInfo</td><td class="module"><a href="Cardano-Wallet-Byron-Network.html#t:AddrInfo" title="Cardano.Wallet.Byron.Network">Cardano.Wallet.Byron.Network</a></td></tr><tr><td class="src">apiServerTracer</td><td class="module"><a href="Cardano-Wallet-Byron.html#v:apiServerTracer" title="Cardano.Wallet.Byron">Cardano.Wallet.Byron</a></td></tr><tr><td class="src">ApplicationLog</td><td class="module"><a href="Cardano-Wallet-Byron.html#t:ApplicationLog" title="Cardano.Wallet.Byron">Cardano.Wallet.Byron</a></td></tr><tr><td class="src">applicationTracer</td><td class="module"><a href="Cardano-Wallet-Byron.html#v:applicationTracer" title="Cardano.Wallet.Byron">Cardano.Wallet.Byron</a></td></tr><tr><td class="src">blockchainParameters</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:blockchainParameters" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">Byron</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#t:Byron" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">byronActiveSlotCoefficient</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:byronActiveSlotCoefficient" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">ByronBlock</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#t:ByronBlock" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">byronEpochLength</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:byronEpochLength" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">byronEpochStability</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:byronEpochStability" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">byronFeePolicy</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:byronFeePolicy" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">byronSlotLength</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:byronSlotLength" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">byronTxMaxSize</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:byronTxMaxSize" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">Cursor</td><td class="module"><a href="Cardano-Wallet-Byron-Network.html#v:Cursor" title="Cardano.Wallet.Byron.Network">Cardano.Wallet.Byron.Network</a></td></tr><tr><td class="src">fromBlockNo</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:fromBlockNo" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">fromByronBlock</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:fromByronBlock" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">fromByronHash</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:fromByronHash" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">fromChainHash</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:fromChainHash" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">fromSlotNo</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:fromSlotNo" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">fromTip</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:fromTip" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">fromTxAux</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:fromTxAux" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">fromTxIn</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:fromTxIn" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">fromTxOut</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:fromTxOut" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">genesisBlock</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:genesisBlock" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">genesisTip</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:genesisTip" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">KnownNetwork</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#t:KnownNetwork" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">localSocketAddrInfo</td><td class="module"><a href="Cardano-Wallet-Byron-Network.html#v:localSocketAddrInfo" title="Cardano.Wallet.Byron.Network">Cardano.Wallet.Byron.Network</a></td></tr><tr><td class="src">mainnetGenesisHash</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:mainnetGenesisHash" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">mainnetParameters</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:mainnetParameters" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">mainnetStartTime</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:mainnetStartTime" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">mainnetVersionData</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:mainnetVersionData" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">MsgDatabaseStartup</td><td class="module"><a href="Cardano-Wallet-Byron.html#v:MsgDatabaseStartup" title="Cardano.Wallet.Byron">Cardano.Wallet.Byron</a></td></tr><tr><td class="src">MsgNetworkName</td><td class="module"><a href="Cardano-Wallet-Byron.html#v:MsgNetworkName" title="Cardano.Wallet.Byron">Cardano.Wallet.Byron</a></td></tr><tr><td class="src">MsgServerStartupError</td><td class="module"><a href="Cardano-Wallet-Byron.html#v:MsgServerStartupError" title="Cardano.Wallet.Byron">Cardano.Wallet.Byron</a></td></tr><tr><td class="src">MsgSigTerm</td><td class="module"><a href="Cardano-Wallet-Byron.html#v:MsgSigTerm" title="Cardano.Wallet.Byron">Cardano.Wallet.Byron</a></td></tr><tr><td class="src">MsgStarting</td><td class="module"><a href="Cardano-Wallet-Byron.html#v:MsgStarting" title="Cardano.Wallet.Byron">Cardano.Wallet.Byron</a></td></tr><tr><td class="src">newNetworkLayer</td><td class="module"><a href="Cardano-Wallet-Byron-Network.html#v:newNetworkLayer" title="Cardano.Wallet.Byron.Network">Cardano.Wallet.Byron.Network</a></td></tr><tr><td class="src">newTransactionLayer</td><td class="module"><a href="Cardano-Wallet-Byron-Transaction.html#v:newTransactionLayer" title="Cardano.Wallet.Byron.Transaction">Cardano.Wallet.Byron.Transaction</a></td></tr><tr><td class="src">serveWallet</td><td class="module"><a href="Cardano-Wallet-Byron.html#v:serveWallet" title="Cardano.Wallet.Byron">Cardano.Wallet.Byron</a></td></tr><tr><td class="src">setupTracers</td><td class="module"><a href="Cardano-Wallet-Byron.html#v:setupTracers" title="Cardano.Wallet.Byron">Cardano.Wallet.Byron</a></td></tr><tr><td class="src">sizeOfCoin</td><td class="module"><a href="Cardano-Wallet-Byron-Transaction-Size.html#v:sizeOfCoin" title="Cardano.Wallet.Byron.Transaction.Size">Cardano.Wallet.Byron.Transaction.Size</a></td></tr><tr><td class="src">sizeOfSignedTx</td><td class="module"><a href="Cardano-Wallet-Byron-Transaction-Size.html#v:sizeOfSignedTx" title="Cardano.Wallet.Byron.Transaction.Size">Cardano.Wallet.Byron.Transaction.Size</a></td></tr><tr><td class="src">sizeOfTxIn</td><td class="module"><a href="Cardano-Wallet-Byron-Transaction-Size.html#v:sizeOfTxIn" title="Cardano.Wallet.Byron.Transaction.Size">Cardano.Wallet.Byron.Transaction.Size</a></td></tr><tr><td class="src">sizeOfTxOut</td><td class="module"><a href="Cardano-Wallet-Byron-Transaction-Size.html#v:sizeOfTxOut" title="Cardano.Wallet.Byron.Transaction.Size">Cardano.Wallet.Byron.Transaction.Size</a></td></tr><tr><td class="src">sizeOfTxWitness</td><td class="module"><a href="Cardano-Wallet-Byron-Transaction-Size.html#v:sizeOfTxWitness" title="Cardano.Wallet.Byron.Transaction.Size">Cardano.Wallet.Byron.Transaction.Size</a></td></tr><tr><td class="src">testnetVersionData</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:testnetVersionData" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">toByronHash</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:toByronHash" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">toEpochSlots</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:toEpochSlots" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">toGenTx</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:toGenTx" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">toPoint</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:toPoint" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">toSlotNo</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:toSlotNo" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">tracerDescriptions</td><td class="module"><a href="Cardano-Wallet-Byron.html#v:tracerDescriptions" title="Cardano.Wallet.Byron">Cardano.Wallet.Byron</a></td></tr><tr><td class="src">tracerLabels</td><td class="module"><a href="Cardano-Wallet-Byron.html#v:tracerLabels" title="Cardano.Wallet.Byron">Cardano.Wallet.Byron</a></td></tr><tr><td class="src">Tracers</td><td>&nbsp;</td></tr><tr><td class="alt">1 (Type/Class)</td><td class="module"><a href="Cardano-Wallet-Byron.html#t:Tracers" title="Cardano.Wallet.Byron">Cardano.Wallet.Byron</a></td></tr><tr><td class="alt">2 (Data Constructor)</td><td class="module"><a href="Cardano-Wallet-Byron.html#v:Tracers" title="Cardano.Wallet.Byron">Cardano.Wallet.Byron</a></td></tr><tr><td class="src">Tracers'</td><td class="module"><a href="Cardano-Wallet-Byron.html#t:Tracers-39-" title="Cardano.Wallet.Byron">Cardano.Wallet.Byron</a></td></tr><tr><td class="src">TracerSeverities</td><td class="module"><a href="Cardano-Wallet-Byron.html#t:TracerSeverities" title="Cardano.Wallet.Byron">Cardano.Wallet.Byron</a></td></tr><tr><td class="src">tracerSeverities</td><td class="module"><a href="Cardano-Wallet-Byron.html#v:tracerSeverities" title="Cardano.Wallet.Byron">Cardano.Wallet.Byron</a></td></tr><tr><td class="src">versionData</td><td class="module"><a href="Cardano-Wallet-Byron-Compatibility.html#v:versionData" title="Cardano.Wallet.Byron.Compatibility">Cardano.Wallet.Byron.Compatibility</a></td></tr><tr><td class="src">walletDbTracer</td><td class="module"><a href="Cardano-Wallet-Byron.html#v:walletDbTracer" title="Cardano.Wallet.Byron">Cardano.Wallet.Byron</a></td></tr><tr><td class="src">walletEngineTracer</td><td class="module"><a href="Cardano-Wallet-Byron.html#v:walletEngineTracer" title="Cardano.Wallet.Byron">Cardano.Wallet.Byron</a></td></tr><tr><td class="src">WorstSizeOf</td><td class="module"><a href="Cardano-Wallet-Byron-Transaction-Size.html#t:WorstSizeOf" title="Cardano.Wallet.Byron.Transaction.Size">Cardano.Wallet.Byron.Transaction.Size</a></td></tr><tr><td class="src">worstSizeOf</td><td class="module"><a href="Cardano-Wallet-Byron-Transaction-Size.html#v:worstSizeOf" title="Cardano.Wallet.Byron.Transaction.Size">Cardano.Wallet.Byron.Transaction.Size</a></td></tr></table></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.22.0</p></div></body></html>
\ No newline at end of file
-
[{"display_html":"<span class=\"keyword\">data</span> <a href=\"#t:Byron\">Byron</a>","name":"Byron","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#t:Byron"},{"display_html":"<span class=\"keyword\">data</span> <a href=\"#t:ByronBlock\">ByronBlock</a>","name":"ByronBlock","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#t:ByronBlock"},{"display_html":"<span class=\"keyword\">class</span> <a href=\"#t:KnownNetwork\">KnownNetwork</a> (n :: <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-AddressDerivation.html#t:NetworkDiscriminant\" title=\"Cardano.Wallet.Primitive.AddressDerivation\">NetworkDiscriminant</a>) <span class=\"keyword\">where</span><ul class=\"subs\"><li><a href=\"#v:blockchainParameters\">blockchainParameters</a> :: <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:BlockchainParameters\" title=\"Cardano.Wallet.Primitive.Types\">BlockchainParameters</a></li><li><a href=\"#v:versionData\">versionData</a> :: (NodeToClientVersionData, CodecCBORTerm <a href=\"../text-1.2.3.1/Data-Text.html#t:Text\" title=\"Data.Text\">Text</a> NodeToClientVersionData)</li></ul>","name":"KnownNetwork blockchainParameters versionData","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#t:KnownNetwork"},{"display_html":"<a href=\"#v:mainnetParameters\">mainnetParameters</a> :: <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:BlockchainParameters\" title=\"Cardano.Wallet.Primitive.Types\">BlockchainParameters</a>","name":"mainnetParameters","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:mainnetParameters"},{"display_html":"<a href=\"#v:mainnetGenesisHash\">mainnetGenesisHash</a> :: <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:Hash\" title=\"Cardano.Wallet.Primitive.Types\">Hash</a> &quot;Genesis&quot;","name":"mainnetGenesisHash","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:mainnetGenesisHash"},{"display_html":"<a href=\"#v:mainnetStartTime\">mainnetStartTime</a> :: <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:StartTime\" title=\"Cardano.Wallet.Primitive.Types\">StartTime</a>","name":"mainnetStartTime","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:mainnetStartTime"},{"display_html":"<a href=\"#v:byronFeePolicy\">byronFeePolicy</a> :: <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:FeePolicy\" title=\"Cardano.Wallet.Primitive.Types\">FeePolicy</a>","name":"byronFeePolicy","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:byronFeePolicy"},{"display_html":"<a href=\"#v:byronSlotLength\">byronSlotLength</a> :: <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:SlotLength\" title=\"Cardano.Wallet.Primitive.Types\">SlotLength</a>","name":"byronSlotLength","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:byronSlotLength"},{"display_html":"<a href=\"#v:byronEpochLength\">byronEpochLength</a> :: <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:EpochLength\" title=\"Cardano.Wallet.Primitive.Types\">EpochLength</a>","name":"byronEpochLength","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:byronEpochLength"},{"display_html":"<a href=\"#v:byronTxMaxSize\">byronTxMaxSize</a> :: <a href=\"../cardano-wallet-core-2020.1.27/Data-Quantity.html#t:Quantity\" title=\"Data.Quantity\">Quantity</a> &quot;byte&quot; <a href=\"../base-4.12.0.0/Data-Word.html#t:Word16\" title=\"Data.Word\">Word16</a>","name":"byronTxMaxSize","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:byronTxMaxSize"},{"display_html":"<a href=\"#v:byronEpochStability\">byronEpochStability</a> :: <a href=\"../cardano-wallet-core-2020.1.27/Data-Quantity.html#t:Quantity\" title=\"Data.Quantity\">Quantity</a> &quot;block&quot; <a href=\"../base-4.12.0.0/Data-Word.html#t:Word32\" title=\"Data.Word\">Word32</a>","name":"byronEpochStability","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:byronEpochStability"},{"display_html":"<a href=\"#v:byronActiveSlotCoefficient\">byronActiveSlotCoefficient</a> :: <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:ActiveSlotCoefficient\" title=\"Cardano.Wallet.Primitive.Types\">ActiveSlotCoefficient</a>","name":"byronActiveSlotCoefficient","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:byronActiveSlotCoefficient"},{"display_html":"<a href=\"#v:genesisTip\">genesisTip</a> :: Tip <a href=\"Cardano-Wallet-Byron-Compatibility.html#t:ByronBlock\" title=\"Cardano.Wallet.Byron.Compatibility\">ByronBlock</a>","name":"genesisTip","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:genesisTip"},{"display_html":"<a href=\"#v:genesisBlock\">genesisBlock</a> :: ByronHash -&gt; <a href=\"Cardano-Wallet-Byron-Compatibility.html#t:ByronBlock\" title=\"Cardano.Wallet.Byron.Compatibility\">ByronBlock</a>","name":"genesisBlock","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:genesisBlock"},{"display_html":"<a href=\"#v:mainnetVersionData\">mainnetVersionData</a> :: (NodeToClientVersionData, CodecCBORTerm <a href=\"../text-1.2.3.1/Data-Text.html#t:Text\" title=\"Data.Text\">Text</a> NodeToClientVersionData)","name":"mainnetVersionData","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:mainnetVersionData"},{"display_html":"<a href=\"#v:testnetVersionData\">testnetVersionData</a> :: (NodeToClientVersionData, CodecCBORTerm <a href=\"../text-1.2.3.1/Data-Text.html#t:Text\" title=\"Data.Text\">Text</a> NodeToClientVersionData)","name":"testnetVersionData","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:testnetVersionData"},{"display_html":"<a href=\"#v:toByronHash\">toByronHash</a> :: <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:Hash\" title=\"Cardano.Wallet.Primitive.Types\">Hash</a> &quot;BlockHeader&quot; -&gt; ByronHash","name":"toByronHash","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:toByronHash"},{"display_html":"<a href=\"#v:toEpochSlots\">toEpochSlots</a> :: <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:EpochLength\" title=\"Cardano.Wallet.Primitive.Types\">EpochLength</a> -&gt; EpochSlots","name":"toEpochSlots","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:toEpochSlots"},{"display_html":"<a href=\"#v:toPoint\">toPoint</a> :: <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:BlockHeader\" title=\"Cardano.Wallet.Primitive.Types\">BlockHeader</a> -&gt; Point <a href=\"Cardano-Wallet-Byron-Compatibility.html#t:ByronBlock\" title=\"Cardano.Wallet.Byron.Compatibility\">ByronBlock</a>","name":"toPoint","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:toPoint"},{"display_html":"<a href=\"#v:toSlotNo\">toSlotNo</a> :: <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:SlotId\" title=\"Cardano.Wallet.Primitive.Types\">SlotId</a> -&gt; SlotNo","name":"toSlotNo","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:toSlotNo"},{"display_html":"<a href=\"#v:fromByronBlock\">fromByronBlock</a> :: <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:Hash\" title=\"Cardano.Wallet.Primitive.Types\">Hash</a> &quot;Genesis&quot; -&gt; <a href=\"Cardano-Wallet-Byron-Compatibility.html#t:ByronBlock\" title=\"Cardano.Wallet.Byron.Compatibility\">ByronBlock</a> -&gt; <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:Block\" title=\"Cardano.Wallet.Primitive.Types\">Block</a>","name":"fromByronBlock","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:fromByronBlock"},{"display_html":"<a href=\"#v:fromTxAux\">fromTxAux</a> :: TxAux -&gt; <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:Tx\" title=\"Cardano.Wallet.Primitive.Types\">Tx</a>","name":"fromTxAux","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:fromTxAux"},{"display_html":"<a href=\"#v:fromTxIn\">fromTxIn</a> :: TxIn -&gt; <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:TxIn\" title=\"Cardano.Wallet.Primitive.Types\">TxIn</a>","name":"fromTxIn","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:fromTxIn"},{"display_html":"<a href=\"#v:fromTxOut\">fromTxOut</a> :: TxOut -&gt; <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:TxOut\" title=\"Cardano.Wallet.Primitive.Types\">TxOut</a>","name":"fromTxOut","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:fromTxOut"},{"display_html":"<a href=\"#v:fromByronHash\">fromByronHash</a> :: ByronHash -&gt; <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:Hash\" title=\"Cardano.Wallet.Primitive.Types\">Hash</a> &quot;BlockHeader&quot;","name":"fromByronHash","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:fromByronHash"},{"display_html":"<a href=\"#v:fromChainHash\">fromChainHash</a> :: <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:Hash\" title=\"Cardano.Wallet.Primitive.Types\">Hash</a> &quot;Genesis&quot; -&gt; ChainHash <a href=\"Cardano-Wallet-Byron-Compatibility.html#t:ByronBlock\" title=\"Cardano.Wallet.Byron.Compatibility\">ByronBlock</a> -&gt; <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:Hash\" title=\"Cardano.Wallet.Primitive.Types\">Hash</a> &quot;BlockHeader&quot;","name":"fromChainHash","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:fromChainHash"},{"display_html":"<a href=\"#v:fromSlotNo\">fromSlotNo</a> :: SlotNo -&gt; <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:SlotId\" title=\"Cardano.Wallet.Primitive.Types\">SlotId</a>","name":"fromSlotNo","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:fromSlotNo"},{"display_html":"<a href=\"#v:fromBlockNo\">fromBlockNo</a> :: BlockNo -&gt; <a href=\"../cardano-wallet-core-2020.1.27/Data-Quantity.html#t:Quantity\" title=\"Data.Quantity\">Quantity</a> &quot;block&quot; <a href=\"../base-4.12.0.0/Data-Word.html#t:Word32\" title=\"Data.Word\">Word32</a>","name":"fromBlockNo","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:fromBlockNo"},{"display_html":"<a href=\"#v:fromTip\">fromTip</a> :: <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:Hash\" title=\"Cardano.Wallet.Primitive.Types\">Hash</a> &quot;Genesis&quot; -&gt; Tip <a href=\"Cardano-Wallet-Byron-Compatibility.html#t:ByronBlock\" title=\"Cardano.Wallet.Byron.Compatibility\">ByronBlock</a> -&gt; <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:BlockHeader\" title=\"Cardano.Wallet.Primitive.Types\">BlockHeader</a>","name":"fromTip","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:fromTip"},{"display_html":"<span class=\"keyword\">pattern</span> <a href=\"#v:Cursor\">Cursor</a> :: Point <a href=\"Cardano-Wallet-Byron-Compatibility.html#t:ByronBlock\" title=\"Cardano.Wallet.Byron.Compatibility\">ByronBlock</a> -&gt; TQueue m (NetworkClientCmd m) -&gt; <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Network.html#t:Cursor\" title=\"Cardano.Wallet.Network\">Cursor</a> (m <a href=\"Cardano-Wallet-Byron-Compatibility.html#t:Byron\" title=\"Cardano.Wallet.Byron.Compatibility\">Byron</a>)","name":"Cursor","module":"Cardano.Wallet.Byron.Network","link":"Cardano-Wallet-Byron-Network.html#v:Cursor"},{"display_html":"<a href=\"#v:newNetworkLayer\">newNetworkLayer</a> :: Trace <a href=\"../base-4.12.0.0/System-IO.html#t:IO\" title=\"System.IO\">IO</a> <a href=\"../text-1.2.3.1/Data-Text.html#t:Text\" title=\"Data.Text\">Text</a> -&gt; <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:BlockchainParameters\" title=\"Cardano.Wallet.Primitive.Types\">BlockchainParameters</a> -&gt; <a href=\"Cardano-Wallet-Byron-Network.html#t:AddrInfo\" title=\"Cardano.Wallet.Byron.Network\">AddrInfo</a> -&gt; (NodeToClientVersionData, CodecCBORTerm <a href=\"../text-1.2.3.1/Data-Text.html#t:Text\" title=\"Data.Text\">Text</a> NodeToClientVersionData) -&gt; <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Network.html#t:NetworkLayer\" title=\"Cardano.Wallet.Network\">NetworkLayer</a> <a href=\"../base-4.12.0.0/System-IO.html#t:IO\" title=\"System.IO\">IO</a> (<a href=\"../base-4.12.0.0/System-IO.html#t:IO\" title=\"System.IO\">IO</a> <a href=\"Cardano-Wallet-Byron-Compatibility.html#t:Byron\" title=\"Cardano.Wallet.Byron.Compatibility\">Byron</a>) <a href=\"Cardano-Wallet-Byron-Compatibility.html#t:ByronBlock\" title=\"Cardano.Wallet.Byron.Compatibility\">ByronBlock</a>","name":"newNetworkLayer","module":"Cardano.Wallet.Byron.Network","link":"Cardano-Wallet-Byron-Network.html#v:newNetworkLayer"},{"display_html":"<span class=\"keyword\">data</span> <a href=\"#t:AddrInfo\">AddrInfo</a>","name":"AddrInfo","module":"Cardano.Wallet.Byron.Network","link":"Cardano-Wallet-Byron-Network.html#t:AddrInfo"},{"display_html":"<a href=\"#v:localSocketAddrInfo\">localSocketAddrInfo</a> :: <a href=\"../base-4.12.0.0/System-IO.html#t:FilePath\" title=\"System.IO\">FilePath</a> -&gt; <a href=\"Cardano-Wallet-Byron-Network.html#t:AddrInfo\" title=\"Cardano.Wallet.Byron.Network\">AddrInfo</a>","name":"localSocketAddrInfo","module":"Cardano.Wallet.Byron.Network","link":"Cardano-Wallet-Byron-Network.html#v:localSocketAddrInfo"},{"display_html":"<a href=\"#v:sizeOfTxIn\">sizeOfTxIn</a> :: <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:TxIn\" title=\"Cardano.Wallet.Primitive.Types\">TxIn</a> -&gt; <a href=\"../base-4.12.0.0/Data-Int.html#t:Int\" title=\"Data.Int\">Int</a>","name":"sizeOfTxIn","module":"Cardano.Wallet.Byron.Transaction.Size","link":"Cardano-Wallet-Byron-Transaction-Size.html#v:sizeOfTxIn"},{"display_html":"<a href=\"#v:sizeOfSignedTx\">sizeOfSignedTx</a> :: [<a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:TxIn\" title=\"Cardano.Wallet.Primitive.Types\">TxIn</a>] -&gt; [<a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:TxOut\" title=\"Cardano.Wallet.Primitive.Types\">TxOut</a>] -&gt; <a href=\"../base-4.12.0.0/Data-Int.html#t:Int\" title=\"Data.Int\">Int</a>","name":"sizeOfSignedTx","module":"Cardano.Wallet.Byron.Transaction.Size","link":"Cardano-Wallet-Byron-Transaction-Size.html#v:sizeOfSignedTx"},{"display_html":"<a href=\"#v:sizeOfTxWitness\">sizeOfTxWitness</a> :: <a href=\"../base-4.12.0.0/Data-Int.html#t:Int\" title=\"Data.Int\">Int</a>","name":"sizeOfTxWitness","module":"Cardano.Wallet.Byron.Transaction.Size","link":"Cardano-Wallet-Byron-Transaction-Size.html#v:sizeOfTxWitness"},{"display_html":"<a href=\"#v:sizeOfTxOut\">sizeOfTxOut</a> :: <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:TxOut\" title=\"Cardano.Wallet.Primitive.Types\">TxOut</a> -&gt; <a href=\"../base-4.12.0.0/Data-Int.html#t:Int\" title=\"Data.Int\">Int</a>","name":"sizeOfTxOut","module":"Cardano.Wallet.Byron.Transaction.Size","link":"Cardano-Wallet-Byron-Transaction-Size.html#v:sizeOfTxOut"},{"display_html":"<a href=\"#v:sizeOfCoin\">sizeOfCoin</a> :: <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:Coin\" title=\"Cardano.Wallet.Primitive.Types\">Coin</a> -&gt; <a href=\"../base-4.12.0.0/Data-Int.html#t:Int\" title=\"Data.Int\">Int</a>","name":"sizeOfCoin","module":"Cardano.Wallet.Byron.Transaction.Size","link":"Cardano-Wallet-Byron-Transaction-Size.html#v:sizeOfCoin"},{"display_html":"<a href=\"#v:worstSizeOf\">worstSizeOf</a> :: <a href=\"Cardano-Wallet-Byron-Transaction-Size.html#t:WorstSizeOf\" title=\"Cardano.Wallet.Byron.Transaction.Size\">WorstSizeOf</a> t n k =&gt; <a href=\"../base-4.12.0.0/Data-Int.html#t:Int\" title=\"Data.Int\">Int</a>","name":"worstSizeOf","module":"Cardano.Wallet.Byron.Transaction.Size","link":"Cardano-Wallet-Byron-Transaction-Size.html#v:worstSizeOf"},{"display_html":"<span class=\"keyword\">class</span> <a href=\"#t:WorstSizeOf\">WorstSizeOf</a> (t :: *) (n :: <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-AddressDerivation.html#t:NetworkDiscriminant\" title=\"Cardano.Wallet.Primitive.AddressDerivation\">NetworkDiscriminant</a>) (k :: <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-AddressDerivation.html#t:Depth\" title=\"Cardano.Wallet.Primitive.AddressDerivation\">Depth</a> -&gt; * -&gt; *)","name":"WorstSizeOf","module":"Cardano.Wallet.Byron.Transaction.Size","link":"Cardano-Wallet-Byron-Transaction-Size.html#t:WorstSizeOf"},{"display_html":"<a href=\"#v:newTransactionLayer\">newTransactionLayer</a> :: <span class=\"keyword\">forall</span> (n :: <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-AddressDerivation.html#t:NetworkDiscriminant\" title=\"Cardano.Wallet.Primitive.AddressDerivation\">NetworkDiscriminant</a>) k t. (t ~ <a href=\"../base-4.12.0.0/System-IO.html#t:IO\" title=\"System.IO\">IO</a> <a href=\"Cardano-Wallet-Byron-Compatibility.html#t:Byron\" title=\"Cardano.Wallet.Byron.Compatibility\">Byron</a>, <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-AddressDerivation.html#t:WalletKey\" title=\"Cardano.Wallet.Primitive.AddressDerivation\">WalletKey</a> k, <a href=\"Cardano-Wallet-Byron-Transaction-Size.html#t:WorstSizeOf\" title=\"Cardano.Wallet.Byron.Transaction.Size\">WorstSizeOf</a> <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:Address\" title=\"Cardano.Wallet.Primitive.Types\">Address</a> n k) =&gt; <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Transaction.html#t:TransactionLayer\" title=\"Cardano.Wallet.Transaction\">TransactionLayer</a> t k","name":"newTransactionLayer","module":"Cardano.Wallet.Byron.Transaction","link":"Cardano-Wallet-Byron-Transaction.html#v:newTransactionLayer"},{"display_html":"<a href=\"#v:serveWallet\">serveWallet</a> :: <span class=\"keyword\">forall</span> (n :: <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-AddressDerivation.html#t:NetworkDiscriminant\" title=\"Cardano.Wallet.Primitive.AddressDerivation\">NetworkDiscriminant</a>) t. (<a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-AddressDerivation.html#t:NetworkDiscriminantVal\" title=\"Cardano.Wallet.Primitive.AddressDerivation\">NetworkDiscriminantVal</a> n, <a href=\"Cardano-Wallet-Byron-Compatibility.html#t:KnownNetwork\" title=\"Cardano.Wallet.Byron.Compatibility\">KnownNetwork</a> n, <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Api-Types.html#t:DecodeAddress\" title=\"Cardano.Wallet.Api.Types\">DecodeAddress</a> n, <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Api-Types.html#t:EncodeAddress\" title=\"Cardano.Wallet.Api.Types\">EncodeAddress</a> n, <a href=\"Cardano-Wallet-Byron-Transaction-Size.html#t:WorstSizeOf\" title=\"Cardano.Wallet.Byron.Transaction.Size\">WorstSizeOf</a> <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:Address\" title=\"Cardano.Wallet.Primitive.Types\">Address</a> n <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-AddressDerivation-Icarus.html#t:IcarusKey\" title=\"Cardano.Wallet.Primitive.AddressDerivation.Icarus\">IcarusKey</a>, <a href=\"Cardano-Wallet-Byron-Transaction-Size.html#t:WorstSizeOf\" title=\"Cardano.Wallet.Byron.Transaction.Size\">WorstSizeOf</a> <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:Address\" title=\"Cardano.Wallet.Primitive.Types\">Address</a> n <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-AddressDerivation-Byron.html#t:ByronKey\" title=\"Cardano.Wallet.Primitive.AddressDerivation.Byron\">ByronKey</a>, t ~ <a href=\"../base-4.12.0.0/System-IO.html#t:IO\" title=\"System.IO\">IO</a> <a href=\"Cardano-Wallet-Byron-Compatibility.html#t:Byron\" title=\"Cardano.Wallet.Byron.Compatibility\">Byron</a>) =&gt; <a href=\"Cardano-Wallet-Byron.html#t:Tracers\" title=\"Cardano.Wallet.Byron\">Tracers</a> <a href=\"../base-4.12.0.0/System-IO.html#t:IO\" title=\"System.IO\">IO</a> -&gt; <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:SyncTolerance\" title=\"Cardano.Wallet.Primitive.Types\">SyncTolerance</a> -&gt; <a href=\"../base-4.12.0.0/GHC-Maybe.html#t:Maybe\" title=\"GHC.Maybe\">Maybe</a> <a href=\"../base-4.12.0.0/System-IO.html#t:FilePath\" title=\"System.IO\">FilePath</a> -&gt; <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Api-Server.html#t:HostPreference\" title=\"Cardano.Wallet.Api.Server\">HostPreference</a> -&gt; <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Api-Server.html#t:Listen\" title=\"Cardano.Wallet.Api.Server\">Listen</a> -&gt; <a href=\"Cardano-Wallet-Byron-Network.html#t:AddrInfo\" title=\"Cardano.Wallet.Byron.Network\">AddrInfo</a> -&gt; (SockAddr -&gt; <a href=\"../base-4.12.0.0/System-IO.html#t:IO\" title=\"System.IO\">IO</a> ()) -&gt; <a href=\"../base-4.12.0.0/System-IO.html#t:IO\" title=\"System.IO\">IO</a> <a href=\"../base-4.12.0.0/System-Exit.html#t:ExitCode\" title=\"System.Exit\">ExitCode</a>","name":"serveWallet","module":"Cardano.Wallet.Byron","link":"Cardano-Wallet-Byron.html#v:serveWallet"},{"display_html":"<span class=\"keyword\">data</span> <a href=\"#t:Tracers-39-\">Tracers'</a> f = <a href=\"#v:Tracers\">Tracers</a> {<ul class=\"subs\"><li><a href=\"#v:applicationTracer\">applicationTracer</a> :: f <a href=\"Cardano-Wallet-Byron.html#t:ApplicationLog\" title=\"Cardano.Wallet.Byron\">ApplicationLog</a></li><li><a href=\"#v:apiServerTracer\">apiServerTracer</a> :: f <a href=\"../cardano-wallet-core-2020.1.27/Network-Wai-Middleware-Logging.html#t:ApiLog\" title=\"Network.Wai.Middleware.Logging\">ApiLog</a></li><li><a href=\"#v:walletEngineTracer\">walletEngineTracer</a> :: f (<a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Registry.html#t:WorkerLog\" title=\"Cardano.Wallet.Registry\">WorkerLog</a> <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:WalletId\" title=\"Cardano.Wallet.Primitive.Types\">WalletId</a> <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet.html#t:WalletLog\" title=\"Cardano.Wallet\">WalletLog</a>)</li><li><a href=\"#v:walletDbTracer\">walletDbTracer</a> :: f <a href=\"../cardano-wallet-core-2020.1.27/Cardano-DB-Sqlite.html#t:DBLog\" title=\"Cardano.DB.Sqlite\">DBLog</a></li></ul>}","name":"Tracers' Tracers applicationTracer apiServerTracer walletDbTracer walletEngineTracer","module":"Cardano.Wallet.Byron","link":"Cardano-Wallet-Byron.html#t:Tracers-39-"},{"display_html":"<span class=\"keyword\">type</span> <a href=\"#t:Tracers\">Tracers</a> m = <a href=\"Cardano-Wallet-Byron.html#t:Tracers-39-\" title=\"Cardano.Wallet.Byron\">Tracers'</a> (Tracer m)","name":"Tracers","module":"Cardano.Wallet.Byron","link":"Cardano-Wallet-Byron.html#t:Tracers"},{"display_html":"<span class=\"keyword\">type</span> <a href=\"#t:TracerSeverities\">TracerSeverities</a> = <a href=\"Cardano-Wallet-Byron.html#t:Tracers-39-\" title=\"Cardano.Wallet.Byron\">Tracers'</a> (<a href=\"../base-4.12.0.0/Data-Functor-Const.html#t:Const\" title=\"Data.Functor.Const\">Const</a> (<a href=\"../base-4.12.0.0/GHC-Maybe.html#t:Maybe\" title=\"GHC.Maybe\">Maybe</a> Severity))","name":"TracerSeverities","module":"Cardano.Wallet.Byron","link":"Cardano-Wallet-Byron.html#t:TracerSeverities"},{"display_html":"<a href=\"#v:tracerLabels\">tracerLabels</a> :: <a href=\"Cardano-Wallet-Byron.html#t:Tracers-39-\" title=\"Cardano.Wallet.Byron\">Tracers'</a> (<a href=\"../base-4.12.0.0/Data-Functor-Const.html#t:Const\" title=\"Data.Functor.Const\">Const</a> <a href=\"../text-1.2.3.1/Data-Text.html#t:Text\" title=\"Data.Text\">Text</a>)","name":"tracerLabels","module":"Cardano.Wallet.Byron","link":"Cardano-Wallet-Byron.html#v:tracerLabels"},{"display_html":"<a href=\"#v:tracerDescriptions\">tracerDescriptions</a> :: [(<a href=\"../base-4.12.0.0/Data-String.html#t:String\" title=\"Data.String\">String</a>, <a href=\"../base-4.12.0.0/Data-String.html#t:String\" title=\"Data.String\">String</a>)]","name":"tracerDescriptions","module":"Cardano.Wallet.Byron","link":"Cardano-Wallet-Byron.html#v:tracerDescriptions"},{"display_html":"<a href=\"#v:setupTracers\">setupTracers</a> :: <a href=\"Cardano-Wallet-Byron.html#t:TracerSeverities\" title=\"Cardano.Wallet.Byron\">TracerSeverities</a> -&gt; Trace <a href=\"../base-4.12.0.0/System-IO.html#t:IO\" title=\"System.IO\">IO</a> <a href=\"../text-1.2.3.1/Data-Text.html#t:Text\" title=\"Data.Text\">Text</a> -&gt; <a href=\"Cardano-Wallet-Byron.html#t:Tracers\" title=\"Cardano.Wallet.Byron\">Tracers</a> <a href=\"../base-4.12.0.0/System-IO.html#t:IO\" title=\"System.IO\">IO</a>","name":"setupTracers","module":"Cardano.Wallet.Byron","link":"Cardano-Wallet-Byron.html#v:setupTracers"},{"display_html":"<a href=\"#v:tracerSeverities\">tracerSeverities</a> :: <a href=\"../base-4.12.0.0/GHC-Maybe.html#t:Maybe\" title=\"GHC.Maybe\">Maybe</a> Severity -&gt; <a href=\"Cardano-Wallet-Byron.html#t:TracerSeverities\" title=\"Cardano.Wallet.Byron\">TracerSeverities</a>","name":"tracerSeverities","module":"Cardano.Wallet.Byron","link":"Cardano-Wallet-Byron.html#v:tracerSeverities"},{"display_html":"<span class=\"keyword\">data</span> <a href=\"#t:ApplicationLog\">ApplicationLog</a><ul class=\"subs\"><li>= <a href=\"#v:MsgStarting\">MsgStarting</a> <a href=\"Cardano-Wallet-Byron-Network.html#t:AddrInfo\" title=\"Cardano.Wallet.Byron.Network\">AddrInfo</a></li><li>| <a href=\"#v:MsgNetworkName\">MsgNetworkName</a> <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-AddressDerivation.html#t:NetworkDiscriminant\" title=\"Cardano.Wallet.Primitive.AddressDerivation\">NetworkDiscriminant</a></li><li>| <a href=\"#v:MsgSigTerm\">MsgSigTerm</a></li><li>| <a href=\"#v:MsgServerStartupError\">MsgServerStartupError</a> <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Api-Server.html#t:ListenError\" title=\"Cardano.Wallet.Api.Server\">ListenError</a></li><li>| <a href=\"#v:MsgDatabaseStartup\">MsgDatabaseStartup</a> <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-DB-Sqlite.html#t:DatabasesStartupLog\" title=\"Cardano.Wallet.DB.Sqlite\">DatabasesStartupLog</a></li></ul>","name":"ApplicationLog MsgStarting MsgSigTerm MsgNetworkName MsgDatabaseStartup MsgServerStartupError","module":"Cardano.Wallet.Byron","link":"Cardano-Wallet-Byron.html#t:ApplicationLog"}]
\ No newline at end of file
+
[{"display_html":"<span class=\"keyword\">data</span> <a href=\"#t:Byron\">Byron</a>","name":"Byron","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#t:Byron"},{"display_html":"<span class=\"keyword\">data</span> <a href=\"#t:ByronBlock\">ByronBlock</a>","name":"ByronBlock","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#t:ByronBlock"},{"display_html":"<span class=\"keyword\">class</span> <a href=\"#t:KnownNetwork\">KnownNetwork</a> (n :: <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-AddressDerivation.html#t:NetworkDiscriminant\" title=\"Cardano.Wallet.Primitive.AddressDerivation\">NetworkDiscriminant</a>) <span class=\"keyword\">where</span><ul class=\"subs\"><li><a href=\"#v:blockchainParameters\">blockchainParameters</a> :: <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:BlockchainParameters\" title=\"Cardano.Wallet.Primitive.Types\">BlockchainParameters</a></li><li><a href=\"#v:versionData\">versionData</a> :: (NodeToClientVersionData, CodecCBORTerm <a href=\"../text-1.2.3.1/Data-Text.html#t:Text\" title=\"Data.Text\">Text</a> NodeToClientVersionData)</li></ul>","name":"KnownNetwork blockchainParameters versionData","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#t:KnownNetwork"},{"display_html":"<a href=\"#v:mainnetParameters\">mainnetParameters</a> :: <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:BlockchainParameters\" title=\"Cardano.Wallet.Primitive.Types\">BlockchainParameters</a>","name":"mainnetParameters","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:mainnetParameters"},{"display_html":"<a href=\"#v:mainnetGenesisHash\">mainnetGenesisHash</a> :: <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:Hash\" title=\"Cardano.Wallet.Primitive.Types\">Hash</a> &quot;Genesis&quot;","name":"mainnetGenesisHash","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:mainnetGenesisHash"},{"display_html":"<a href=\"#v:mainnetStartTime\">mainnetStartTime</a> :: <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:StartTime\" title=\"Cardano.Wallet.Primitive.Types\">StartTime</a>","name":"mainnetStartTime","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:mainnetStartTime"},{"display_html":"<a href=\"#v:byronFeePolicy\">byronFeePolicy</a> :: <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:FeePolicy\" title=\"Cardano.Wallet.Primitive.Types\">FeePolicy</a>","name":"byronFeePolicy","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:byronFeePolicy"},{"display_html":"<a href=\"#v:byronSlotLength\">byronSlotLength</a> :: <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:SlotLength\" title=\"Cardano.Wallet.Primitive.Types\">SlotLength</a>","name":"byronSlotLength","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:byronSlotLength"},{"display_html":"<a href=\"#v:byronEpochLength\">byronEpochLength</a> :: <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:EpochLength\" title=\"Cardano.Wallet.Primitive.Types\">EpochLength</a>","name":"byronEpochLength","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:byronEpochLength"},{"display_html":"<a href=\"#v:byronTxMaxSize\">byronTxMaxSize</a> :: <a href=\"../cardano-wallet-core-2020.1.27/Data-Quantity.html#t:Quantity\" title=\"Data.Quantity\">Quantity</a> &quot;byte&quot; <a href=\"../base-4.12.0.0/Data-Word.html#t:Word16\" title=\"Data.Word\">Word16</a>","name":"byronTxMaxSize","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:byronTxMaxSize"},{"display_html":"<a href=\"#v:byronEpochStability\">byronEpochStability</a> :: <a href=\"../cardano-wallet-core-2020.1.27/Data-Quantity.html#t:Quantity\" title=\"Data.Quantity\">Quantity</a> &quot;block&quot; <a href=\"../base-4.12.0.0/Data-Word.html#t:Word32\" title=\"Data.Word\">Word32</a>","name":"byronEpochStability","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:byronEpochStability"},{"display_html":"<a href=\"#v:byronActiveSlotCoefficient\">byronActiveSlotCoefficient</a> :: <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:ActiveSlotCoefficient\" title=\"Cardano.Wallet.Primitive.Types\">ActiveSlotCoefficient</a>","name":"byronActiveSlotCoefficient","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:byronActiveSlotCoefficient"},{"display_html":"<a href=\"#v:genesisTip\">genesisTip</a> :: Tip <a href=\"Cardano-Wallet-Byron-Compatibility.html#t:ByronBlock\" title=\"Cardano.Wallet.Byron.Compatibility\">ByronBlock</a>","name":"genesisTip","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:genesisTip"},{"display_html":"<a href=\"#v:genesisBlock\">genesisBlock</a> :: ByronHash -&gt; <a href=\"Cardano-Wallet-Byron-Compatibility.html#t:ByronBlock\" title=\"Cardano.Wallet.Byron.Compatibility\">ByronBlock</a>","name":"genesisBlock","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:genesisBlock"},{"display_html":"<a href=\"#v:mainnetVersionData\">mainnetVersionData</a> :: (NodeToClientVersionData, CodecCBORTerm <a href=\"../text-1.2.3.1/Data-Text.html#t:Text\" title=\"Data.Text\">Text</a> NodeToClientVersionData)","name":"mainnetVersionData","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:mainnetVersionData"},{"display_html":"<a href=\"#v:testnetVersionData\">testnetVersionData</a> :: (NodeToClientVersionData, CodecCBORTerm <a href=\"../text-1.2.3.1/Data-Text.html#t:Text\" title=\"Data.Text\">Text</a> NodeToClientVersionData)","name":"testnetVersionData","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:testnetVersionData"},{"display_html":"<a href=\"#v:toByronHash\">toByronHash</a> :: <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:Hash\" title=\"Cardano.Wallet.Primitive.Types\">Hash</a> &quot;BlockHeader&quot; -&gt; ByronHash","name":"toByronHash","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:toByronHash"},{"display_html":"<a href=\"#v:toEpochSlots\">toEpochSlots</a> :: <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:EpochLength\" title=\"Cardano.Wallet.Primitive.Types\">EpochLength</a> -&gt; EpochSlots","name":"toEpochSlots","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:toEpochSlots"},{"display_html":"<a href=\"#v:toPoint\">toPoint</a> :: <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:BlockHeader\" title=\"Cardano.Wallet.Primitive.Types\">BlockHeader</a> -&gt; Point <a href=\"Cardano-Wallet-Byron-Compatibility.html#t:ByronBlock\" title=\"Cardano.Wallet.Byron.Compatibility\">ByronBlock</a>","name":"toPoint","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:toPoint"},{"display_html":"<a href=\"#v:toSlotNo\">toSlotNo</a> :: <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:SlotId\" title=\"Cardano.Wallet.Primitive.Types\">SlotId</a> -&gt; SlotNo","name":"toSlotNo","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:toSlotNo"},{"display_html":"<a href=\"#v:toGenTx\">toGenTx</a> :: <a href=\"../base-4.12.0.0/GHC-Stack.html#t:HasCallStack\" title=\"GHC.Stack\">HasCallStack</a> =&gt; <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:SealedTx\" title=\"Cardano.Wallet.Primitive.Types\">SealedTx</a> -&gt; GenTx <a href=\"Cardano-Wallet-Byron-Compatibility.html#t:ByronBlock\" title=\"Cardano.Wallet.Byron.Compatibility\">ByronBlock</a>","name":"toGenTx","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:toGenTx"},{"display_html":"<a href=\"#v:fromByronBlock\">fromByronBlock</a> :: <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:Hash\" title=\"Cardano.Wallet.Primitive.Types\">Hash</a> &quot;Genesis&quot; -&gt; <a href=\"Cardano-Wallet-Byron-Compatibility.html#t:ByronBlock\" title=\"Cardano.Wallet.Byron.Compatibility\">ByronBlock</a> -&gt; <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:Block\" title=\"Cardano.Wallet.Primitive.Types\">Block</a>","name":"fromByronBlock","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:fromByronBlock"},{"display_html":"<a href=\"#v:fromTxAux\">fromTxAux</a> :: TxAux -&gt; <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:Tx\" title=\"Cardano.Wallet.Primitive.Types\">Tx</a>","name":"fromTxAux","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:fromTxAux"},{"display_html":"<a href=\"#v:fromTxIn\">fromTxIn</a> :: TxIn -&gt; <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:TxIn\" title=\"Cardano.Wallet.Primitive.Types\">TxIn</a>","name":"fromTxIn","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:fromTxIn"},{"display_html":"<a href=\"#v:fromTxOut\">fromTxOut</a> :: TxOut -&gt; <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:TxOut\" title=\"Cardano.Wallet.Primitive.Types\">TxOut</a>","name":"fromTxOut","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:fromTxOut"},{"display_html":"<a href=\"#v:fromByronHash\">fromByronHash</a> :: ByronHash -&gt; <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:Hash\" title=\"Cardano.Wallet.Primitive.Types\">Hash</a> &quot;BlockHeader&quot;","name":"fromByronHash","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:fromByronHash"},{"display_html":"<a href=\"#v:fromChainHash\">fromChainHash</a> :: <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:Hash\" title=\"Cardano.Wallet.Primitive.Types\">Hash</a> &quot;Genesis&quot; -&gt; ChainHash <a href=\"Cardano-Wallet-Byron-Compatibility.html#t:ByronBlock\" title=\"Cardano.Wallet.Byron.Compatibility\">ByronBlock</a> -&gt; <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:Hash\" title=\"Cardano.Wallet.Primitive.Types\">Hash</a> &quot;BlockHeader&quot;","name":"fromChainHash","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:fromChainHash"},{"display_html":"<a href=\"#v:fromSlotNo\">fromSlotNo</a> :: SlotNo -&gt; <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:SlotId\" title=\"Cardano.Wallet.Primitive.Types\">SlotId</a>","name":"fromSlotNo","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:fromSlotNo"},{"display_html":"<a href=\"#v:fromBlockNo\">fromBlockNo</a> :: BlockNo -&gt; <a href=\"../cardano-wallet-core-2020.1.27/Data-Quantity.html#t:Quantity\" title=\"Data.Quantity\">Quantity</a> &quot;block&quot; <a href=\"../base-4.12.0.0/Data-Word.html#t:Word32\" title=\"Data.Word\">Word32</a>","name":"fromBlockNo","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:fromBlockNo"},{"display_html":"<a href=\"#v:fromTip\">fromTip</a> :: <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:Hash\" title=\"Cardano.Wallet.Primitive.Types\">Hash</a> &quot;Genesis&quot; -&gt; Tip <a href=\"Cardano-Wallet-Byron-Compatibility.html#t:ByronBlock\" title=\"Cardano.Wallet.Byron.Compatibility\">ByronBlock</a> -&gt; <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:BlockHeader\" title=\"Cardano.Wallet.Primitive.Types\">BlockHeader</a>","name":"fromTip","module":"Cardano.Wallet.Byron.Compatibility","link":"Cardano-Wallet-Byron-Compatibility.html#v:fromTip"},{"display_html":"<span class=\"keyword\">pattern</span> <a href=\"#v:Cursor\">Cursor</a> :: Point <a href=\"Cardano-Wallet-Byron-Compatibility.html#t:ByronBlock\" title=\"Cardano.Wallet.Byron.Compatibility\">ByronBlock</a> -&gt; TQueue m (ChainSyncCmd m) -&gt; <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Network.html#t:Cursor\" title=\"Cardano.Wallet.Network\">Cursor</a> (m <a href=\"Cardano-Wallet-Byron-Compatibility.html#t:Byron\" title=\"Cardano.Wallet.Byron.Compatibility\">Byron</a>)","name":"Cursor","module":"Cardano.Wallet.Byron.Network","link":"Cardano-Wallet-Byron-Network.html#v:Cursor"},{"display_html":"<a href=\"#v:newNetworkLayer\">newNetworkLayer</a> :: Trace <a href=\"../base-4.12.0.0/System-IO.html#t:IO\" title=\"System.IO\">IO</a> <a href=\"../text-1.2.3.1/Data-Text.html#t:Text\" title=\"Data.Text\">Text</a> -&gt; <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:BlockchainParameters\" title=\"Cardano.Wallet.Primitive.Types\">BlockchainParameters</a> -&gt; <a href=\"Cardano-Wallet-Byron-Network.html#t:AddrInfo\" title=\"Cardano.Wallet.Byron.Network\">AddrInfo</a> -&gt; (NodeToClientVersionData, CodecCBORTerm <a href=\"../text-1.2.3.1/Data-Text.html#t:Text\" title=\"Data.Text\">Text</a> NodeToClientVersionData) -&gt; <a href=\"../base-4.12.0.0/System-IO.html#t:IO\" title=\"System.IO\">IO</a> (<a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Network.html#t:NetworkLayer\" title=\"Cardano.Wallet.Network\">NetworkLayer</a> <a href=\"../base-4.12.0.0/System-IO.html#t:IO\" title=\"System.IO\">IO</a> (<a href=\"../base-4.12.0.0/System-IO.html#t:IO\" title=\"System.IO\">IO</a> <a href=\"Cardano-Wallet-Byron-Compatibility.html#t:Byron\" title=\"Cardano.Wallet.Byron.Compatibility\">Byron</a>) <a href=\"Cardano-Wallet-Byron-Compatibility.html#t:ByronBlock\" title=\"Cardano.Wallet.Byron.Compatibility\">ByronBlock</a>)","name":"newNetworkLayer","module":"Cardano.Wallet.Byron.Network","link":"Cardano-Wallet-Byron-Network.html#v:newNetworkLayer"},{"display_html":"<span class=\"keyword\">data</span> <a href=\"#t:AddrInfo\">AddrInfo</a>","name":"AddrInfo","module":"Cardano.Wallet.Byron.Network","link":"Cardano-Wallet-Byron-Network.html#t:AddrInfo"},{"display_html":"<a href=\"#v:localSocketAddrInfo\">localSocketAddrInfo</a> :: <a href=\"../base-4.12.0.0/System-IO.html#t:FilePath\" title=\"System.IO\">FilePath</a> -&gt; <a href=\"Cardano-Wallet-Byron-Network.html#t:AddrInfo\" title=\"Cardano.Wallet.Byron.Network\">AddrInfo</a>","name":"localSocketAddrInfo","module":"Cardano.Wallet.Byron.Network","link":"Cardano-Wallet-Byron-Network.html#v:localSocketAddrInfo"},{"display_html":"<a href=\"#v:sizeOfTxIn\">sizeOfTxIn</a> :: <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:TxIn\" title=\"Cardano.Wallet.Primitive.Types\">TxIn</a> -&gt; <a href=\"../base-4.12.0.0/Data-Int.html#t:Int\" title=\"Data.Int\">Int</a>","name":"sizeOfTxIn","module":"Cardano.Wallet.Byron.Transaction.Size","link":"Cardano-Wallet-Byron-Transaction-Size.html#v:sizeOfTxIn"},{"display_html":"<a href=\"#v:sizeOfSignedTx\">sizeOfSignedTx</a> :: [<a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:TxIn\" title=\"Cardano.Wallet.Primitive.Types\">TxIn</a>] -&gt; [<a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:TxOut\" title=\"Cardano.Wallet.Primitive.Types\">TxOut</a>] -&gt; <a href=\"../base-4.12.0.0/Data-Int.html#t:Int\" title=\"Data.Int\">Int</a>","name":"sizeOfSignedTx","module":"Cardano.Wallet.Byron.Transaction.Size","link":"Cardano-Wallet-Byron-Transaction-Size.html#v:sizeOfSignedTx"},{"display_html":"<a href=\"#v:sizeOfTxWitness\">sizeOfTxWitness</a> :: <a href=\"../base-4.12.0.0/Data-Int.html#t:Int\" title=\"Data.Int\">Int</a>","name":"sizeOfTxWitness","module":"Cardano.Wallet.Byron.Transaction.Size","link":"Cardano-Wallet-Byron-Transaction-Size.html#v:sizeOfTxWitness"},{"display_html":"<a href=\"#v:sizeOfTxOut\">sizeOfTxOut</a> :: <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:TxOut\" title=\"Cardano.Wallet.Primitive.Types\">TxOut</a> -&gt; <a href=\"../base-4.12.0.0/Data-Int.html#t:Int\" title=\"Data.Int\">Int</a>","name":"sizeOfTxOut","module":"Cardano.Wallet.Byron.Transaction.Size","link":"Cardano-Wallet-Byron-Transaction-Size.html#v:sizeOfTxOut"},{"display_html":"<a href=\"#v:sizeOfCoin\">sizeOfCoin</a> :: <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:Coin\" title=\"Cardano.Wallet.Primitive.Types\">Coin</a> -&gt; <a href=\"../base-4.12.0.0/Data-Int.html#t:Int\" title=\"Data.Int\">Int</a>","name":"sizeOfCoin","module":"Cardano.Wallet.Byron.Transaction.Size","link":"Cardano-Wallet-Byron-Transaction-Size.html#v:sizeOfCoin"},{"display_html":"<a href=\"#v:worstSizeOf\">worstSizeOf</a> :: <a href=\"Cardano-Wallet-Byron-Transaction-Size.html#t:WorstSizeOf\" title=\"Cardano.Wallet.Byron.Transaction.Size\">WorstSizeOf</a> t n k =&gt; <a href=\"../base-4.12.0.0/Data-Int.html#t:Int\" title=\"Data.Int\">Int</a>","name":"worstSizeOf","module":"Cardano.Wallet.Byron.Transaction.Size","link":"Cardano-Wallet-Byron-Transaction-Size.html#v:worstSizeOf"},{"display_html":"<span class=\"keyword\">class</span> <a href=\"#t:WorstSizeOf\">WorstSizeOf</a> (t :: *) (n :: <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-AddressDerivation.html#t:NetworkDiscriminant\" title=\"Cardano.Wallet.Primitive.AddressDerivation\">NetworkDiscriminant</a>) (k :: <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-AddressDerivation.html#t:Depth\" title=\"Cardano.Wallet.Primitive.AddressDerivation\">Depth</a> -&gt; * -&gt; *)","name":"WorstSizeOf","module":"Cardano.Wallet.Byron.Transaction.Size","link":"Cardano-Wallet-Byron-Transaction-Size.html#t:WorstSizeOf"},{"display_html":"<a href=\"#v:newTransactionLayer\">newTransactionLayer</a> :: <span class=\"keyword\">forall</span> (n :: <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-AddressDerivation.html#t:NetworkDiscriminant\" title=\"Cardano.Wallet.Primitive.AddressDerivation\">NetworkDiscriminant</a>) k t. (t ~ <a href=\"../base-4.12.0.0/System-IO.html#t:IO\" title=\"System.IO\">IO</a> <a href=\"Cardano-Wallet-Byron-Compatibility.html#t:Byron\" title=\"Cardano.Wallet.Byron.Compatibility\">Byron</a>, <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-AddressDerivation.html#t:WalletKey\" title=\"Cardano.Wallet.Primitive.AddressDerivation\">WalletKey</a> k, <a href=\"Cardano-Wallet-Byron-Transaction-Size.html#t:WorstSizeOf\" title=\"Cardano.Wallet.Byron.Transaction.Size\">WorstSizeOf</a> <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:Address\" title=\"Cardano.Wallet.Primitive.Types\">Address</a> n k) =&gt; <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Transaction.html#t:TransactionLayer\" title=\"Cardano.Wallet.Transaction\">TransactionLayer</a> t k","name":"newTransactionLayer","module":"Cardano.Wallet.Byron.Transaction","link":"Cardano-Wallet-Byron-Transaction.html#v:newTransactionLayer"},{"display_html":"<a href=\"#v:serveWallet\">serveWallet</a> :: <span class=\"keyword\">forall</span> (n :: <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-AddressDerivation.html#t:NetworkDiscriminant\" title=\"Cardano.Wallet.Primitive.AddressDerivation\">NetworkDiscriminant</a>) t. (<a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-AddressDerivation.html#t:NetworkDiscriminantVal\" title=\"Cardano.Wallet.Primitive.AddressDerivation\">NetworkDiscriminantVal</a> n, <a href=\"Cardano-Wallet-Byron-Compatibility.html#t:KnownNetwork\" title=\"Cardano.Wallet.Byron.Compatibility\">KnownNetwork</a> n, <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Api-Types.html#t:DecodeAddress\" title=\"Cardano.Wallet.Api.Types\">DecodeAddress</a> n, <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Api-Types.html#t:EncodeAddress\" title=\"Cardano.Wallet.Api.Types\">EncodeAddress</a> n, <a href=\"Cardano-Wallet-Byron-Transaction-Size.html#t:WorstSizeOf\" title=\"Cardano.Wallet.Byron.Transaction.Size\">WorstSizeOf</a> <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:Address\" title=\"Cardano.Wallet.Primitive.Types\">Address</a> n <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-AddressDerivation-Icarus.html#t:IcarusKey\" title=\"Cardano.Wallet.Primitive.AddressDerivation.Icarus\">IcarusKey</a>, <a href=\"Cardano-Wallet-Byron-Transaction-Size.html#t:WorstSizeOf\" title=\"Cardano.Wallet.Byron.Transaction.Size\">WorstSizeOf</a> <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:Address\" title=\"Cardano.Wallet.Primitive.Types\">Address</a> n <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-AddressDerivation-Byron.html#t:ByronKey\" title=\"Cardano.Wallet.Primitive.AddressDerivation.Byron\">ByronKey</a>, t ~ <a href=\"../base-4.12.0.0/System-IO.html#t:IO\" title=\"System.IO\">IO</a> <a href=\"Cardano-Wallet-Byron-Compatibility.html#t:Byron\" title=\"Cardano.Wallet.Byron.Compatibility\">Byron</a>) =&gt; <a href=\"Cardano-Wallet-Byron.html#t:Tracers\" title=\"Cardano.Wallet.Byron\">Tracers</a> <a href=\"../base-4.12.0.0/System-IO.html#t:IO\" title=\"System.IO\">IO</a> -&gt; <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:SyncTolerance\" title=\"Cardano.Wallet.Primitive.Types\">SyncTolerance</a> -&gt; <a href=\"../base-4.12.0.0/GHC-Maybe.html#t:Maybe\" title=\"GHC.Maybe\">Maybe</a> <a href=\"../base-4.12.0.0/System-IO.html#t:FilePath\" title=\"System.IO\">FilePath</a> -&gt; <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Api-Server.html#t:HostPreference\" title=\"Cardano.Wallet.Api.Server\">HostPreference</a> -&gt; <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Api-Server.html#t:Listen\" title=\"Cardano.Wallet.Api.Server\">Listen</a> -&gt; <a href=\"Cardano-Wallet-Byron-Network.html#t:AddrInfo\" title=\"Cardano.Wallet.Byron.Network\">AddrInfo</a> -&gt; (SockAddr -&gt; <a href=\"../base-4.12.0.0/System-IO.html#t:IO\" title=\"System.IO\">IO</a> ()) -&gt; <a href=\"../base-4.12.0.0/System-IO.html#t:IO\" title=\"System.IO\">IO</a> <a href=\"../base-4.12.0.0/System-Exit.html#t:ExitCode\" title=\"System.Exit\">ExitCode</a>","name":"serveWallet","module":"Cardano.Wallet.Byron","link":"Cardano-Wallet-Byron.html#v:serveWallet"},{"display_html":"<span class=\"keyword\">data</span> <a href=\"#t:Tracers-39-\">Tracers'</a> f = <a href=\"#v:Tracers\">Tracers</a> {<ul class=\"subs\"><li><a href=\"#v:applicationTracer\">applicationTracer</a> :: f <a href=\"Cardano-Wallet-Byron.html#t:ApplicationLog\" title=\"Cardano.Wallet.Byron\">ApplicationLog</a></li><li><a href=\"#v:apiServerTracer\">apiServerTracer</a> :: f <a href=\"../cardano-wallet-core-2020.1.27/Network-Wai-Middleware-Logging.html#t:ApiLog\" title=\"Network.Wai.Middleware.Logging\">ApiLog</a></li><li><a href=\"#v:walletEngineTracer\">walletEngineTracer</a> :: f (<a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Registry.html#t:WorkerLog\" title=\"Cardano.Wallet.Registry\">WorkerLog</a> <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-Types.html#t:WalletId\" title=\"Cardano.Wallet.Primitive.Types\">WalletId</a> <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet.html#t:WalletLog\" title=\"Cardano.Wallet\">WalletLog</a>)</li><li><a href=\"#v:walletDbTracer\">walletDbTracer</a> :: f <a href=\"../cardano-wallet-core-2020.1.27/Cardano-DB-Sqlite.html#t:DBLog\" title=\"Cardano.DB.Sqlite\">DBLog</a></li></ul>}","name":"Tracers' Tracers applicationTracer apiServerTracer walletDbTracer walletEngineTracer","module":"Cardano.Wallet.Byron","link":"Cardano-Wallet-Byron.html#t:Tracers-39-"},{"display_html":"<span class=\"keyword\">type</span> <a href=\"#t:Tracers\">Tracers</a> m = <a href=\"Cardano-Wallet-Byron.html#t:Tracers-39-\" title=\"Cardano.Wallet.Byron\">Tracers'</a> (Tracer m)","name":"Tracers","module":"Cardano.Wallet.Byron","link":"Cardano-Wallet-Byron.html#t:Tracers"},{"display_html":"<span class=\"keyword\">type</span> <a href=\"#t:TracerSeverities\">TracerSeverities</a> = <a href=\"Cardano-Wallet-Byron.html#t:Tracers-39-\" title=\"Cardano.Wallet.Byron\">Tracers'</a> (<a href=\"../base-4.12.0.0/Data-Functor-Const.html#t:Const\" title=\"Data.Functor.Const\">Const</a> (<a href=\"../base-4.12.0.0/GHC-Maybe.html#t:Maybe\" title=\"GHC.Maybe\">Maybe</a> Severity))","name":"TracerSeverities","module":"Cardano.Wallet.Byron","link":"Cardano-Wallet-Byron.html#t:TracerSeverities"},{"display_html":"<a href=\"#v:tracerLabels\">tracerLabels</a> :: <a href=\"Cardano-Wallet-Byron.html#t:Tracers-39-\" title=\"Cardano.Wallet.Byron\">Tracers'</a> (<a href=\"../base-4.12.0.0/Data-Functor-Const.html#t:Const\" title=\"Data.Functor.Const\">Const</a> <a href=\"../text-1.2.3.1/Data-Text.html#t:Text\" title=\"Data.Text\">Text</a>)","name":"tracerLabels","module":"Cardano.Wallet.Byron","link":"Cardano-Wallet-Byron.html#v:tracerLabels"},{"display_html":"<a href=\"#v:tracerDescriptions\">tracerDescriptions</a> :: [(<a href=\"../base-4.12.0.0/Data-String.html#t:String\" title=\"Data.String\">String</a>, <a href=\"../base-4.12.0.0/Data-String.html#t:String\" title=\"Data.String\">String</a>)]","name":"tracerDescriptions","module":"Cardano.Wallet.Byron","link":"Cardano-Wallet-Byron.html#v:tracerDescriptions"},{"display_html":"<a href=\"#v:setupTracers\">setupTracers</a> :: <a href=\"Cardano-Wallet-Byron.html#t:TracerSeverities\" title=\"Cardano.Wallet.Byron\">TracerSeverities</a> -&gt; Trace <a href=\"../base-4.12.0.0/System-IO.html#t:IO\" title=\"System.IO\">IO</a> <a href=\"../text-1.2.3.1/Data-Text.html#t:Text\" title=\"Data.Text\">Text</a> -&gt; <a href=\"Cardano-Wallet-Byron.html#t:Tracers\" title=\"Cardano.Wallet.Byron\">Tracers</a> <a href=\"../base-4.12.0.0/System-IO.html#t:IO\" title=\"System.IO\">IO</a>","name":"setupTracers","module":"Cardano.Wallet.Byron","link":"Cardano-Wallet-Byron.html#v:setupTracers"},{"display_html":"<a href=\"#v:tracerSeverities\">tracerSeverities</a> :: <a href=\"../base-4.12.0.0/GHC-Maybe.html#t:Maybe\" title=\"GHC.Maybe\">Maybe</a> Severity -&gt; <a href=\"Cardano-Wallet-Byron.html#t:TracerSeverities\" title=\"Cardano.Wallet.Byron\">TracerSeverities</a>","name":"tracerSeverities","module":"Cardano.Wallet.Byron","link":"Cardano-Wallet-Byron.html#v:tracerSeverities"},{"display_html":"<span class=\"keyword\">data</span> <a href=\"#t:ApplicationLog\">ApplicationLog</a><ul class=\"subs\"><li>= <a href=\"#v:MsgStarting\">MsgStarting</a> <a href=\"Cardano-Wallet-Byron-Network.html#t:AddrInfo\" title=\"Cardano.Wallet.Byron.Network\">AddrInfo</a></li><li>| <a href=\"#v:MsgNetworkName\">MsgNetworkName</a> <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Primitive-AddressDerivation.html#t:NetworkDiscriminant\" title=\"Cardano.Wallet.Primitive.AddressDerivation\">NetworkDiscriminant</a></li><li>| <a href=\"#v:MsgSigTerm\">MsgSigTerm</a></li><li>| <a href=\"#v:MsgServerStartupError\">MsgServerStartupError</a> <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-Api-Server.html#t:ListenError\" title=\"Cardano.Wallet.Api.Server\">ListenError</a></li><li>| <a href=\"#v:MsgDatabaseStartup\">MsgDatabaseStartup</a> <a href=\"../cardano-wallet-core-2020.1.27/Cardano-Wallet-DB-Sqlite.html#t:DatabasesStartupLog\" title=\"Cardano.Wallet.DB.Sqlite\">DatabasesStartupLog</a></li></ul>","name":"ApplicationLog MsgStarting MsgSigTerm MsgNetworkName MsgDatabaseStartup MsgServerStartupError","module":"Cardano.Wallet.Byron","link":"Cardano-Wallet-Byron.html#t:ApplicationLog"}]
\ No newline at end of file
</span><a name="line-48"></a><span class="hs-comment">--     | ATTRIBUTES (&#216;)       -- 1 byte</span><span>
</span><a name="line-49"></a><span class="hs-comment">--                            == 6 + &#931;sizeOf(i) + &#931;sizeOf(o)</span><span>
</span><a name="line-50"></a><span class="hs-identifier">sizeOfTx</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">[</span><span class="hs-identifier hs-type">TxIn</span><span class="hs-special">]</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">[</span><span class="hs-identifier hs-type">TxOut</span><span class="hs-special">]</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">Int</span><span>
-
</span><a name="line-51"></a><a name="sizeOfTx"><a href="Cardano.Wallet.Byron.Transaction.Size.html#sizeOfTx"><span class="hs-identifier">sizeOfTx</span></a></a><span> </span><a name="local-6989586621679234419"><a href="#local-6989586621679234419"><span class="hs-identifier">inps</span></a></a><span> </span><a name="local-6989586621679234420"><a href="#local-6989586621679234420"><span class="hs-identifier">outs</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-number">6</span><span>
-
</span><a name="line-52"></a><span>    </span><span class="hs-operator hs-var">+</span><span> </span><span class="hs-identifier hs-var">sum</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">map</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#sizeOfTxIn"><span class="hs-identifier hs-var">sizeOfTxIn</span></a><span> </span><a href="#local-6989586621679234419"><span class="hs-identifier hs-var">inps</span></a><span class="hs-special">)</span><span>
-
</span><a name="line-53"></a><span>    </span><span class="hs-operator hs-var">+</span><span> </span><span class="hs-identifier hs-var">sum</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">map</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#sizeOfTxOut"><span class="hs-identifier hs-var">sizeOfTxOut</span></a><span> </span><a href="#local-6989586621679234420"><span class="hs-identifier hs-var">outs</span></a><span class="hs-special">)</span><span>
+
</span><a name="line-51"></a><a name="sizeOfTx"><a href="Cardano.Wallet.Byron.Transaction.Size.html#sizeOfTx"><span class="hs-identifier">sizeOfTx</span></a></a><span> </span><a name="local-6989586621679234851"><a href="#local-6989586621679234851"><span class="hs-identifier">inps</span></a></a><span> </span><a name="local-6989586621679234852"><a href="#local-6989586621679234852"><span class="hs-identifier">outs</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-number">6</span><span>
+
</span><a name="line-52"></a><span>    </span><span class="hs-operator hs-var">+</span><span> </span><span class="hs-identifier hs-var">sum</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">map</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#sizeOfTxIn"><span class="hs-identifier hs-var">sizeOfTxIn</span></a><span> </span><a href="#local-6989586621679234851"><span class="hs-identifier hs-var">inps</span></a><span class="hs-special">)</span><span>
+
</span><a name="line-53"></a><span>    </span><span class="hs-operator hs-var">+</span><span> </span><span class="hs-identifier hs-var">sum</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">map</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#sizeOfTxOut"><span class="hs-identifier hs-var">sizeOfTxOut</span></a><span> </span><a href="#local-6989586621679234852"><span class="hs-identifier hs-var">outs</span></a><span class="hs-special">)</span><span>
</span><a name="line-54"></a><span>
</span><a name="line-55"></a><span class="hs-comment">-- SIGNED-TX</span><span>
</span><a name="line-56"></a><span class="hs-comment">--     = CBOR-LIST-LEN (2)    -- 1 byte</span><span>
</span><a name="line-59"></a><span class="hs-comment">--     | *WITNESS             -- n * 139 bytes</span><span>
</span><a name="line-60"></a><span class="hs-comment">--                            == 1 + sizeOf(TX) + 1-2 + n * 139</span><span>
</span><a name="line-61"></a><span class="hs-identifier">sizeOfSignedTx</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">[</span><span class="hs-identifier hs-type">TxIn</span><span class="hs-special">]</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">[</span><span class="hs-identifier hs-type">TxOut</span><span class="hs-special">]</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">Int</span><span>
-
</span><a name="line-62"></a><a name="sizeOfSignedTx"><a href="Cardano.Wallet.Byron.Transaction.Size.html#sizeOfSignedTx"><span class="hs-identifier">sizeOfSignedTx</span></a></a><span> </span><a name="local-6989586621679235477"><a href="#local-6989586621679235477"><span class="hs-identifier">inps</span></a></a><span> </span><a name="local-6989586621679235478"><a href="#local-6989586621679235478"><span class="hs-identifier">outs</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-number">1</span><span>
-
</span><a name="line-63"></a><span>    </span><span class="hs-operator hs-var">+</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#sizeOfTx"><span class="hs-identifier hs-var">sizeOfTx</span></a><span> </span><a href="#local-6989586621679235477"><span class="hs-identifier hs-var">inps</span></a><span> </span><a href="#local-6989586621679235478"><span class="hs-identifier hs-var">outs</span></a><span>
-
</span><a name="line-64"></a><span>    </span><span class="hs-operator hs-var">+</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#sizeOf"><span class="hs-identifier hs-var">sizeOf</span></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">CBOR.encodeListLen</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">fromIntegral</span><span> </span><a href="#local-6989586621679235479"><span class="hs-identifier hs-var">n</span></a><span class="hs-special">)</span><span>
-
</span><a name="line-65"></a><span>    </span><span class="hs-operator hs-var">+</span><span> </span><a href="#local-6989586621679235479"><span class="hs-identifier hs-var">n</span></a><span> </span><span class="hs-operator hs-var">*</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#sizeOfTxWitness"><span class="hs-identifier hs-var">sizeOfTxWitness</span></a><span>
+
</span><a name="line-62"></a><a name="sizeOfSignedTx"><a href="Cardano.Wallet.Byron.Transaction.Size.html#sizeOfSignedTx"><span class="hs-identifier">sizeOfSignedTx</span></a></a><span> </span><a name="local-6989586621679235909"><a href="#local-6989586621679235909"><span class="hs-identifier">inps</span></a></a><span> </span><a name="local-6989586621679235910"><a href="#local-6989586621679235910"><span class="hs-identifier">outs</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-number">1</span><span>
+
</span><a name="line-63"></a><span>    </span><span class="hs-operator hs-var">+</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#sizeOfTx"><span class="hs-identifier hs-var">sizeOfTx</span></a><span> </span><a href="#local-6989586621679235909"><span class="hs-identifier hs-var">inps</span></a><span> </span><a href="#local-6989586621679235910"><span class="hs-identifier hs-var">outs</span></a><span>
+
</span><a name="line-64"></a><span>    </span><span class="hs-operator hs-var">+</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#sizeOf"><span class="hs-identifier hs-var">sizeOf</span></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">CBOR.encodeListLen</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">fromIntegral</span><span> </span><a href="#local-6989586621679235911"><span class="hs-identifier hs-var">n</span></a><span class="hs-special">)</span><span>
+
</span><a name="line-65"></a><span>    </span><span class="hs-operator hs-var">+</span><span> </span><a href="#local-6989586621679235911"><span class="hs-identifier hs-var">n</span></a><span> </span><span class="hs-operator hs-var">*</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#sizeOfTxWitness"><span class="hs-identifier hs-var">sizeOfTxWitness</span></a><span>
</span><a name="line-66"></a><span>  </span><span class="hs-keyword">where</span><span>
-
</span><a name="line-67"></a><span>    </span><a name="local-6989586621679235479"><a href="#local-6989586621679235479"><span class="hs-identifier">n</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">length</span><span> </span><a href="#local-6989586621679235477"><span class="hs-identifier hs-var">inps</span></a><span>
+
</span><a name="line-67"></a><span>    </span><a name="local-6989586621679235911"><a href="#local-6989586621679235911"><span class="hs-identifier">n</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">length</span><span> </span><a href="#local-6989586621679235909"><span class="hs-identifier hs-var">inps</span></a><span>
</span><a name="line-68"></a><span>
</span><a name="line-69"></a><span class="hs-comment">-- INPUT</span><span>
</span><a name="line-70"></a><span class="hs-comment">--     = CBOR-LIST-LEN (2)    --        1 byte</span><span>
</span><a name="line-82"></a><span class="hs-comment">--         | 32OCTET              --    32 bytes</span><span>
</span><a name="line-83"></a><span class="hs-comment">--         | U32                  --   1-5 bytes</span><span>
</span><a name="line-84"></a><span class="hs-identifier">sizeOfTxIn</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">TxIn</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">Int</span><span>
-
</span><a name="line-85"></a><a name="sizeOfTxIn"><a href="Cardano.Wallet.Byron.Transaction.Size.html#sizeOfTxIn"><span class="hs-identifier">sizeOfTxIn</span></a></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">TxIn</span><span> </span><span class="hs-identifier">_</span><span> </span><a name="local-6989586621679235480"><a href="#local-6989586621679235480"><span class="hs-identifier">ix</span></a></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span>
-
</span><a name="line-86"></a><span>    </span><span class="hs-number">41</span><span> </span><span class="hs-operator hs-var">+</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#sizeOf"><span class="hs-identifier hs-var">sizeOf</span></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">CBOR.encodeWord32</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">fromIntegral</span><span> </span><a href="#local-6989586621679235480"><span class="hs-identifier hs-var">ix</span></a><span class="hs-special">)</span><span>
+
</span><a name="line-85"></a><a name="sizeOfTxIn"><a href="Cardano.Wallet.Byron.Transaction.Size.html#sizeOfTxIn"><span class="hs-identifier">sizeOfTxIn</span></a></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">TxIn</span><span> </span><span class="hs-identifier">_</span><span> </span><a name="local-6989586621679235912"><a href="#local-6989586621679235912"><span class="hs-identifier">ix</span></a></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span>
+
</span><a name="line-86"></a><span>    </span><span class="hs-number">41</span><span> </span><span class="hs-operator hs-var">+</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#sizeOf"><span class="hs-identifier hs-var">sizeOf</span></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">CBOR.encodeWord32</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">fromIntegral</span><span> </span><a href="#local-6989586621679235912"><span class="hs-identifier hs-var">ix</span></a><span class="hs-special">)</span><span>
</span><a name="line-87"></a><span>
</span><a name="line-88"></a><span class="hs-comment">-- WITNESS</span><span>
</span><a name="line-89"></a><span class="hs-comment">--     = CBOR-LIST-LEN (2)    --   1 byte</span><span>
</span><a name="line-110"></a><span class="hs-comment">--     | U64                  --   1-9 bytes</span><span>
</span><a name="line-111"></a><span class="hs-comment">--                            == 1 + sizeOf(ADDRESS) + 1-9</span><span>
</span><a name="line-112"></a><span class="hs-identifier">sizeOfTxOut</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">TxOut</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">Int</span><span>
-
</span><a name="line-113"></a><a name="sizeOfTxOut"><a href="Cardano.Wallet.Byron.Transaction.Size.html#sizeOfTxOut"><span class="hs-identifier">sizeOfTxOut</span></a></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">TxOut</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">Address</span><span> </span><a name="local-6989586621679235481"><a href="#local-6989586621679235481"><span class="hs-identifier">bytes</span></a></a><span class="hs-special">)</span><span> </span><a name="local-6989586621679235482"><a href="#local-6989586621679235482"><span class="hs-identifier">c</span></a></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span>
-
</span><a name="line-114"></a><span>    </span><span class="hs-number">1</span><span> </span><span class="hs-operator hs-var">+</span><span> </span><span class="hs-identifier hs-var">BS.length</span><span> </span><a href="#local-6989586621679235481"><span class="hs-identifier hs-var">bytes</span></a><span> </span><span class="hs-operator hs-var">+</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#sizeOfCoin"><span class="hs-identifier hs-var">sizeOfCoin</span></a><span> </span><a href="#local-6989586621679235482"><span class="hs-identifier hs-var">c</span></a><span>
+
</span><a name="line-113"></a><a name="sizeOfTxOut"><a href="Cardano.Wallet.Byron.Transaction.Size.html#sizeOfTxOut"><span class="hs-identifier">sizeOfTxOut</span></a></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">TxOut</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">Address</span><span> </span><a name="local-6989586621679235913"><a href="#local-6989586621679235913"><span class="hs-identifier">bytes</span></a></a><span class="hs-special">)</span><span> </span><a name="local-6989586621679235914"><a href="#local-6989586621679235914"><span class="hs-identifier">c</span></a></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span>
+
</span><a name="line-114"></a><span>    </span><span class="hs-number">1</span><span> </span><span class="hs-operator hs-var">+</span><span> </span><span class="hs-identifier hs-var">BS.length</span><span> </span><a href="#local-6989586621679235913"><span class="hs-identifier hs-var">bytes</span></a><span> </span><span class="hs-operator hs-var">+</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#sizeOfCoin"><span class="hs-identifier hs-var">sizeOfCoin</span></a><span> </span><a href="#local-6989586621679235914"><span class="hs-identifier hs-var">c</span></a><span>
</span><a name="line-115"></a><span>
</span><a name="line-116"></a><span class="hs-comment">-- Compute the size of a coin</span><span>
</span><a name="line-117"></a><span class="hs-identifier">sizeOfCoin</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">Coin</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">Int</span><span>
</span><a name="line-121"></a><span class="hs-identifier">sizeOf</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">CBOR.Encoding</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">Int</span><span>
</span><a name="line-122"></a><a name="sizeOf"><a href="Cardano.Wallet.Byron.Transaction.Size.html#sizeOf"><span class="hs-identifier">sizeOf</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">fromIntegral</span><span> </span><span class="hs-operator hs-var">.</span><span> </span><span class="hs-identifier hs-var">BL.length</span><span> </span><span class="hs-operator hs-var">.</span><span> </span><span class="hs-identifier hs-var">CBOR.toLazyByteString</span><span>
</span><a name="line-123"></a><span>
-
</span><a name="line-124"></a><span class="hs-keyword">class</span><span> </span><a name="WorstSizeOf"><a href="Cardano.Wallet.Byron.Transaction.Size.html#WorstSizeOf"><span class="hs-identifier">WorstSizeOf</span></a></a><span> </span><span class="hs-special">(</span><a name="local-6989586621679234416"><a href="#local-6989586621679234416"><span class="hs-identifier">t</span></a></a><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-operator">*</span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><a name="local-6989586621679234417"><a href="#local-6989586621679234417"><span class="hs-identifier">n</span></a></a><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">NetworkDiscriminant</span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><a name="local-6989586621679234418"><a href="#local-6989586621679234418"><span class="hs-identifier">k</span></a></a><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">Depth</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-operator">*</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-operator">*</span><span class="hs-special">)</span><span> </span><span class="hs-keyword">where</span><span>
+
</span><a name="line-124"></a><span class="hs-keyword">class</span><span> </span><a name="WorstSizeOf"><a href="Cardano.Wallet.Byron.Transaction.Size.html#WorstSizeOf"><span class="hs-identifier">WorstSizeOf</span></a></a><span> </span><span class="hs-special">(</span><a name="local-6989586621679234848"><a href="#local-6989586621679234848"><span class="hs-identifier">t</span></a></a><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-operator">*</span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><a name="local-6989586621679234849"><a href="#local-6989586621679234849"><span class="hs-identifier">n</span></a></a><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">NetworkDiscriminant</span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><a name="local-6989586621679234850"><a href="#local-6989586621679234850"><span class="hs-identifier">k</span></a></a><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">Depth</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-operator">*</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-operator">*</span><span class="hs-special">)</span><span> </span><span class="hs-keyword">where</span><span>
</span><a name="line-125"></a><span>    </span><a name="worstSizeOf"><a href="Cardano.Wallet.Byron.Transaction.Size.html#worstSizeOf"><span class="hs-identifier">worstSizeOf</span></a></a><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">Int</span><span>
</span><a name="line-126"></a><span>
</span><a name="line-127"></a><span class="hs-comment">-- ADDRESS (MainNet, Icarus)</span><span>
</span><a name="line-147"></a><span class="hs-comment">--             | 28OCTET              --    28 bytes</span><span>
</span><a name="line-148"></a><span class="hs-comment">--             | ATTRIBUTES (&#216;)       --     1 byte</span><span>
</span><a name="line-149"></a><span class="hs-comment">--             | U8                   --     1 bytes</span><span>
-
</span><a name="line-150"></a><span class="hs-keyword">instance</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#WorstSizeOf"><span class="hs-identifier hs-type">WorstSizeOf</span></a><span> </span><span class="hs-identifier hs-type">Address</span><span> </span><span class="hs-special">'</span><span class="hs-identifier hs-type">Mainnet</span><span> </span><span class="hs-identifier hs-type">IcarusKey</span><span> </span><span class="hs-keyword">where</span><span> </span><a name="local-8214565720324009319"><a href="Cardano.Wallet.Byron.Transaction.Size.html#worstSizeOf"><span class="hs-identifier">worstSizeOf</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-number">44</span><span>
+
</span><a name="line-150"></a><span class="hs-keyword">instance</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#WorstSizeOf"><span class="hs-identifier hs-type">WorstSizeOf</span></a><span> </span><span class="hs-identifier hs-type">Address</span><span> </span><span class="hs-special">'</span><span class="hs-identifier hs-type">Mainnet</span><span> </span><span class="hs-identifier hs-type">IcarusKey</span><span> </span><span class="hs-keyword">where</span><span> </span><a name="local-8214565720324009751"><a href="Cardano.Wallet.Byron.Transaction.Size.html#worstSizeOf"><span class="hs-identifier">worstSizeOf</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-number">44</span><span>
</span><a name="line-151"></a><span>
</span><a name="line-152"></a><span class="hs-comment">-- ADDRESS (TestNet, Icarus)</span><span>
</span><a name="line-153"></a><span class="hs-comment">--     = CBOR-LIST-LEN (2)    --     1 byte</span><span>
</span><a name="line-172"></a><span class="hs-comment">--             | 28OCTET              --    28 bytes</span><span>
</span><a name="line-173"></a><span class="hs-comment">--             | ATTRIBUTES (8)       --     8 bytes</span><span>
</span><a name="line-174"></a><span class="hs-comment">--             | U8                   --     1 bytes</span><span>
-
</span><a name="line-175"></a><span class="hs-keyword">instance</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#WorstSizeOf"><span class="hs-identifier hs-type">WorstSizeOf</span></a><span> </span><span class="hs-identifier hs-type">Address</span><span> </span><span class="hs-special">'</span><span class="hs-identifier hs-type">Testnet</span><span> </span><span class="hs-identifier hs-type">IcarusKey</span><span> </span><span class="hs-keyword">where</span><span> </span><a name="local-8214565720324009319"><a href="Cardano.Wallet.Byron.Transaction.Size.html#worstSizeOf"><span class="hs-identifier">worstSizeOf</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-number">51</span><span>
+
</span><a name="line-175"></a><span class="hs-keyword">instance</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#WorstSizeOf"><span class="hs-identifier hs-type">WorstSizeOf</span></a><span> </span><span class="hs-identifier hs-type">Address</span><span> </span><span class="hs-special">'</span><span class="hs-identifier hs-type">Testnet</span><span> </span><span class="hs-identifier hs-type">IcarusKey</span><span> </span><span class="hs-keyword">where</span><span> </span><a name="local-8214565720324009751"><a href="Cardano.Wallet.Byron.Transaction.Size.html#worstSizeOf"><span class="hs-identifier">worstSizeOf</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-number">51</span><span>
</span><a name="line-176"></a><span>
</span><a name="line-177"></a><span class="hs-comment">-- ADDRESS (MainNet, Random)</span><span>
</span><a name="line-178"></a><span class="hs-comment">--     = CBOR-LIST-LEN (2)    --     1 byte</span><span>
</span><a name="line-197"></a><span class="hs-comment">--             | 28OCTET              --    28 bytes</span><span>
</span><a name="line-198"></a><span class="hs-comment">--             | ATTRIBUTES (34)      --    34 bytes</span><span>
</span><a name="line-199"></a><span class="hs-comment">--             | U8                   --     1 bytes</span><span>
-
</span><a name="line-200"></a><span class="hs-keyword">instance</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#WorstSizeOf"><span class="hs-identifier hs-type">WorstSizeOf</span></a><span> </span><span class="hs-identifier hs-type">Address</span><span> </span><span class="hs-special">'</span><span class="hs-identifier hs-type">Mainnet</span><span> </span><span class="hs-identifier hs-type">ByronKey</span><span> </span><span class="hs-keyword">where</span><span> </span><a name="local-8214565720324009319"><a href="Cardano.Wallet.Byron.Transaction.Size.html#worstSizeOf"><span class="hs-identifier">worstSizeOf</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-number">77</span><span>
+
</span><a name="line-200"></a><span class="hs-keyword">instance</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#WorstSizeOf"><span class="hs-identifier hs-type">WorstSizeOf</span></a><span> </span><span class="hs-identifier hs-type">Address</span><span> </span><span class="hs-special">'</span><span class="hs-identifier hs-type">Mainnet</span><span> </span><span class="hs-identifier hs-type">ByronKey</span><span> </span><span class="hs-keyword">where</span><span> </span><a name="local-8214565720324009751"><a href="Cardano.Wallet.Byron.Transaction.Size.html#worstSizeOf"><span class="hs-identifier">worstSizeOf</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-number">77</span><span>
</span><a name="line-201"></a><span>
</span><a name="line-202"></a><span class="hs-comment">-- ADDRESS (TestNet, Random)</span><span>
</span><a name="line-203"></a><span class="hs-comment">--     = CBOR-LIST-LEN (2)    --     1 byte</span><span>
</span><a name="line-222"></a><span class="hs-comment">--             | 28OCTET              --    28 bytes</span><span>
</span><a name="line-223"></a><span class="hs-comment">--             | ATTRIBUTES (41)      --    41 bytes</span><span>
</span><a name="line-224"></a><span class="hs-comment">--             | U8                   --     1 bytes</span><span>
-
</span><a name="line-225"></a><span class="hs-keyword">instance</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#WorstSizeOf"><span class="hs-identifier hs-type">WorstSizeOf</span></a><span> </span><span class="hs-identifier hs-type">Address</span><span> </span><span class="hs-special">'</span><span class="hs-identifier hs-type">Testnet</span><span> </span><span class="hs-identifier hs-type">ByronKey</span><span> </span><span class="hs-keyword">where</span><span> </span><a name="local-8214565720324009319"><a href="Cardano.Wallet.Byron.Transaction.Size.html#worstSizeOf"><span class="hs-identifier">worstSizeOf</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-number">84</span><span>
+
</span><a name="line-225"></a><span class="hs-keyword">instance</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#WorstSizeOf"><span class="hs-identifier hs-type">WorstSizeOf</span></a><span> </span><span class="hs-identifier hs-type">Address</span><span> </span><span class="hs-special">'</span><span class="hs-identifier hs-type">Testnet</span><span> </span><span class="hs-identifier hs-type">ByronKey</span><span> </span><span class="hs-keyword">where</span><span> </span><a name="local-8214565720324009751"><a href="Cardano.Wallet.Byron.Transaction.Size.html#worstSizeOf"><span class="hs-identifier">worstSizeOf</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-number">84</span><span>
</span><a name="line-226"></a></pre></body></html>
\ No newline at end of file
</span><a name="line-82"></a><span>
</span><a name="line-83"></a><span>
</span><a name="line-84"></a><span class="hs-identifier">newTransactionLayer</span><span>
-
</span><a name="line-85"></a><span>    </span><span class="hs-glyph">::</span><span> </span><span class="hs-keyword">forall</span><span> </span><span class="hs-special">(</span><a name="local-6989586621679236384"><a href="#local-6989586621679236384"><span class="hs-identifier">n</span></a></a><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">NetworkDiscriminant</span><span class="hs-special">)</span><span> </span><a name="local-6989586621679236385"><a href="#local-6989586621679236385"><span class="hs-identifier">k</span></a></a><span> </span><a name="local-6989586621679236386"><a href="#local-6989586621679236386"><span class="hs-identifier">t</span></a></a><span class="hs-operator">.</span><span>
+
</span><a name="line-85"></a><span>    </span><span class="hs-glyph">::</span><span> </span><span class="hs-keyword">forall</span><span> </span><span class="hs-special">(</span><a name="local-6989586621679236816"><a href="#local-6989586621679236816"><span class="hs-identifier">n</span></a></a><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">NetworkDiscriminant</span><span class="hs-special">)</span><span> </span><a name="local-6989586621679236817"><a href="#local-6989586621679236817"><span class="hs-identifier">k</span></a></a><span> </span><a name="local-6989586621679236818"><a href="#local-6989586621679236818"><span class="hs-identifier">t</span></a></a><span class="hs-operator">.</span><span>
</span><a name="line-86"></a><span>        </span><span class="hs-special">(</span><span> </span><span class="hs-identifier hs-type">t</span><span> </span><span class="hs-glyph">~</span><span> </span><span class="hs-identifier hs-type">IO</span><span> </span><a href="Cardano.Wallet.Byron.Compatibility.html#Byron"><span class="hs-identifier hs-type">Byron</span></a><span>
-
</span><a name="line-87"></a><span>        </span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">WalletKey</span><span> </span><a href="#local-6989586621679236385"><span class="hs-identifier hs-type">k</span></a><span>
-
</span><a name="line-88"></a><span>        </span><span class="hs-special">,</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#WorstSizeOf"><span class="hs-identifier hs-type">WorstSizeOf</span></a><span> </span><span class="hs-identifier hs-type">Address</span><span> </span><a href="#local-6989586621679236384"><span class="hs-identifier hs-type">n</span></a><span> </span><a href="#local-6989586621679236385"><span class="hs-identifier hs-type">k</span></a><span>
+
</span><a name="line-87"></a><span>        </span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">WalletKey</span><span> </span><a href="#local-6989586621679236817"><span class="hs-identifier hs-type">k</span></a><span>
+
</span><a name="line-88"></a><span>        </span><span class="hs-special">,</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#WorstSizeOf"><span class="hs-identifier hs-type">WorstSizeOf</span></a><span> </span><span class="hs-identifier hs-type">Address</span><span> </span><a href="#local-6989586621679236816"><span class="hs-identifier hs-type">n</span></a><span> </span><a href="#local-6989586621679236817"><span class="hs-identifier hs-type">k</span></a><span>
</span><a name="line-89"></a><span>        </span><span class="hs-special">)</span><span>
-
</span><a name="line-90"></a><span>    </span><span class="hs-glyph">=&gt;</span><span> </span><span class="hs-identifier hs-type">TransactionLayer</span><span> </span><a href="#local-6989586621679236386"><span class="hs-identifier hs-type">t</span></a><span> </span><a href="#local-6989586621679236385"><span class="hs-identifier hs-type">k</span></a><span>
+
</span><a name="line-90"></a><span>    </span><span class="hs-glyph">=&gt;</span><span> </span><span class="hs-identifier hs-type">TransactionLayer</span><span> </span><a href="#local-6989586621679236818"><span class="hs-identifier hs-type">t</span></a><span> </span><a href="#local-6989586621679236817"><span class="hs-identifier hs-type">k</span></a><span>
</span><a name="line-91"></a><a name="newTransactionLayer"><a href="Cardano.Wallet.Byron.Transaction.html#newTransactionLayer"><span class="hs-identifier">newTransactionLayer</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">TransactionLayer</span><span>
-
</span><a name="line-92"></a><span>    </span><span class="hs-special">{</span><span> </span><span class="hs-identifier">mkStdTx</span><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679236387"><span class="hs-identifier hs-var">_mkStdTx</span></a><span>
-
</span><a name="line-93"></a><span>    </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">mkDelegationJoinTx</span><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679236392"><span class="hs-identifier hs-var">_mkDelegationJoinTx</span></a><span>
-
</span><a name="line-94"></a><span>    </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">mkDelegationQuitTx</span><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679236393"><span class="hs-identifier hs-var">_mkDelegationQuitTx</span></a><span>
-
</span><a name="line-95"></a><span>    </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">decodeSignedTx</span><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679236391"><span class="hs-identifier hs-var">_decodeSignedTx</span></a><span>
-
</span><a name="line-96"></a><span>    </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">estimateSize</span><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679236388"><span class="hs-identifier hs-var">_estimateSize</span></a><span>
-
</span><a name="line-97"></a><span>    </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">estimateMaxNumberOfInputs</span><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679236389"><span class="hs-identifier hs-var">_estimateMaxNumberOfInputs</span></a><span>
-
</span><a name="line-98"></a><span>    </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">validateSelection</span><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679236390"><span class="hs-identifier hs-var">_validateSelection</span></a><span>
+
</span><a name="line-92"></a><span>    </span><span class="hs-special">{</span><span> </span><span class="hs-identifier">mkStdTx</span><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679236819"><span class="hs-identifier hs-var">_mkStdTx</span></a><span>
+
</span><a name="line-93"></a><span>    </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">mkDelegationJoinTx</span><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679236824"><span class="hs-identifier hs-var">_mkDelegationJoinTx</span></a><span>
+
</span><a name="line-94"></a><span>    </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">mkDelegationQuitTx</span><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679236825"><span class="hs-identifier hs-var">_mkDelegationQuitTx</span></a><span>
+
</span><a name="line-95"></a><span>    </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">decodeSignedTx</span><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679236823"><span class="hs-identifier hs-var">_decodeSignedTx</span></a><span>
+
</span><a name="line-96"></a><span>    </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">estimateSize</span><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679236820"><span class="hs-identifier hs-var">_estimateSize</span></a><span>
+
</span><a name="line-97"></a><span>    </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">estimateMaxNumberOfInputs</span><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679236821"><span class="hs-identifier hs-var">_estimateMaxNumberOfInputs</span></a><span>
+
</span><a name="line-98"></a><span>    </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">validateSelection</span><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679236822"><span class="hs-identifier hs-var">_validateSelection</span></a><span>
</span><a name="line-99"></a><span>    </span><span class="hs-special">}</span><span>
</span><a name="line-100"></a><span>  </span><span class="hs-keyword">where</span><span>
</span><a name="line-101"></a><span>    </span><span class="hs-identifier">_mkStdTx</span><span>
-
</span><a name="line-102"></a><span>        </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-type">Address</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">Maybe</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679236385"><span class="hs-identifier hs-type">k</span></a><span> </span><span class="hs-special">'</span><span class="hs-identifier hs-type">AddressK</span><span> </span><span class="hs-identifier hs-type">XPrv</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">Passphrase</span><span> </span><span class="hs-string">&quot;encryption&quot;</span><span class="hs-special">)</span><span class="hs-special">)</span><span>
+
</span><a name="line-102"></a><span>        </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-type">Address</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">Maybe</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679236817"><span class="hs-identifier hs-type">k</span></a><span> </span><span class="hs-special">'</span><span class="hs-identifier hs-type">AddressK</span><span> </span><span class="hs-identifier hs-type">XPrv</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">Passphrase</span><span> </span><span class="hs-string">&quot;encryption&quot;</span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><a name="line-103"></a><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">[</span><span class="hs-special">(</span><span class="hs-identifier hs-type">TxIn</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">TxOut</span><span class="hs-special">)</span><span class="hs-special">]</span><span>
</span><a name="line-104"></a><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">[</span><span class="hs-identifier hs-type">TxOut</span><span class="hs-special">]</span><span>
</span><a name="line-105"></a><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">Either</span><span> </span><span class="hs-identifier hs-type">ErrMkTx</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-type">Tx</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">SealedTx</span><span class="hs-special">)</span><span>
-
</span><a name="line-106"></a><span>    </span><a name="local-6989586621679236387"><a href="#local-6989586621679236387"><span class="hs-identifier">_mkStdTx</span></a></a><span> </span><a name="local-6989586621679236394"><a href="#local-6989586621679236394"><span class="hs-identifier">keyFrom</span></a></a><span> </span><a name="local-6989586621679236395"><a href="#local-6989586621679236395"><span class="hs-identifier">inps</span></a></a><span> </span><a name="local-6989586621679236396"><a href="#local-6989586621679236396"><span class="hs-identifier">outs</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">do</span><span>
-
</span><a name="line-107"></a><span>        </span><span class="hs-keyword">let</span><span> </span><a name="local-6989586621679236399"><a href="#local-6989586621679236399"><span class="hs-identifier">tx</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">fst</span><span> </span><span class="hs-operator hs-var">&lt;$&gt;</span><span> </span><a href="#local-6989586621679236395"><span class="hs-identifier hs-var">inps</span></a><span class="hs-special">,</span><span> </span><a href="#local-6989586621679236396"><span class="hs-identifier hs-var">outs</span></a><span class="hs-special">)</span><span>
-
</span><a name="line-108"></a><span>        </span><span class="hs-keyword">let</span><span> </span><a name="local-6989586621679236415"><a href="#local-6989586621679236415"><span class="hs-identifier">sigData</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.html#blake2b256"><span class="hs-identifier hs-var">blake2b256</span></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">CBOR.encodeTx</span><span> </span><a href="#local-6989586621679236399"><span class="hs-identifier hs-var">tx</span></a><span class="hs-special">)</span><span>
-
</span><a name="line-109"></a><span>        </span><a name="local-6989586621679236809"><a href="#local-6989586621679236809"><span class="hs-identifier">witnesses</span></a></a><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="hs-identifier hs-var">forM</span><span> </span><a href="#local-6989586621679236395"><span class="hs-identifier hs-var">inps</span></a><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-glyph">\</span><span class="hs-special">(</span><span class="hs-identifier">_</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-var">TxOut</span><span> </span><a name="local-6989586621679236808"><a href="#local-6989586621679236808"><span class="hs-identifier">addr</span></a></a><span> </span><span class="hs-identifier">_</span><span class="hs-special">)</span><span> </span><span class="hs-glyph">-&gt;</span><span>
-
</span><a name="line-110"></a><span>            </span><a href="Cardano.Wallet.Byron.Transaction.html#mkWitness"><span class="hs-identifier hs-var">mkWitness</span></a><span> </span><a href="#local-6989586621679236415"><span class="hs-identifier hs-var">sigData</span></a><span> </span><span class="hs-operator hs-var">&lt;$&gt;</span><span> </span><a href="#local-6989586621679236397"><span class="hs-identifier hs-var">lookupPrivateKey</span></a><span> </span><a href="#local-6989586621679236808"><span class="hs-identifier hs-var">addr</span></a><span>
+
</span><a name="line-106"></a><span>    </span><a name="local-6989586621679236819"><a href="#local-6989586621679236819"><span class="hs-identifier">_mkStdTx</span></a></a><span> </span><a name="local-6989586621679236826"><a href="#local-6989586621679236826"><span class="hs-identifier">keyFrom</span></a></a><span> </span><a name="local-6989586621679236827"><a href="#local-6989586621679236827"><span class="hs-identifier">inps</span></a></a><span> </span><a name="local-6989586621679236828"><a href="#local-6989586621679236828"><span class="hs-identifier">outs</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">do</span><span>
+
</span><a name="line-107"></a><span>        </span><span class="hs-keyword">let</span><span> </span><a name="local-6989586621679236831"><a href="#local-6989586621679236831"><span class="hs-identifier">tx</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">fst</span><span> </span><span class="hs-operator hs-var">&lt;$&gt;</span><span> </span><a href="#local-6989586621679236827"><span class="hs-identifier hs-var">inps</span></a><span class="hs-special">,</span><span> </span><a href="#local-6989586621679236828"><span class="hs-identifier hs-var">outs</span></a><span class="hs-special">)</span><span>
+
</span><a name="line-108"></a><span>        </span><span class="hs-keyword">let</span><span> </span><a name="local-6989586621679236847"><a href="#local-6989586621679236847"><span class="hs-identifier">sigData</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.html#blake2b256"><span class="hs-identifier hs-var">blake2b256</span></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">CBOR.encodeTx</span><span> </span><a href="#local-6989586621679236831"><span class="hs-identifier hs-var">tx</span></a><span class="hs-special">)</span><span>
+
</span><a name="line-109"></a><span>        </span><a name="local-6989586621679237241"><a href="#local-6989586621679237241"><span class="hs-identifier">witnesses</span></a></a><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="hs-identifier hs-var">forM</span><span> </span><a href="#local-6989586621679236827"><span class="hs-identifier hs-var">inps</span></a><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-glyph">\</span><span class="hs-special">(</span><span class="hs-identifier">_</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-var">TxOut</span><span> </span><a name="local-6989586621679237240"><a href="#local-6989586621679237240"><span class="hs-identifier">addr</span></a></a><span> </span><span class="hs-identifier">_</span><span class="hs-special">)</span><span> </span><span class="hs-glyph">-&gt;</span><span>
+
</span><a name="line-110"></a><span>            </span><a href="Cardano.Wallet.Byron.Transaction.html#mkWitness"><span class="hs-identifier hs-var">mkWitness</span></a><span> </span><a href="#local-6989586621679236847"><span class="hs-identifier hs-var">sigData</span></a><span> </span><span class="hs-operator hs-var">&lt;$&gt;</span><span> </span><a href="#local-6989586621679236829"><span class="hs-identifier hs-var">lookupPrivateKey</span></a><span> </span><a href="#local-6989586621679237240"><span class="hs-identifier hs-var">addr</span></a><span>
</span><a name="line-111"></a><span>        </span><span class="hs-identifier hs-var">pure</span><span>
-
</span><a name="line-112"></a><span>            </span><span class="hs-special">(</span><span> </span><span class="hs-identifier hs-var">Tx</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">Hash</span><span> </span><a href="#local-6989586621679236415"><span class="hs-identifier hs-var">sigData</span></a><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">second</span><span> </span><span class="hs-identifier">coin</span><span> </span><span class="hs-operator hs-var">&lt;$&gt;</span><span> </span><a href="#local-6989586621679236395"><span class="hs-identifier hs-var">inps</span></a><span class="hs-special">)</span><span> </span><a href="#local-6989586621679236396"><span class="hs-identifier hs-var">outs</span></a><span>
-
</span><a name="line-113"></a><span>            </span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-var">SealedTx</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">CBOR.toStrictByteString</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">CBOR.encodeSignedTx</span><span> </span><a href="#local-6989586621679236399"><span class="hs-identifier hs-var">tx</span></a><span> </span><a href="#local-6989586621679236809"><span class="hs-identifier hs-var">witnesses</span></a><span>
+
</span><a name="line-112"></a><span>            </span><span class="hs-special">(</span><span> </span><span class="hs-identifier hs-var">Tx</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">Hash</span><span> </span><a href="#local-6989586621679236847"><span class="hs-identifier hs-var">sigData</span></a><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">second</span><span> </span><span class="hs-identifier">coin</span><span> </span><span class="hs-operator hs-var">&lt;$&gt;</span><span> </span><a href="#local-6989586621679236827"><span class="hs-identifier hs-var">inps</span></a><span class="hs-special">)</span><span> </span><a href="#local-6989586621679236828"><span class="hs-identifier hs-var">outs</span></a><span>
+
</span><a name="line-113"></a><span>            </span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-var">SealedTx</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">CBOR.toStrictByteString</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">CBOR.encodeSignedTx</span><span> </span><a href="#local-6989586621679236831"><span class="hs-identifier hs-var">tx</span></a><span> </span><a href="#local-6989586621679237241"><span class="hs-identifier hs-var">witnesses</span></a><span>
</span><a name="line-114"></a><span>            </span><span class="hs-special">)</span><span>
</span><a name="line-115"></a><span>      </span><span class="hs-keyword">where</span><span>
</span><a name="line-116"></a><span>        </span><span class="hs-identifier">lookupPrivateKey</span><span>
</span><a name="line-117"></a><span>            </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">Address</span><span>
-
</span><a name="line-118"></a><span>            </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">Either</span><span> </span><span class="hs-identifier hs-type">ErrMkTx</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679236385"><span class="hs-identifier hs-type">k</span></a><span> </span><span class="hs-special">'</span><span class="hs-identifier hs-type">AddressK</span><span> </span><span class="hs-identifier hs-type">XPrv</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">Passphrase</span><span> </span><span class="hs-string">&quot;encryption&quot;</span><span class="hs-special">)</span><span>
-
</span><a name="line-119"></a><span>        </span><a name="local-6989586621679236397"><a href="#local-6989586621679236397"><span class="hs-identifier">lookupPrivateKey</span></a></a><span> </span><a name="local-6989586621679236398"><a href="#local-6989586621679236398"><span class="hs-identifier">addr</span></a></a><span> </span><span class="hs-glyph">=</span><span>
-
</span><a name="line-120"></a><span>            </span><span class="hs-identifier hs-var">maybeToRight</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">ErrKeyNotFoundForAddress</span><span> </span><a href="#local-6989586621679236398"><span class="hs-identifier hs-var">addr</span></a><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679236394"><span class="hs-identifier hs-var">keyFrom</span></a><span> </span><a href="#local-6989586621679236398"><span class="hs-identifier hs-var">addr</span></a><span class="hs-special">)</span><span>
+
</span><a name="line-118"></a><span>            </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">Either</span><span> </span><span class="hs-identifier hs-type">ErrMkTx</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679236817"><span class="hs-identifier hs-type">k</span></a><span> </span><span class="hs-special">'</span><span class="hs-identifier hs-type">AddressK</span><span> </span><span class="hs-identifier hs-type">XPrv</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">Passphrase</span><span> </span><span class="hs-string">&quot;encryption&quot;</span><span class="hs-special">)</span><span>
+
</span><a name="line-119"></a><span>        </span><a name="local-6989586621679236829"><a href="#local-6989586621679236829"><span class="hs-identifier">lookupPrivateKey</span></a></a><span> </span><a name="local-6989586621679236830"><a href="#local-6989586621679236830"><span class="hs-identifier">addr</span></a></a><span> </span><span class="hs-glyph">=</span><span>
+
</span><a name="line-120"></a><span>            </span><span class="hs-identifier hs-var">maybeToRight</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">ErrKeyNotFoundForAddress</span><span> </span><a href="#local-6989586621679236830"><span class="hs-identifier hs-var">addr</span></a><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679236826"><span class="hs-identifier hs-var">keyFrom</span></a><span> </span><a href="#local-6989586621679236830"><span class="hs-identifier hs-var">addr</span></a><span class="hs-special">)</span><span>
</span><a name="line-121"></a><span>
</span><a name="line-122"></a><span>    </span><span class="hs-identifier">_estimateSize</span><span>
</span><a name="line-123"></a><span>        </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">CoinSelection</span><span>
</span><a name="line-124"></a><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">Quantity</span><span> </span><span class="hs-string">&quot;byte&quot;</span><span> </span><span class="hs-identifier hs-type">Int</span><span>
-
</span><a name="line-125"></a><span>    </span><a name="local-6989586621679236388"><a href="#local-6989586621679236388"><span class="hs-identifier">_estimateSize</span></a></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">CoinSelection</span><span> </span><a name="local-6989586621679236810"><a href="#local-6989586621679236810"><span class="hs-identifier">inps</span></a></a><span> </span><a name="local-6989586621679236811"><a href="#local-6989586621679236811"><span class="hs-identifier">outs</span></a></a><span> </span><a name="local-6989586621679236812"><a href="#local-6989586621679236812"><span class="hs-identifier">chngs</span></a></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span>
-
</span><a name="line-126"></a><span>        </span><span class="hs-identifier hs-var">Quantity</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#sizeOfSignedTx"><span class="hs-identifier hs-var">sizeOfSignedTx</span></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">fst</span><span> </span><span class="hs-operator hs-var">&lt;$&gt;</span><span> </span><a href="#local-6989586621679236810"><span class="hs-identifier hs-var">inps</span></a><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679236811"><span class="hs-identifier hs-var">outs</span></a><span> </span><span class="hs-operator hs-var">&lt;&gt;</span><span> </span><span class="hs-identifier hs-var">map</span><span> </span><a href="#local-6989586621679236813"><span class="hs-identifier hs-var">dummyOutput</span></a><span> </span><a href="#local-6989586621679236812"><span class="hs-identifier hs-var">chngs</span></a><span class="hs-special">)</span><span>
+
</span><a name="line-125"></a><span>    </span><a name="local-6989586621679236820"><a href="#local-6989586621679236820"><span class="hs-identifier">_estimateSize</span></a></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">CoinSelection</span><span> </span><a name="local-6989586621679237242"><a href="#local-6989586621679237242"><span class="hs-identifier">inps</span></a></a><span> </span><a name="local-6989586621679237243"><a href="#local-6989586621679237243"><span class="hs-identifier">outs</span></a></a><span> </span><a name="local-6989586621679237244"><a href="#local-6989586621679237244"><span class="hs-identifier">chngs</span></a></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span>
+
</span><a name="line-126"></a><span>        </span><span class="hs-identifier hs-var">Quantity</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.Size.html#sizeOfSignedTx"><span class="hs-identifier hs-var">sizeOfSignedTx</span></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">fst</span><span> </span><span class="hs-operator hs-var">&lt;$&gt;</span><span> </span><a href="#local-6989586621679237242"><span class="hs-identifier hs-var">inps</span></a><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679237243"><span class="hs-identifier hs-var">outs</span></a><span> </span><span class="hs-operator hs-var">&lt;&gt;</span><span> </span><span class="hs-identifier hs-var">map</span><span> </span><a href="#local-6989586621679237245"><span class="hs-identifier hs-var">dummyOutput</span></a><span> </span><a href="#local-6989586621679237244"><span class="hs-identifier hs-var">chngs</span></a><span class="hs-special">)</span><span>
</span><a name="line-127"></a><span>      </span><span class="hs-keyword">where</span><span>
</span><a name="line-128"></a><span>        </span><span class="hs-identifier">dummyOutput</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">Coin</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">TxOut</span><span>
-
</span><a name="line-129"></a><span>        </span><a name="local-6989586621679236813"><a href="#local-6989586621679236813"><span class="hs-identifier">dummyOutput</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">TxOut</span><span> </span><span class="hs-special">(</span><a href="Cardano.Wallet.Byron.Transaction.html#dummyAddress"><span class="hs-identifier hs-var">dummyAddress</span></a><span> </span><span class="hs-glyph">@</span><a href="#local-6989586621679236384"><span class="hs-identifier hs-type">n</span></a><span> </span><span class="hs-glyph">@</span><a href="#local-6989586621679236385"><span class="hs-identifier hs-type">k</span></a><span class="hs-special">)</span><span>
+
</span><a name="line-129"></a><span>        </span><a name="local-6989586621679237245"><a href="#local-6989586621679237245"><span class="hs-identifier">dummyOutput</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">TxOut</span><span> </span><span class="hs-special">(</span><a href="Cardano.Wallet.Byron.Transaction.html#dummyAddress"><span class="hs-identifier hs-var">dummyAddress</span></a><span> </span><span class="hs-glyph">@</span><a href="#local-6989586621679236816"><span class="hs-identifier hs-type">n</span></a><span> </span><span class="hs-glyph">@</span><a href="#local-6989586621679236817"><span class="hs-identifier hs-type">k</span></a><span class="hs-special">)</span><span>
</span><a name="line-130"></a><span>
</span><a name="line-131"></a><span>    </span><span class="hs-identifier">_estimateMaxNumberOfInputs</span><span>
</span><a name="line-132"></a><span>        </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">Quantity</span><span> </span><span class="hs-string">&quot;byte&quot;</span><span> </span><span class="hs-identifier hs-type">Word16</span><span>
</span><a name="line-133"></a><span>        </span><span class="hs-comment">-- ^ Transaction max size in bytes</span><span>
</span><a name="line-134"></a><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">Word8</span><span>
</span><a name="line-135"></a><span>        </span><span class="hs-comment">-- ^ Number of outputs in transaction</span><span>
</span><a name="line-136"></a><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">Word8</span><span>
-
</span><a name="line-137"></a><span>    </span><a name="local-6989586621679236389"><a href="#local-6989586621679236389"><span class="hs-identifier">_estimateMaxNumberOfInputs</span></a></a><span> </span><span class="hs-identifier">_</span><span> </span><span class="hs-identifier">_</span><span> </span><span class="hs-glyph">=</span><span>
+
</span><a name="line-137"></a><span>    </span><a name="local-6989586621679236821"><a href="#local-6989586621679236821"><span class="hs-identifier">_estimateMaxNumberOfInputs</span></a></a><span> </span><span class="hs-identifier">_</span><span> </span><span class="hs-identifier">_</span><span> </span><span class="hs-glyph">=</span><span>
</span><a name="line-138"></a><span>        </span><span class="hs-comment">-- TODO: Compute the actual size or, revise coin selection to not</span><span>
</span><a name="line-139"></a><span>        </span><span class="hs-comment">-- need that. Instead, we could simply compute the size of the</span><span>
</span><a name="line-140"></a><span>        </span><span class="hs-comment">-- transaction at each step and check that it remains under the</span><span>
</span><a name="line-143"></a><span>
</span><a name="line-144"></a><span>    </span><span class="hs-identifier">_validateSelection</span><span>
</span><a name="line-145"></a><span>        </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">CoinSelection</span><span>
-
</span><a name="line-146"></a><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">Either</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-type">ErrValidateSelection</span><span> </span><a href="#local-6989586621679236386"><span class="hs-identifier hs-type">t</span></a><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="hs-special">)</span><span>
-
</span><a name="line-147"></a><span>    </span><a name="local-6989586621679236390"><a href="#local-6989586621679236390"><span class="hs-identifier">_validateSelection</span></a></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">CoinSelection</span><span> </span><span class="hs-identifier">_</span><span> </span><a name="local-6989586621679237347"><a href="#local-6989586621679237347"><span class="hs-identifier">outs</span></a></a><span> </span><span class="hs-identifier">_</span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span>
-
</span><a name="line-148"></a><span>        </span><span class="hs-identifier hs-var">when</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">any</span><span> </span><span class="hs-special">(</span><span class="hs-glyph">\</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">TxOut</span><span> </span><span class="hs-identifier">_</span><span> </span><a name="local-6989586621679237348"><a href="#local-6989586621679237348"><span class="hs-identifier">c</span></a></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><a href="#local-6989586621679237348"><span class="hs-identifier hs-var">c</span></a><span> </span><span class="hs-operator hs-var">==</span><span> </span><span class="hs-identifier hs-var">Coin</span><span> </span><span class="hs-number">0</span><span class="hs-special">)</span><span> </span><a href="#local-6989586621679237347"><span class="hs-identifier hs-var">outs</span></a><span class="hs-special">)</span><span> </span><span class="hs-operator hs-var">$</span><span>
+
</span><a name="line-146"></a><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">Either</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-type">ErrValidateSelection</span><span> </span><a href="#local-6989586621679236818"><span class="hs-identifier hs-type">t</span></a><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="hs-special">)</span><span>
+
</span><a name="line-147"></a><span>    </span><a name="local-6989586621679236822"><a href="#local-6989586621679236822"><span class="hs-identifier">_validateSelection</span></a></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">CoinSelection</span><span> </span><span class="hs-identifier">_</span><span> </span><a name="local-6989586621679237779"><a href="#local-6989586621679237779"><span class="hs-identifier">outs</span></a></a><span> </span><span class="hs-identifier">_</span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span>
+
</span><a name="line-148"></a><span>        </span><span class="hs-identifier hs-var">when</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">any</span><span> </span><span class="hs-special">(</span><span class="hs-glyph">\</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">TxOut</span><span> </span><span class="hs-identifier">_</span><span> </span><a name="local-6989586621679237780"><a href="#local-6989586621679237780"><span class="hs-identifier">c</span></a></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><a href="#local-6989586621679237780"><span class="hs-identifier hs-var">c</span></a><span> </span><span class="hs-operator hs-var">==</span><span> </span><span class="hs-identifier hs-var">Coin</span><span> </span><span class="hs-number">0</span><span class="hs-special">)</span><span> </span><a href="#local-6989586621679237779"><span class="hs-identifier hs-var">outs</span></a><span class="hs-special">)</span><span> </span><span class="hs-operator hs-var">$</span><span>
</span><a name="line-149"></a><span>            </span><span class="hs-identifier hs-var">Left</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.html#ErrInvalidTxOutAmount"><span class="hs-identifier hs-var">ErrInvalidTxOutAmount</span></a><span>
</span><a name="line-150"></a><span>
</span><a name="line-151"></a><span>    </span><span class="hs-identifier">_decodeSignedTx</span><span>
</span><a name="line-152"></a><span>        </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">ByteString</span><span>
</span><a name="line-153"></a><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">Either</span><span> </span><span class="hs-identifier hs-type">ErrDecodeSignedTx</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-type">Tx</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">SealedTx</span><span class="hs-special">)</span><span>
-
</span><a name="line-154"></a><span>    </span><a name="local-6989586621679236391"><a href="#local-6989586621679236391"><span class="hs-identifier">_decodeSignedTx</span></a></a><span> </span><a name="local-6989586621679237349"><a href="#local-6989586621679237349"><span class="hs-identifier">bytes</span></a></a><span> </span><span class="hs-glyph">=</span><span>
-
</span><a name="line-155"></a><span>        </span><span class="hs-keyword">case</span><span> </span><span class="hs-identifier hs-var">CBOR.deserialiseFromBytes</span><span> </span><span class="hs-identifier hs-var">CBOR.decodeSignedTx</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">BL.fromStrict</span><span> </span><a href="#local-6989586621679237349"><span class="hs-identifier hs-var">bytes</span></a><span class="hs-special">)</span><span> </span><span class="hs-keyword">of</span><span>
-
</span><a name="line-156"></a><span>            </span><span class="hs-identifier hs-var">Left</span><span> </span><a name="local-6989586621679237350"><a href="#local-6989586621679237350"><span class="hs-identifier">e</span></a></a><span> </span><span class="hs-glyph">-&gt;</span><span>
-
</span><a name="line-157"></a><span>                </span><span class="hs-identifier hs-var">Left</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">ErrDecodeSignedTxWrongPayload</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">T.pack</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">show</span><span> </span><a href="#local-6989586621679237350"><span class="hs-identifier hs-var">e</span></a><span>
-
</span><a name="line-158"></a><span>            </span><span class="hs-identifier hs-var">Right</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">_</span><span class="hs-special">,</span><span> </span><span class="hs-special">(</span><span class="hs-special">(</span><a name="local-6989586621679237351"><a href="#local-6989586621679237351"><span class="hs-identifier">inps</span></a></a><span class="hs-special">,</span><span> </span><a name="local-6989586621679237352"><a href="#local-6989586621679237352"><span class="hs-identifier">outs</span></a></a><span class="hs-special">)</span><span class="hs-special">,</span><span> </span><span class="hs-identifier">_</span><span class="hs-special">)</span><span class="hs-special">)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-var">Right</span><span>
+
</span><a name="line-154"></a><span>    </span><a name="local-6989586621679236823"><a href="#local-6989586621679236823"><span class="hs-identifier">_decodeSignedTx</span></a></a><span> </span><a name="local-6989586621679237781"><a href="#local-6989586621679237781"><span class="hs-identifier">bytes</span></a></a><span> </span><span class="hs-glyph">=</span><span>
+
</span><a name="line-155"></a><span>        </span><span class="hs-keyword">case</span><span> </span><span class="hs-identifier hs-var">CBOR.deserialiseFromBytes</span><span> </span><span class="hs-identifier hs-var">CBOR.decodeSignedTx</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">BL.fromStrict</span><span> </span><a href="#local-6989586621679237781"><span class="hs-identifier hs-var">bytes</span></a><span class="hs-special">)</span><span> </span><span class="hs-keyword">of</span><span>
+
</span><a name="line-156"></a><span>            </span><span class="hs-identifier hs-var">Left</span><span> </span><a name="local-6989586621679237782"><a href="#local-6989586621679237782"><span class="hs-identifier">e</span></a></a><span> </span><span class="hs-glyph">-&gt;</span><span>
+
</span><a name="line-157"></a><span>                </span><span class="hs-identifier hs-var">Left</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">ErrDecodeSignedTxWrongPayload</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">T.pack</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">show</span><span> </span><a href="#local-6989586621679237782"><span class="hs-identifier hs-var">e</span></a><span>
+
</span><a name="line-158"></a><span>            </span><span class="hs-identifier hs-var">Right</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">_</span><span class="hs-special">,</span><span> </span><span class="hs-special">(</span><span class="hs-special">(</span><a name="local-6989586621679237783"><a href="#local-6989586621679237783"><span class="hs-identifier">inps</span></a></a><span class="hs-special">,</span><span> </span><a name="local-6989586621679237784"><a href="#local-6989586621679237784"><span class="hs-identifier">outs</span></a></a><span class="hs-special">)</span><span class="hs-special">,</span><span> </span><span class="hs-identifier">_</span><span class="hs-special">)</span><span class="hs-special">)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-var">Right</span><span>
</span><a name="line-159"></a><span>                </span><span class="hs-special">(</span><span> </span><span class="hs-identifier hs-var">Tx</span><span>
-
</span><a name="line-160"></a><span>                    </span><span class="hs-special">{</span><span> </span><span class="hs-identifier">txId</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">Hash</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.html#blake2b256"><span class="hs-identifier hs-var">blake2b256</span></a><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">CBOR.encodeTx</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679237351"><span class="hs-identifier hs-var">inps</span></a><span class="hs-special">,</span><span> </span><a href="#local-6989586621679237352"><span class="hs-identifier hs-var">outs</span></a><span class="hs-special">)</span><span>
+
</span><a name="line-160"></a><span>                    </span><span class="hs-special">{</span><span> </span><span class="hs-identifier">txId</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">Hash</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.html#blake2b256"><span class="hs-identifier hs-var">blake2b256</span></a><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">CBOR.encodeTx</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679237783"><span class="hs-identifier hs-var">inps</span></a><span class="hs-special">,</span><span> </span><a href="#local-6989586621679237784"><span class="hs-identifier hs-var">outs</span></a><span class="hs-special">)</span><span>
</span><a name="line-161"></a><span>                    </span><span class="hs-comment">-- FIXME Do not require Tx to have resolvedInputs</span><span>
-
</span><a name="line-162"></a><span>                    </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">resolvedInputs</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">(</span><span class="hs-special">,</span><span class="hs-identifier hs-var">Coin</span><span> </span><span class="hs-number">0</span><span class="hs-special">)</span><span> </span><span class="hs-operator hs-var">&lt;$&gt;</span><span> </span><a href="#local-6989586621679237351"><span class="hs-identifier hs-var">inps</span></a><span>
-
</span><a name="line-163"></a><span>                    </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">outputs</span><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679237352"><span class="hs-identifier hs-var">outs</span></a><span>
+
</span><a name="line-162"></a><span>                    </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">resolvedInputs</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">(</span><span class="hs-special">,</span><span class="hs-identifier hs-var">Coin</span><span> </span><span class="hs-number">0</span><span class="hs-special">)</span><span> </span><span class="hs-operator hs-var">&lt;$&gt;</span><span> </span><a href="#local-6989586621679237783"><span class="hs-identifier hs-var">inps</span></a><span>
+
</span><a name="line-163"></a><span>                    </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">outputs</span><span> </span><span class="hs-glyph">=</span><span> </span><a href="#local-6989586621679237784"><span class="hs-identifier hs-var">outs</span></a><span>
</span><a name="line-164"></a><span>                    </span><span class="hs-special">}</span><span>
-
</span><a name="line-165"></a><span>                </span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-var">SealedTx</span><span> </span><a href="#local-6989586621679237349"><span class="hs-identifier hs-var">bytes</span></a><span>
+
</span><a name="line-165"></a><span>                </span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-var">SealedTx</span><span> </span><a href="#local-6989586621679237781"><span class="hs-identifier hs-var">bytes</span></a><span>
</span><a name="line-166"></a><span>                </span><span class="hs-special">)</span><span>
</span><a name="line-167"></a><span>
</span><a name="line-168"></a><span>    </span><span class="hs-identifier">_mkDelegationJoinTx</span><span>
</span><a name="line-169"></a><span>        </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">PoolId</span><span>
-
</span><a name="line-170"></a><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679236385"><span class="hs-identifier hs-type">k</span></a><span> </span><span class="hs-special">'</span><span class="hs-identifier hs-type">AddressK</span><span> </span><span class="hs-identifier hs-type">XPrv</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">Passphrase</span><span> </span><span class="hs-string">&quot;encryption&quot;</span><span class="hs-special">)</span><span> </span><span class="hs-comment">-- reward account</span><span>
-
</span><a name="line-171"></a><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-type">Address</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">Maybe</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679236385"><span class="hs-identifier hs-type">k</span></a><span> </span><span class="hs-special">'</span><span class="hs-identifier hs-type">AddressK</span><span> </span><span class="hs-identifier hs-type">XPrv</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">Passphrase</span><span> </span><span class="hs-string">&quot;encryption&quot;</span><span class="hs-special">)</span><span class="hs-special">)</span><span>
+
</span><a name="line-170"></a><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679236817"><span class="hs-identifier hs-type">k</span></a><span> </span><span class="hs-special">'</span><span class="hs-identifier hs-type">AddressK</span><span> </span><span class="hs-identifier hs-type">XPrv</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">Passphrase</span><span> </span><span class="hs-string">&quot;encryption&quot;</span><span class="hs-special">)</span><span> </span><span class="hs-comment">-- reward account</span><span>
+
</span><a name="line-171"></a><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-type">Address</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">Maybe</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679236817"><span class="hs-identifier hs-type">k</span></a><span> </span><span class="hs-special">'</span><span class="hs-identifier hs-type">AddressK</span><span> </span><span class="hs-identifier hs-type">XPrv</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">Passphrase</span><span> </span><span class="hs-string">&quot;encryption&quot;</span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><a name="line-172"></a><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">[</span><span class="hs-special">(</span><span class="hs-identifier hs-type">TxIn</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">TxOut</span><span class="hs-special">)</span><span class="hs-special">]</span><span>
</span><a name="line-173"></a><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">[</span><span class="hs-identifier hs-type">TxOut</span><span class="hs-special">]</span><span>
</span><a name="line-174"></a><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">Either</span><span> </span><span class="hs-identifier hs-type">ErrMkTx</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-type">Tx</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">SealedTx</span><span class="hs-special">)</span><span>
-
</span><a name="line-175"></a><span>    </span><a name="local-6989586621679236392"><a href="#local-6989586621679236392"><span class="hs-identifier">_mkDelegationJoinTx</span></a></a><span> </span><span class="hs-glyph">=</span><span>
+
</span><a name="line-175"></a><span>    </span><a name="local-6989586621679236824"><a href="#local-6989586621679236824"><span class="hs-identifier">_mkDelegationJoinTx</span></a></a><span> </span><span class="hs-glyph">=</span><span>
</span><a name="line-176"></a><span>        </span><a href="Cardano.Wallet.Byron.Transaction.html#notImplemented"><span class="hs-identifier hs-var">notImplemented</span></a><span> </span><span class="hs-string">&quot;mkDelegationJoinTx&quot;</span><span>
</span><a name="line-177"></a><span>
</span><a name="line-178"></a><span>    </span><span class="hs-identifier">_mkDelegationQuitTx</span><span>
-
</span><a name="line-179"></a><span>        </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679236385"><span class="hs-identifier hs-type">k</span></a><span> </span><span class="hs-special">'</span><span class="hs-identifier hs-type">AddressK</span><span> </span><span class="hs-identifier hs-type">XPrv</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">Passphrase</span><span> </span><span class="hs-string">&quot;encryption&quot;</span><span class="hs-special">)</span><span> </span><span class="hs-comment">-- reward account</span><span>
-
</span><a name="line-180"></a><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-type">Address</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">Maybe</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679236385"><span class="hs-identifier hs-type">k</span></a><span> </span><span class="hs-special">'</span><span class="hs-identifier hs-type">AddressK</span><span> </span><span class="hs-identifier hs-type">XPrv</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">Passphrase</span><span> </span><span class="hs-string">&quot;encryption&quot;</span><span class="hs-special">)</span><span class="hs-special">)</span><span>
+
</span><a name="line-179"></a><span>        </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679236817"><span class="hs-identifier hs-type">k</span></a><span> </span><span class="hs-special">'</span><span class="hs-identifier hs-type">AddressK</span><span> </span><span class="hs-identifier hs-type">XPrv</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">Passphrase</span><span> </span><span class="hs-string">&quot;encryption&quot;</span><span class="hs-special">)</span><span> </span><span class="hs-comment">-- reward account</span><span>
+
</span><a name="line-180"></a><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-type">Address</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">Maybe</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679236817"><span class="hs-identifier hs-type">k</span></a><span> </span><span class="hs-special">'</span><span class="hs-identifier hs-type">AddressK</span><span> </span><span class="hs-identifier hs-type">XPrv</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">Passphrase</span><span> </span><span class="hs-string">&quot;encryption&quot;</span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><a name="line-181"></a><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">[</span><span class="hs-special">(</span><span class="hs-identifier hs-type">TxIn</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">TxOut</span><span class="hs-special">)</span><span class="hs-special">]</span><span>
</span><a name="line-182"></a><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">[</span><span class="hs-identifier hs-type">TxOut</span><span class="hs-special">]</span><span>
</span><a name="line-183"></a><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">Either</span><span> </span><span class="hs-identifier hs-type">ErrMkTx</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-type">Tx</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">SealedTx</span><span class="hs-special">)</span><span>
-
</span><a name="line-184"></a><span>    </span><a name="local-6989586621679236393"><a href="#local-6989586621679236393"><span class="hs-identifier">_mkDelegationQuitTx</span></a></a><span> </span><span class="hs-glyph">=</span><span>
+
</span><a name="line-184"></a><span>    </span><a name="local-6989586621679236825"><a href="#local-6989586621679236825"><span class="hs-identifier">_mkDelegationQuitTx</span></a></a><span> </span><span class="hs-glyph">=</span><span>
</span><a name="line-185"></a><span>        </span><a href="Cardano.Wallet.Byron.Transaction.html#notImplemented"><span class="hs-identifier hs-var">notImplemented</span></a><span> </span><span class="hs-string">&quot;mkDelegationQuitTx&quot;</span><span>
</span><a name="line-186"></a><span>
</span><a name="line-187"></a><span class="hs-comment">--------------------------------------------------------------------------------</span><span>
</span><a name="line-192"></a><span class="hs-keyword">data</span><span> </span><a name="ErrInvalidTxOutAmount"><a href="Cardano.Wallet.Byron.Transaction.html#ErrInvalidTxOutAmount"><span class="hs-identifier">ErrInvalidTxOutAmount</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><a name="ErrInvalidTxOutAmount"><a href="Cardano.Wallet.Byron.Transaction.html#ErrInvalidTxOutAmount"><span class="hs-identifier">ErrInvalidTxOutAmount</span></a></a><span>
</span><a name="line-193"></a><span>
</span><a name="line-194"></a><span class="hs-keyword">instance</span><span> </span><span class="hs-identifier hs-type">Buildable</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.html#ErrInvalidTxOutAmount"><span class="hs-identifier hs-type">ErrInvalidTxOutAmount</span></a><span> </span><span class="hs-keyword">where</span><span>
-
</span><a name="line-195"></a><span>    </span><a name="local-8214565720324008244"><span class="hs-identifier">build</span></a><span> </span><span class="hs-identifier">_</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-string">&quot;Invalid coin selection: at least one output is null.&quot;</span><span>
+
</span><a name="line-195"></a><span>    </span><a name="local-8214565720324007797"><span class="hs-identifier">build</span></a><span> </span><span class="hs-identifier">_</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-string">&quot;Invalid coin selection: at least one output is null.&quot;</span><span>
</span><a name="line-196"></a><span>
</span><a name="line-197"></a><span class="hs-keyword">type</span><span> </span><span class="hs-keyword">instance</span><span> </span><span class="hs-identifier hs-type">ErrValidateSelection</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-type">IO</span><span> </span><a href="Cardano.Wallet.Byron.Compatibility.html#Byron"><span class="hs-identifier hs-type">Byron</span></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.html#ErrInvalidTxOutAmount"><span class="hs-identifier hs-type">ErrInvalidTxOutAmount</span></a><span>
</span><a name="line-198"></a><span>
</span><a name="line-201"></a><span class="hs-comment">--</span><span>
</span><a name="line-202"></a><span>
</span><a name="line-203"></a><span class="hs-identifier">dummyAddress</span><span>
-
</span><a name="line-204"></a><span>    </span><span class="hs-glyph">::</span><span> </span><span class="hs-keyword">forall</span><span> </span><span class="hs-special">(</span><a name="local-6989586621679236382"><a href="#local-6989586621679236382"><span class="hs-identifier">n</span></a></a><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">NetworkDiscriminant</span><span class="hs-special">)</span><span> </span><a name="local-6989586621679236383"><a href="#local-6989586621679236383"><span class="hs-identifier">k</span></a></a><span class="hs-operator">.</span><span> </span><span class="hs-special">(</span><a href="Cardano.Wallet.Byron.Transaction.Size.html#WorstSizeOf"><span class="hs-identifier hs-type">WorstSizeOf</span></a><span> </span><span class="hs-identifier hs-type">Address</span><span> </span><a href="#local-6989586621679236382"><span class="hs-identifier hs-type">n</span></a><span> </span><a href="#local-6989586621679236383"><span class="hs-identifier hs-type">k</span></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">=&gt;</span><span> </span><span class="hs-identifier hs-type">Address</span><span>
+
</span><a name="line-204"></a><span>    </span><span class="hs-glyph">::</span><span> </span><span class="hs-keyword">forall</span><span> </span><span class="hs-special">(</span><a name="local-6989586621679236814"><a href="#local-6989586621679236814"><span class="hs-identifier">n</span></a></a><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">NetworkDiscriminant</span><span class="hs-special">)</span><span> </span><a name="local-6989586621679236815"><a href="#local-6989586621679236815"><span class="hs-identifier">k</span></a></a><span class="hs-operator">.</span><span> </span><span class="hs-special">(</span><a href="Cardano.Wallet.Byron.Transaction.Size.html#WorstSizeOf"><span class="hs-identifier hs-type">WorstSizeOf</span></a><span> </span><span class="hs-identifier hs-type">Address</span><span> </span><a href="#local-6989586621679236814"><span class="hs-identifier hs-type">n</span></a><span> </span><a href="#local-6989586621679236815"><span class="hs-identifier hs-type">k</span></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">=&gt;</span><span> </span><span class="hs-identifier hs-type">Address</span><span>
</span><a name="line-205"></a><a name="dummyAddress"><a href="Cardano.Wallet.Byron.Transaction.html#dummyAddress"><span class="hs-identifier">dummyAddress</span></a></a><span> </span><span class="hs-glyph">=</span><span>
-
</span><a name="line-206"></a><span>    </span><span class="hs-identifier hs-var">Address</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">BS.replicate</span><span> </span><span class="hs-special">(</span><a href="Cardano.Wallet.Byron.Transaction.Size.html#worstSizeOf"><span class="hs-identifier hs-var">worstSizeOf</span></a><span> </span><span class="hs-glyph">@</span><span class="hs-identifier hs-type">Address</span><span> </span><span class="hs-glyph">@</span><a href="#local-6989586621679236382"><span class="hs-identifier hs-type">n</span></a><span> </span><span class="hs-glyph">@</span><a href="#local-6989586621679236383"><span class="hs-identifier hs-type">k</span></a><span class="hs-special">)</span><span> </span><span class="hs-number">0</span><span>
+
</span><a name="line-206"></a><span>    </span><span class="hs-identifier hs-var">Address</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">BS.replicate</span><span> </span><span class="hs-special">(</span><a href="Cardano.Wallet.Byron.Transaction.Size.html#worstSizeOf"><span class="hs-identifier hs-var">worstSizeOf</span></a><span> </span><span class="hs-glyph">@</span><span class="hs-identifier hs-type">Address</span><span> </span><span class="hs-glyph">@</span><a href="#local-6989586621679236814"><span class="hs-identifier hs-type">n</span></a><span> </span><span class="hs-glyph">@</span><a href="#local-6989586621679236815"><span class="hs-identifier hs-type">k</span></a><span class="hs-special">)</span><span> </span><span class="hs-number">0</span><span>
</span><a name="line-207"></a><span>
</span><a name="line-208"></a><span class="hs-identifier">mkWitness</span><span>
-
</span><a name="line-209"></a><span>    </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">WalletKey</span><span> </span><a href="#local-6989586621679236381"><span class="hs-identifier hs-type">k</span></a><span>
+
</span><a name="line-209"></a><span>    </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">WalletKey</span><span> </span><a href="#local-6989586621679236813"><span class="hs-identifier hs-type">k</span></a><span>
</span><a name="line-210"></a><span>    </span><span class="hs-glyph">=&gt;</span><span> </span><span class="hs-identifier hs-type">ByteString</span><span>
-
</span><a name="line-211"></a><span>    </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679236381"><span class="hs-identifier hs-type">k</span></a><span> </span><span class="hs-special">'</span><span class="hs-identifier hs-type">AddressK</span><span> </span><span class="hs-identifier hs-type">XPrv</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">Passphrase</span><span> </span><span class="hs-string">&quot;encryption&quot;</span><span class="hs-special">)</span><span>
+
</span><a name="line-211"></a><span>    </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(</span><a href="#local-6989586621679236813"><span class="hs-identifier hs-type">k</span></a><span> </span><span class="hs-special">'</span><span class="hs-identifier hs-type">AddressK</span><span> </span><span class="hs-identifier hs-type">XPrv</span><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-type">Passphrase</span><span> </span><span class="hs-string">&quot;encryption&quot;</span><span class="hs-special">)</span><span>
</span><a name="line-212"></a><span>    </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">ByteString</span><span>
-
</span><a name="line-213"></a><a name="mkWitness"><a href="Cardano.Wallet.Byron.Transaction.html#mkWitness"><span class="hs-identifier">mkWitness</span></a></a><span> </span><a name="local-6989586621679237360"><a href="#local-6989586621679237360"><span class="hs-identifier">sigData</span></a></a><span> </span><span class="hs-special">(</span><a name="local-6989586621679237361"><a href="#local-6989586621679237361"><span class="hs-identifier">xPrv</span></a></a><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-var">Passphrase</span><span> </span><a name="local-6989586621679237362"><a href="#local-6989586621679237362"><span class="hs-identifier">pwd</span></a></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">CBOR.toStrictByteString</span><span>
-
</span><a name="line-214"></a><span>    </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">CBOR.encodePublicKeyWitness</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">getRawKey</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">publicKey</span><span> </span><a href="#local-6989586621679237361"><span class="hs-identifier hs-var">xPrv</span></a><span class="hs-special">)</span><span>
-
</span><a name="line-215"></a><span>    </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier">CC.unXSignature</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">CC.sign</span><span> </span><a href="#local-6989586621679237362"><span class="hs-identifier hs-var">pwd</span></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">getRawKey</span><span> </span><a href="#local-6989586621679237361"><span class="hs-identifier hs-var">xPrv</span></a><span class="hs-special">)</span><span> </span><a href="#local-6989586621679237363"><span class="hs-identifier hs-var">message</span></a><span class="hs-special">)</span><span>
+
</span><a name="line-213"></a><a name="mkWitness"><a href="Cardano.Wallet.Byron.Transaction.html#mkWitness"><span class="hs-identifier">mkWitness</span></a></a><span> </span><a name="local-6989586621679237792"><a href="#local-6989586621679237792"><span class="hs-identifier">sigData</span></a></a><span> </span><span class="hs-special">(</span><a name="local-6989586621679237793"><a href="#local-6989586621679237793"><span class="hs-identifier">xPrv</span></a></a><span class="hs-special">,</span><span> </span><span class="hs-identifier hs-var">Passphrase</span><span> </span><a name="local-6989586621679237794"><a href="#local-6989586621679237794"><span class="hs-identifier">pwd</span></a></a><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">CBOR.toStrictByteString</span><span>
+
</span><a name="line-214"></a><span>    </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">CBOR.encodePublicKeyWitness</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">getRawKey</span><span> </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier hs-var">publicKey</span><span> </span><a href="#local-6989586621679237793"><span class="hs-identifier hs-var">xPrv</span></a><span class="hs-special">)</span><span>
+
</span><a name="line-215"></a><span>    </span><span class="hs-operator hs-var">$</span><span> </span><span class="hs-identifier">CC.unXSignature</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">CC.sign</span><span> </span><a href="#local-6989586621679237794"><span class="hs-identifier hs-var">pwd</span></a><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">getRawKey</span><span> </span><a href="#local-6989586621679237793"><span class="hs-identifier hs-var">xPrv</span></a><span class="hs-special">)</span><span> </span><a href="#local-6989586621679237795"><span class="hs-identifier hs-var">message</span></a><span class="hs-special">)</span><span>
</span><a name="line-216"></a><span>  </span><span class="hs-keyword">where</span><span>
-
</span><a name="line-217"></a><span>    </span><a name="local-6989586621679237363"><a href="#local-6989586621679237363"><span class="hs-identifier">message</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-string">&quot;\x01&quot;</span><span> </span><span class="hs-operator hs-var">&lt;&gt;</span><span> </span><a href="#local-6989586621679237364"><span class="hs-identifier hs-var">pm</span></a><span> </span><span class="hs-operator hs-var">&lt;&gt;</span><span> </span><span class="hs-identifier hs-var">CBOR.toStrictByteString</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">CBOR.encodeBytes</span><span> </span><a href="#local-6989586621679237360"><span class="hs-identifier hs-var">sigData</span></a><span class="hs-special">)</span><span>
-
</span><a name="line-218"></a><span>    </span><a name="local-6989586621679237364"><a href="#local-6989586621679237364"><span class="hs-identifier">pm</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.html#notImplemented"><span class="hs-identifier hs-var">notImplemented</span></a><span> </span><span class="hs-string">&quot;protocolMagic&quot;</span><span>
+
</span><a name="line-217"></a><span>    </span><a name="local-6989586621679237795"><a href="#local-6989586621679237795"><span class="hs-identifier">message</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-string">&quot;\x01&quot;</span><span> </span><span class="hs-operator hs-var">&lt;&gt;</span><span> </span><a href="#local-6989586621679237796"><span class="hs-identifier hs-var">pm</span></a><span> </span><span class="hs-operator hs-var">&lt;&gt;</span><span> </span><span class="hs-identifier hs-var">CBOR.toStrictByteString</span><span> </span><span class="hs-special">(</span><span class="hs-identifier hs-var">CBOR.encodeBytes</span><span> </span><a href="#local-6989586621679237792"><span class="hs-identifier hs-var">sigData</span></a><span class="hs-special">)</span><span>
+
</span><a name="line-218"></a><span>    </span><a name="local-6989586621679237796"><a href="#local-6989586621679237796"><span class="hs-identifier">pm</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><a href="Cardano.Wallet.Byron.Transaction.html#notImplemented"><span class="hs-identifier hs-var">notImplemented</span></a><span> </span><span class="hs-string">&quot;protocolMagic&quot;</span><span>
</span><a name="line-219"></a><span>        </span><span class="hs-comment">-- CBOR.toStrictByteString . CBOR.encodeInt32 $ x</span><span>
</span><a name="line-220"></a><span>        </span><span class="hs-comment">-- let ProtocolMagic x = protocolMagic @n in</span><span>
</span><a name="line-221"></a><span>
</span><a name="line-222"></a><span class="hs-identifier">blake2b256</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">CBOR.Encoding</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier hs-type">ByteString</span><span>
</span><a name="line-223"></a><a name="blake2b256"><a href="Cardano.Wallet.Byron.Transaction.html#blake2b256"><span class="hs-identifier">blake2b256</span></a></a><span> </span><span class="hs-glyph">=</span><span>
</span><a name="line-224"></a><span>    </span><span class="hs-identifier hs-var">BA.convert</span><span> </span><span class="hs-operator hs-var">.</span><span> </span><span class="hs-identifier hs-var">hash</span><span> </span><span class="hs-glyph">@</span><span class="hs-identifier">_</span><span> </span><span class="hs-glyph">@</span><span class="hs-identifier hs-type">Blake2b_256</span><span> </span><span class="hs-operator hs-var">.</span><span> </span><span class="hs-identifier hs-var">CBOR.toStrictByteString</span><span>
</span><a name="line-225"></a><span>
-
</span><a name="line-226"></a><span class="hs-identifier">notImplemented</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">HasCallStack</span><span> </span><span class="hs-glyph">=&gt;</span><span> </span><span class="hs-identifier hs-type">String</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><a href="#local-6989586621679236380"><span class="hs-identifier hs-type">a</span></a><span>
-
</span><a name="line-227"></a><a name="notImplemented"><a href="Cardano.Wallet.Byron.Transaction.html#notImplemented"><span class="hs-identifier">notImplemented</span></a></a><span> </span><a name="local-6989586621679237366"><a href="#local-6989586621679237366"><span class="hs-identifier">what</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">error</span><span> </span><span class="hs-special">(</span><span class="hs-string">&quot;Not implemented: &quot;</span><span> </span><span class="hs-operator hs-var">&lt;&gt;</span><span> </span><a href="#local-6989586621679237366"><span class="hs-identifier hs-var">what</span></a><span class="hs-special">)</span><span>
+
</span><a name="line-226"></a><span class="hs-identifier">notImplemented</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier hs-type">HasCallStack</span><span> </span><span class="hs-glyph">=&gt;</span><span> </span><span class="hs-identifier hs-type">String</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><a href="#local-6989586621679236812"><span class="hs-identifier hs-type">a</span></a><span>
+
</span><a name="line-227"></a><a name="notImplemented"><a href="Cardano.Wallet.Byron.Transaction.html#notImplemented"><span class="hs-identifier">notImplemented</span></a></a><span> </span><a name="local-6989586621679237798"><a href="#local-6989586621679237798"><span class="hs-identifier">what</span></a></a><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier hs-var">error</span><span> </span><span class="hs-special">(</span><span class="hs-string">&quot;Not implemented: &quot;</span><span> </span><span class="hs-operator hs-var">&lt;&gt;</span><span> </span><a href="#local-6989586621679237798"><span class="hs-identifier hs-var">what</span></a><span class="hs-special">)</span><span>
</span><a name="line-228"></a></pre></body></html>
\ No newline at end of file

                      
module Cardano.Wallet.Network
data NetworkLayer m target block
-
NetworkLayer :: (Cursor target -> ExceptT ErrGetBlock m (NextBlocksResult target block)) -> ([BlockHeader] -> m (Cursor target)) -> (Cursor target -> SlotId) -> ExceptT ErrCurrentNodeTip m BlockHeader -> (SealedTx -> ExceptT ErrPostTx m ()) -> (block, BlockchainParameters) -> ExceptT ErrNetworkUnavailable m (EpochNo, Map PoolId (Quantity "lovelace" Word64)) -> (ChimericAccount -> ExceptT ErrGetAccountBalance m (Quantity "lovelace" Word64)) -> NetworkLayer m target block
+
NetworkLayer :: (Cursor target -> ExceptT ErrGetBlock m (NextBlocksResult (Cursor target) block)) -> ([BlockHeader] -> m (Cursor target)) -> (Cursor target -> SlotId) -> ExceptT ErrCurrentNodeTip m BlockHeader -> (SealedTx -> ExceptT ErrPostTx m ()) -> (block, BlockchainParameters) -> ExceptT ErrNetworkUnavailable m (EpochNo, Map PoolId (Quantity "lovelace" Word64)) -> (ChimericAccount -> ExceptT ErrGetAccountBalance m (Quantity "lovelace" Word64)) -> NetworkLayer m target block

                      
-- | Starting from the given <a>Cursor</a>, fetches a contiguous sequence
--   of blocks from the node, if they are available. An updated cursor will
--   
--   If the node has adopted an alternate fork of the chain, it will return
--   <a>RollBackward</a> with a new cursor.
-
[nextBlocks] :: NetworkLayer m target block -> Cursor target -> ExceptT ErrGetBlock m (NextBlocksResult target block)
+
[nextBlocks] :: NetworkLayer m target block -> Cursor target -> ExceptT ErrGetBlock m (NextBlocksResult (Cursor target) block)

                      
-- | Creates a cursor from the given block header so that <a>nextBlocks</a>
--   can be used to fetch blocks.

                      
-- | The result of <a>nextBlocks</a>, which is instructions for what the
--   chain consumer should do next.
-
data NextBlocksResult target block
+
data NextBlocksResult cursor block

                      
-- | There are no blocks available from the node, so wait.
-
AwaitReply :: NextBlocksResult target block
+
AwaitReply :: NextBlocksResult cursor block

                      
-- | Apply the given contiguous non-empty sequence of blocks. Use the
--   updated cursor to get the next batch. The given block header is the
--   current tip of the node.
-
RollForward :: Cursor target -> BlockHeader -> [block] -> NextBlocksResult target block
+
RollForward :: cursor -> BlockHeader -> [block] -> NextBlocksResult cursor block

                      
-- | The chain consumer must roll back its state, then use the cursor to
--   get the next batch of blocks.
-
RollBackward :: Cursor target -> NextBlocksResult target block
+
RollBackward :: cursor -> NextBlocksResult cursor block
+
mapCursor :: (a -> b) -> NextBlocksResult a block -> NextBlocksResult b block

                      
-- | A cursor is local state kept by the chain consumer to use as the
--   starting position for <a>nextBlocks</a>. The actual type is opaque and
instance Cardano.BM.Data.Tracer.DefinePrivacyAnnotation Cardano.Wallet.Network.FollowLog
instance Cardano.BM.Data.Tracer.DefineSeverity Cardano.Wallet.Network.FollowLog
instance GHC.Base.Functor m => GHC.Base.Functor (Cardano.Wallet.Network.NetworkLayer m target)
-
instance GHC.Base.Functor (Cardano.Wallet.Network.NextBlocksResult target)
+
instance GHC.Base.Functor (Cardano.Wallet.Network.NextBlocksResult cursor)
instance GHC.Exception.Type.Exception Cardano.Wallet.Network.ErrPostTx
instance GHC.Exception.Type.Exception Cardano.Wallet.Network.ErrCurrentNodeTip
instance GHC.Exception.Type.Exception Cardano.Wallet.Network.ErrNetworkUnavailable
Diff too large – View on GitHub