mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 17:56:16 +00:00
119 lines
14 KiB
HTML
119 lines
14 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.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&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_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">messagesigner.h</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="messagesigner_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> <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">#ifndef MESSAGESIGNER_H</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="preprocessor">#define MESSAGESIGNER_H</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> </div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#include "<a class="code" href="key_8h.html">key.h</a>"</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> </div><div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="classCMessageSigner.html"> 12</a></span> <span class="keyword">class </span><a class="code" href="classCMessageSigner.html">CMessageSigner</a></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> <span class="keyword">public</span>:</div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>  <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classCMessageSigner.html#a19e001b31704eef8c0cf4a885be138cd">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="l00018"></a><span class="lineno"> 18</span>  <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classCMessageSigner.html#a667ae72604fd6a0da8d9d53c55523ff0">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="l00020"></a><span class="lineno"> 20</span>  <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classCMessageSigner.html#ab4189ffcd1472cac33f99a425faa4cec">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="l00021"></a><span class="lineno"> 21</span> };</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div><div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="classCHashSigner.html"> 25</a></span> <span class="keyword">class </span><a class="code" href="classCHashSigner.html">CHashSigner</a></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> {</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classCHashSigner.html#a283dca9acf09fcfa28cc4541ab211466">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="l00031"></a><span class="lineno"> 31</span>  <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classCHashSigner.html#a941bca56ae42ff938656c805a1ddc78e">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="l00032"></a><span class="lineno"> 32</span> };</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> </div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#endif</span></div><div class="ttc" id="classCHashSigner_html"><div class="ttname"><a href="classCHashSigner.html">CHashSigner</a></div><div class="ttdef"><b>Definition:</b> <a href="messagesigner_8h_source.html#l00025">messagesigner.h:25</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="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="classCMessageSigner_html"><div class="ttname"><a href="classCMessageSigner.html">CMessageSigner</a></div><div class="ttdef"><b>Definition:</b> <a href="messagesigner_8h_source.html#l00012">messagesigner.h:12</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="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="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="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="key_8h_html"><div class="ttname"><a href="key_8h.html">key.h</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="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_8h.html">messagesigner.h</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>
|