mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 09:46:12 +00:00
135 lines
26 KiB
HTML
135 lines
26 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/messagesigner.cpp 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&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
|
|
 <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&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&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&dn=gpl-2.0.txt GPL-v2 */
|
|
$(document).ready(function(){initNavTree('messagesigner_8cpp_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">messagesigner.cpp</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="messagesigner_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Copyright (c) 2014-2017 The Dash Core developers</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// Distributed under the MIT/X11 software license, see the accompanying</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// file COPYING or http://www.opensource.org/licenses/mit-license.php.</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> </div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#include "<a class="code" href="base58_8h.html">base58.h</a>"</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="preprocessor">#include "<a class="code" href="hash_8h.html">hash.h</a>"</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#include "<a class="code" href="validation_8h.html">validation.h</a>"</span> <span class="comment">// For strMessageMagic</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#include "<a class="code" href="messagesigner_8h.html">messagesigner.h</a>"</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor">#include "<a class="code" href="tinyformat_8h.html">tinyformat.h</a>"</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#include "<a class="code" href="utilstrencodings_8h.html">utilstrencodings.h</a>"</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> </div><div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="classCMessageSigner.html#a19e001b31704eef8c0cf4a885be138cd"> 12</a></span> <span class="keywordtype">bool</span> <a class="code" href="classCMessageSigner.html#a19e001b31704eef8c0cf4a885be138cd">CMessageSigner::GetKeysFromSecret</a>(<span class="keyword">const</span> std::string strSecret, <a class="code" href="classCKey.html">CKey</a>& keyRet, <a class="code" href="classCPubKey.html">CPubKey</a>& pubkeyRet)</div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> {</div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>  <a class="code" href="classCBitcoinSecret.html">CBitcoinSecret</a> vchSecret;</div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> </div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>  <span class="keywordflow">if</span>(!vchSecret.<a class="code" href="classCBitcoinSecret.html#a6a8aff02f66099f33f573ad3e6375bb1">SetString</a>(strSecret)) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> </div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  keyRet = vchSecret.<a class="code" href="classCBitcoinSecret.html#a4d6bf559d092e6d47f8001c7171096df">GetKey</a>();</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  pubkeyRet = keyRet.<a class="code" href="classCKey.html#aa1085c59603a62db6ec776300f250337">GetPubKey</a>();</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> </div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> }</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> </div><div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="classCMessageSigner.html#a667ae72604fd6a0da8d9d53c55523ff0"> 24</a></span> <span class="keywordtype">bool</span> <a class="code" href="classCMessageSigner.html#a667ae72604fd6a0da8d9d53c55523ff0">CMessageSigner::SignMessage</a>(<span class="keyword">const</span> std::string strMessage, std::vector<unsigned char>& vchSigRet, <span class="keyword">const</span> <a class="code" href="classCKey.html">CKey</a> <a class="code" href="namespaceextract__strings__qt.html#a1b7a78cde0039f63310f11692b713dca">key</a>)</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> {</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  <a class="code" href="classCHashWriter.html">CHashWriter</a> ss(<a class="code" href="serialize_8h.html#ae4d5251432e1a9e6803c0240cc492e18aca6c7596d50ce42f28b5b97f39ba178a">SER_GETHASH</a>, 0);</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  ss << <a class="code" href="validation_8cpp.html#a1cad9567b6474e6096232b14ed6a8476">strMessageMagic</a>;</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  ss << strMessage;</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <span class="keywordflow">return</span> <a class="code" href="classCHashSigner.html#a283dca9acf09fcfa28cc4541ab211466">CHashSigner::SignHash</a>(ss.<a class="code" href="classCHashWriter.html#ae94a937211502eabf19477630090093a">GetHash</a>(), <a class="code" href="namespaceextract__strings__qt.html#a1b7a78cde0039f63310f11692b713dca">key</a>, vchSigRet);</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> }</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> </div><div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="classCMessageSigner.html#ab4189ffcd1472cac33f99a425faa4cec"> 33</a></span> <span class="keywordtype">bool</span> <a class="code" href="classCMessageSigner.html#ab4189ffcd1472cac33f99a425faa4cec">CMessageSigner::VerifyMessage</a>(<span class="keyword">const</span> <a class="code" href="classCPubKey.html">CPubKey</a> pubkey, <span class="keyword">const</span> std::vector<unsigned char>& vchSig, <span class="keyword">const</span> std::string strMessage, std::string& strErrorRet)</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> {</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <a class="code" href="classCHashWriter.html">CHashWriter</a> ss(<a class="code" href="serialize_8h.html#ae4d5251432e1a9e6803c0240cc492e18aca6c7596d50ce42f28b5b97f39ba178a">SER_GETHASH</a>, 0);</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  ss << <a class="code" href="validation_8cpp.html#a1cad9567b6474e6096232b14ed6a8476">strMessageMagic</a>;</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  ss << strMessage;</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> </div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="keywordflow">return</span> <a class="code" href="classCHashSigner.html#a941bca56ae42ff938656c805a1ddc78e">CHashSigner::VerifyHash</a>(ss.<a class="code" href="classCHashWriter.html#ae94a937211502eabf19477630090093a">GetHash</a>(), pubkey, vchSig, strErrorRet);</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> }</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span> </div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="classCHashSigner.html#a283dca9acf09fcfa28cc4541ab211466"> 42</a></span> <span class="keywordtype">bool</span> <a class="code" href="classCHashSigner.html#a283dca9acf09fcfa28cc4541ab211466">CHashSigner::SignHash</a>(<span class="keyword">const</span> <a class="code" href="classuint256.html">uint256</a>& hash, <span class="keyword">const</span> <a class="code" href="classCKey.html">CKey</a> <a class="code" href="namespaceextract__strings__qt.html#a1b7a78cde0039f63310f11692b713dca">key</a>, std::vector<unsigned char>& vchSigRet)</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> {</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceextract__strings__qt.html#a1b7a78cde0039f63310f11692b713dca">key</a>.SignCompact(hash, vchSigRet);</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> }</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span> </div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="classCHashSigner.html#a941bca56ae42ff938656c805a1ddc78e"> 47</a></span> <span class="keywordtype">bool</span> <a class="code" href="classCHashSigner.html#a941bca56ae42ff938656c805a1ddc78e">CHashSigner::VerifyHash</a>(<span class="keyword">const</span> <a class="code" href="classuint256.html">uint256</a>& hash, <span class="keyword">const</span> <a class="code" href="classCPubKey.html">CPubKey</a> pubkey, <span class="keyword">const</span> std::vector<unsigned char>& vchSig, std::string& strErrorRet)</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span> {</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <a class="code" href="classCPubKey.html">CPubKey</a> pubkeyFromSig;</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keywordflow">if</span>(!pubkeyFromSig.<a class="code" href="classCPubKey.html#a169505e735a02db385486b0affeb565c">RecoverCompact</a>(hash, vchSig)) {</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  strErrorRet = <span class="stringliteral">"Error recovering public key."</span>;</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  }</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span> </div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="keywordflow">if</span>(pubkeyFromSig.<a class="code" href="classCPubKey.html#a2675f7e6f72eff68e7a5227289feb021">GetID</a>() != pubkey.<a class="code" href="classCPubKey.html#a2675f7e6f72eff68e7a5227289feb021">GetID</a>()) {</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  strErrorRet = <a class="code" href="tinyformat_8h.html#a56c674871a61baaad36ad52238c08857">strprintf</a>(<span class="stringliteral">"Keys don't match: pubkey=%s, pubkeyFromSig=%s, hash=%s, vchSig=%s"</span>,</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  pubkey.<a class="code" href="classCPubKey.html#a2675f7e6f72eff68e7a5227289feb021">GetID</a>().<a class="code" href="classbase__blob.html#a7a0d25782830d8b087c4da839f3ccdeb">ToString</a>(), pubkeyFromSig.<a class="code" href="classCPubKey.html#a2675f7e6f72eff68e7a5227289feb021">GetID</a>().<a class="code" href="classbase__blob.html#a7a0d25782830d8b087c4da839f3ccdeb">ToString</a>(), hash.<a class="code" href="classbase__blob.html#a7a0d25782830d8b087c4da839f3ccdeb">ToString</a>(),</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <a class="code" href="utilstrencodings_8cpp.html#a5e074135870a6fdfae4ac02047bc0432">EncodeBase64</a>(&vchSig[0], vchSig.size()));</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  }</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span> </div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span> }</div><div class="ttc" id="classCBitcoinSecret_html_a6a8aff02f66099f33f573ad3e6375bb1"><div class="ttname"><a href="classCBitcoinSecret.html#a6a8aff02f66099f33f573ad3e6375bb1">CBitcoinSecret::SetString</a></div><div class="ttdeci">bool SetString(const char *pszSecret)</div><div class="ttdef"><b>Definition:</b> <a href="base58_8cpp_source.html#l00329">base58.cpp:329</a></div></div>
|
|
<div class="ttc" id="tinyformat_8h_html_a56c674871a61baaad36ad52238c08857"><div class="ttname"><a href="tinyformat_8h.html#a56c674871a61baaad36ad52238c08857">strprintf</a></div><div class="ttdeci">#define strprintf</div><div class="ttdef"><b>Definition:</b> <a href="tinyformat_8h_source.html#l01011">tinyformat.h:1011</a></div></div>
|
|
<div class="ttc" id="messagesigner_8h_html"><div class="ttname"><a href="messagesigner_8h.html">messagesigner.h</a></div></div>
|
|
<div class="ttc" id="validation_8h_html"><div class="ttname"><a href="validation_8h.html">validation.h</a></div></div>
|
|
<div class="ttc" id="hash_8h_html"><div class="ttname"><a href="hash_8h.html">hash.h</a></div></div>
|
|
<div class="ttc" id="classCPubKey_html_a2675f7e6f72eff68e7a5227289feb021"><div class="ttname"><a href="classCPubKey.html#a2675f7e6f72eff68e7a5227289feb021">CPubKey::GetID</a></div><div class="ttdeci">CKeyID GetID() const</div><div class="ttdoc">Get the KeyID of this public key (hash of its serialization) </div><div class="ttdef"><b>Definition:</b> <a href="pubkey_8h_source.html#l00144">pubkey.h:144</a></div></div>
|
|
<div class="ttc" id="utilstrencodings_8cpp_html_a5e074135870a6fdfae4ac02047bc0432"><div class="ttname"><a href="utilstrencodings_8cpp.html#a5e074135870a6fdfae4ac02047bc0432">EncodeBase64</a></div><div class="ttdeci">string EncodeBase64(const unsigned char *pch, size_t len)</div><div class="ttdef"><b>Definition:</b> <a href="utilstrencodings_8cpp_source.html#l00095">utilstrencodings.cpp:95</a></div></div>
|
|
<div class="ttc" id="classCPubKey_html_a169505e735a02db385486b0affeb565c"><div class="ttname"><a href="classCPubKey.html#a169505e735a02db385486b0affeb565c">CPubKey::RecoverCompact</a></div><div class="ttdeci">bool RecoverCompact(const uint256 &hash, const std::vector< unsigned char > &vchSig)</div><div class="ttdoc">Recover a public key from a compact signature. </div><div class="ttdef"><b>Definition:</b> <a href="pubkey_8cpp_source.html#l00187">pubkey.cpp:187</a></div></div>
|
|
<div class="ttc" id="classCHashWriter_html_ae94a937211502eabf19477630090093a"><div class="ttname"><a href="classCHashWriter.html#ae94a937211502eabf19477630090093a">CHashWriter::GetHash</a></div><div class="ttdeci">uint256 GetHash()</div><div class="ttdef"><b>Definition:</b> <a href="hash_8h_source.html#l00254">hash.h:254</a></div></div>
|
|
<div class="ttc" id="base58_8h_html"><div class="ttname"><a href="base58_8h.html">base58.h</a></div></div>
|
|
<div class="ttc" id="utilstrencodings_8h_html"><div class="ttname"><a href="utilstrencodings_8h.html">utilstrencodings.h</a></div></div>
|
|
<div class="ttc" id="classCMessageSigner_html_a19e001b31704eef8c0cf4a885be138cd"><div class="ttname"><a href="classCMessageSigner.html#a19e001b31704eef8c0cf4a885be138cd">CMessageSigner::GetKeysFromSecret</a></div><div class="ttdeci">static bool GetKeysFromSecret(const std::string strSecret, CKey &keyRet, CPubKey &pubkeyRet)</div><div class="ttdoc">Set the private/public key values, returns true if successful. </div><div class="ttdef"><b>Definition:</b> <a href="messagesigner_8cpp_source.html#l00012">messagesigner.cpp:12</a></div></div>
|
|
<div class="ttc" id="tinyformat_8h_html"><div class="ttname"><a href="tinyformat_8h.html">tinyformat.h</a></div></div>
|
|
<div class="ttc" id="classCMessageSigner_html_ab4189ffcd1472cac33f99a425faa4cec"><div class="ttname"><a href="classCMessageSigner.html#ab4189ffcd1472cac33f99a425faa4cec">CMessageSigner::VerifyMessage</a></div><div class="ttdeci">static bool VerifyMessage(const CPubKey pubkey, const std::vector< unsigned char > &vchSig, const std::string strMessage, std::string &strErrorRet)</div><div class="ttdoc">Verify the message signature, returns true if succcessful. </div><div class="ttdef"><b>Definition:</b> <a href="messagesigner_8cpp_source.html#l00033">messagesigner.cpp:33</a></div></div>
|
|
<div class="ttc" id="classbase__blob_html_a7a0d25782830d8b087c4da839f3ccdeb"><div class="ttname"><a href="classbase__blob.html#a7a0d25782830d8b087c4da839f3ccdeb">base_blob::ToString</a></div><div class="ttdeci">std::string ToString() const</div><div class="ttdef"><b>Definition:</b> <a href="uint256_8cpp_source.html#l00065">uint256.cpp:65</a></div></div>
|
|
<div class="ttc" id="classCHashSigner_html_a283dca9acf09fcfa28cc4541ab211466"><div class="ttname"><a href="classCHashSigner.html#a283dca9acf09fcfa28cc4541ab211466">CHashSigner::SignHash</a></div><div class="ttdeci">static bool SignHash(const uint256 &hash, const CKey key, std::vector< unsigned char > &vchSigRet)</div><div class="ttdoc">Sign the hash, returns true if successful. </div><div class="ttdef"><b>Definition:</b> <a href="messagesigner_8cpp_source.html#l00042">messagesigner.cpp:42</a></div></div>
|
|
<div class="ttc" id="classCBitcoinSecret_html_a4d6bf559d092e6d47f8001c7171096df"><div class="ttname"><a href="classCBitcoinSecret.html#a4d6bf559d092e6d47f8001c7171096df">CBitcoinSecret::GetKey</a></div><div class="ttdeci">CKey GetKey()</div><div class="ttdef"><b>Definition:</b> <a href="base58_8cpp_source.html#l00314">base58.cpp:314</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="classCBitcoinSecret_html"><div class="ttname"><a href="classCBitcoinSecret.html">CBitcoinSecret</a></div><div class="ttdef"><b>Definition:</b> <a href="base58_8h_source.html#l00126">base58.h:126</a></div></div>
|
|
<div class="ttc" id="classCHashSigner_html_a941bca56ae42ff938656c805a1ddc78e"><div class="ttname"><a href="classCHashSigner.html#a941bca56ae42ff938656c805a1ddc78e">CHashSigner::VerifyHash</a></div><div class="ttdeci">static bool VerifyHash(const uint256 &hash, const CPubKey pubkey, const std::vector< unsigned char > &vchSig, std::string &strErrorRet)</div><div class="ttdoc">Verify the hash signature, returns true if succcessful. </div><div class="ttdef"><b>Definition:</b> <a href="messagesigner_8cpp_source.html#l00047">messagesigner.cpp:47</a></div></div>
|
|
<div class="ttc" id="classCKey_html_aa1085c59603a62db6ec776300f250337"><div class="ttname"><a href="classCKey.html#aa1085c59603a62db6ec776300f250337">CKey::GetPubKey</a></div><div class="ttdeci">CPubKey GetPubKey() const</div><div class="ttdef"><b>Definition:</b> <a href="key_8cpp_source.html#l00156">key.cpp:156</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="classCMessageSigner_html_a667ae72604fd6a0da8d9d53c55523ff0"><div class="ttname"><a href="classCMessageSigner.html#a667ae72604fd6a0da8d9d53c55523ff0">CMessageSigner::SignMessage</a></div><div class="ttdeci">static bool SignMessage(const std::string strMessage, std::vector< unsigned char > &vchSigRet, const CKey key)</div><div class="ttdoc">Sign the message, returns true if successful. </div><div class="ttdef"><b>Definition:</b> <a href="messagesigner_8cpp_source.html#l00024">messagesigner.cpp:24</a></div></div>
|
|
<div class="ttc" id="serialize_8h_html_ae4d5251432e1a9e6803c0240cc492e18aca6c7596d50ce42f28b5b97f39ba178a"><div class="ttname"><a href="serialize_8h.html#ae4d5251432e1a9e6803c0240cc492e18aca6c7596d50ce42f28b5b97f39ba178a">SER_GETHASH</a></div><div class="ttdef"><b>Definition:</b> <a href="serialize_8h_source.html#l00172">serialize.h:172</a></div></div>
|
|
<div class="ttc" id="validation_8cpp_html_a1cad9567b6474e6096232b14ed6a8476"><div class="ttname"><a href="validation_8cpp.html#a1cad9567b6474e6096232b14ed6a8476">strMessageMagic</a></div><div class="ttdeci">const string strMessageMagic</div><div class="ttdef"><b>Definition:</b> <a href="validation_8cpp_source.html#l00109">validation.cpp:109</a></div></div>
|
|
<div class="ttc" id="classCKey_html"><div class="ttname"><a href="classCKey.html">CKey</a></div><div class="ttdef"><b>Definition:</b> <a href="key_8h_source.html#l00035">key.h:35</a></div></div>
|
|
<div class="ttc" id="classCHashWriter_html"><div class="ttname"><a href="classCHashWriter.html">CHashWriter</a></div><div class="ttdef"><b>Definition:</b> <a href="hash_8h_source.html#l00237">hash.h:237</a></div></div>
|
|
<div class="ttc" id="namespaceextract__strings__qt_html_a1b7a78cde0039f63310f11692b713dca"><div class="ttname"><a href="namespaceextract__strings__qt.html#a1b7a78cde0039f63310f11692b713dca">extract_strings_qt.key</a></div><div class="ttdeci">key</div><div class="ttdef"><b>Definition:</b> <a href="extract__strings__qt_8py_source.html#l00073">extract_strings_qt.py:73</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="messagesigner_8cpp.html">messagesigner.cpp</a></li>
|
|
<li class="footer">Generated on Thu Dec 14 2017 13:15:03 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>
|