dash-docs/en/doxygen/html/sigcache_8h_source.html

117 lines
13 KiB
HTML

<!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/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Dash Core: src/script/sigcache.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="bitcoin_logo_doxygen.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Dash Core
&#160;<span id="projectnumber">0.12.2.1</span>
</div>
<div id="projectbrief">P2P Digital Currency</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('sigcache_8h_source.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="headertitle">
<div class="title">sigcache.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="sigcache_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">// Copyright (c) 2009-2010 Satoshi Nakamoto</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment">// Copyright (c) 2009-2015 The Bitcoin Core developers</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment">// Distributed under the MIT software license, see the accompanying</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment">// file COPYING or http://www.opensource.org/licenses/mit-license.php.</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;</div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="preprocessor">#ifndef BITCOIN_SCRIPT_SIGCACHE_H</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="preprocessor">#define BITCOIN_SCRIPT_SIGCACHE_H</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;</div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="interpreter_8h.html">script/interpreter.h</a>&quot;</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;</div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;</div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment">// DoS prevention: limit cache size to less than 40MB (over 500000</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment">// entries on 64-bit systems).</span></div><div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="sigcache_8h.html#ab5c5718451a42313f1cd8e1e076802c1"> 15</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="sigcache_8h.html#ab5c5718451a42313f1cd8e1e076802c1">DEFAULT_MAX_SIG_CACHE_SIZE</a> = 40;</div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;</div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="keyword">class </span><a class="code" href="classCPubKey.html">CPubKey</a>;</div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;</div><div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="classCachingTransactionSignatureChecker.html"> 19</a></span>&#160;<span class="keyword">class </span><a class="code" href="classCachingTransactionSignatureChecker.html">CachingTransactionSignatureChecker</a> : <span class="keyword">public</span> <a class="code" href="classTransactionSignatureChecker.html">TransactionSignatureChecker</a></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;{</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="classCachingTransactionSignatureChecker.html#a159328766da77e5d04e558f0c1c19750"> 22</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classCachingTransactionSignatureChecker.html#a159328766da77e5d04e558f0c1c19750">store</a>;</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="classCachingTransactionSignatureChecker.html#a43369b09574bd1ac6327b7933c030c4f"> 25</a></span>&#160; <a class="code" href="classCachingTransactionSignatureChecker.html#a43369b09574bd1ac6327b7933c030c4f">CachingTransactionSignatureChecker</a>(<span class="keyword">const</span> <a class="code" href="classCTransaction.html">CTransaction</a>* txToIn, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> nInIn, <span class="keywordtype">bool</span> storeIn=<span class="keyword">true</span>) : <a class="code" href="classTransactionSignatureChecker.html">TransactionSignatureChecker</a>(txToIn, nInIn), <a class="code" href="classCachingTransactionSignatureChecker.html#a159328766da77e5d04e558f0c1c19750">store</a>(storeIn) {}</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classCachingTransactionSignatureChecker.html#a8fb5c049a2f0ef3d4d3fbfeea88b7b53">VerifySignature</a>(<span class="keyword">const</span> std::vector&lt;unsigned char&gt;&amp; vchSig, <span class="keyword">const</span> <a class="code" href="classCPubKey.html">CPubKey</a>&amp; vchPubKey, <span class="keyword">const</span> <a class="code" href="classuint256.html">uint256</a>&amp; sighash) <span class="keyword">const</span>;</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;};</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="preprocessor">#endif // BITCOIN_SCRIPT_SIGCACHE_H</span></div><div class="ttc" id="sigcache_8h_html_ab5c5718451a42313f1cd8e1e076802c1"><div class="ttname"><a href="sigcache_8h.html#ab5c5718451a42313f1cd8e1e076802c1">DEFAULT_MAX_SIG_CACHE_SIZE</a></div><div class="ttdeci">static const unsigned int DEFAULT_MAX_SIG_CACHE_SIZE</div><div class="ttdef"><b>Definition:</b> <a href="sigcache_8h_source.html#l00015">sigcache.h:15</a></div></div>
<div class="ttc" id="interpreter_8h_html"><div class="ttname"><a href="interpreter_8h.html">interpreter.h</a></div></div>
<div class="ttc" id="classTransactionSignatureChecker_html"><div class="ttname"><a href="classTransactionSignatureChecker.html">TransactionSignatureChecker</a></div><div class="ttdef"><b>Definition:</b> <a href="interpreter_8h_source.html#l00116">interpreter.h:116</a></div></div>
<div class="ttc" id="classCTransaction_html"><div class="ttname"><a href="classCTransaction.html">CTransaction</a></div><div class="ttdef"><b>Definition:</b> <a href="transaction_8h_source.html#l00210">transaction.h:210</a></div></div>
<div class="ttc" id="classCachingTransactionSignatureChecker_html_a159328766da77e5d04e558f0c1c19750"><div class="ttname"><a href="classCachingTransactionSignatureChecker.html#a159328766da77e5d04e558f0c1c19750">CachingTransactionSignatureChecker::store</a></div><div class="ttdeci">bool store</div><div class="ttdef"><b>Definition:</b> <a href="sigcache_8h_source.html#l00022">sigcache.h:22</a></div></div>
<div class="ttc" id="classuint256_html"><div class="ttname"><a href="classuint256.html">uint256</a></div><div class="ttdef"><b>Definition:</b> <a href="uint256_8h_source.html#l00114">uint256.h:114</a></div></div>
<div class="ttc" id="classCachingTransactionSignatureChecker_html"><div class="ttname"><a href="classCachingTransactionSignatureChecker.html">CachingTransactionSignatureChecker</a></div><div class="ttdef"><b>Definition:</b> <a href="sigcache_8h_source.html#l00019">sigcache.h:19</a></div></div>
<div class="ttc" id="classCachingTransactionSignatureChecker_html_a43369b09574bd1ac6327b7933c030c4f"><div class="ttname"><a href="classCachingTransactionSignatureChecker.html#a43369b09574bd1ac6327b7933c030c4f">CachingTransactionSignatureChecker::CachingTransactionSignatureChecker</a></div><div class="ttdeci">CachingTransactionSignatureChecker(const CTransaction *txToIn, unsigned int nInIn, bool storeIn=true)</div><div class="ttdef"><b>Definition:</b> <a href="sigcache_8h_source.html#l00025">sigcache.h:25</a></div></div>
<div class="ttc" id="classCPubKey_html"><div class="ttname"><a href="classCPubKey.html">CPubKey</a></div><div class="ttdef"><b>Definition:</b> <a href="pubkey_8h_source.html#l00037">pubkey.h:37</a></div></div>
<div class="ttc" id="classCachingTransactionSignatureChecker_html_a8fb5c049a2f0ef3d4d3fbfeea88b7b53"><div class="ttname"><a href="classCachingTransactionSignatureChecker.html#a8fb5c049a2f0ef3d4d3fbfeea88b7b53">CachingTransactionSignatureChecker::VerifySignature</a></div><div class="ttdeci">bool VerifySignature(const std::vector&lt; unsigned char &gt; &amp;vchSig, const CPubKey &amp;vchPubKey, const uint256 &amp;sighash) const</div><div class="ttdef"><b>Definition:</b> <a href="sigcache_8cpp_source.html#l00092">sigcache.cpp:92</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_fe414d616bd0c4668e6515f48824338f.html">script</a></li><li class="navelem"><a class="el" href="sigcache_8h.html">sigcache.h</a></li>
<li class="footer">Generated on Thu Dec 14 2017 13:15:08 for Dash Core by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
</ul>
</div>
</body>
</html>