Files
rippled/classripple_1_1cryptoconditions_1_1PreimageSha256.html
2021-03-12 22:34:28 +00:00

502 lines
28 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>rippled: ripple::cryptoconditions::PreimageSha256 Class Reference</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="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="projectalign" style="padding-left: 0.5em;">
<div id="projectname">rippled
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<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>
<!-- 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 id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespaceripple.html">ripple</a></li><li class="navelem"><a class="el" href="namespaceripple_1_1cryptoconditions.html">cryptoconditions</a></li><li class="navelem"><a class="el" href="classripple_1_1cryptoconditions_1_1PreimageSha256.html">PreimageSha256</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="classripple_1_1cryptoconditions_1_1PreimageSha256-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">ripple::cryptoconditions::PreimageSha256 Class Reference<span class="mlabels"><span class="mlabel">final</span></span></div> </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for ripple::cryptoconditions::PreimageSha256:</div>
<div class="dyncontent">
<div class="center"><img src="classripple_1_1cryptoconditions_1_1PreimageSha256__inherit__graph.png" border="0" usemap="#ripple_1_1cryptoconditions_1_1PreimageSha256_inherit__map" alt="Inheritance graph"/></div>
<map name="ripple_1_1cryptoconditions_1_1PreimageSha256_inherit__map" id="ripple_1_1cryptoconditions_1_1PreimageSha256_inherit__map">
<area shape="rect" title=" " alt="" coords="5,95,180,136"/>
<area shape="rect" href="structripple_1_1cryptoconditions_1_1Fulfillment.html" title=" " alt="" coords="5,5,180,47"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<div class="dynheader">
Collaboration diagram for ripple::cryptoconditions::PreimageSha256:</div>
<div class="dyncontent">
<div class="center"><img src="classripple_1_1cryptoconditions_1_1PreimageSha256__coll__graph.png" border="0" usemap="#ripple_1_1cryptoconditions_1_1PreimageSha256_coll__map" alt="Collaboration graph"/></div>
<map name="ripple_1_1cryptoconditions_1_1PreimageSha256_coll__map" id="ripple_1_1cryptoconditions_1_1PreimageSha256_coll__map">
<area shape="rect" title=" " alt="" coords="167,303,342,344"/>
<area shape="rect" href="structripple_1_1cryptoconditions_1_1Fulfillment.html" title=" " alt="" coords="167,199,342,240"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/types/size_t.html" title=" " alt="" coords="145,102,233,129"/>
<area shape="rect" href="classripple_1_1Buffer.html" title="Like std::vector&lt;char&gt; but better." alt="" coords="366,206,473,233"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html" title=" " alt="" coords="376,95,530,136"/>
<area shape="rect" href="http://en.cppreference.com/w/cpp/types/integer.html" title=" " alt="" coords="406,5,500,32"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a33fc8b3aeb76e17a2f1c6c63d7761e22"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1cryptoconditions_1_1PreimageSha256.html#a33fc8b3aeb76e17a2f1c6c63d7761e22">PreimageSha256</a> (<a class="el" href="classripple_1_1Buffer.html">Buffer</a> &amp;&amp;b) noexcept</td></tr>
<tr class="separator:a33fc8b3aeb76e17a2f1c6c63d7761e22"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aff5ba2b2733e820bba7da7882fb036d3"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1cryptoconditions_1_1PreimageSha256.html#aff5ba2b2733e820bba7da7882fb036d3">PreimageSha256</a> (<a class="el" href="classripple_1_1Slice.html">Slice</a> s) noexcept</td></tr>
<tr class="separator:aff5ba2b2733e820bba7da7882fb036d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac16287043405acdbeb79c5c501bb1ff1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceripple_1_1cryptoconditions.html#aa3107e15003c13674a275abb96856ccd">Type</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1cryptoconditions_1_1PreimageSha256.html#ac16287043405acdbeb79c5c501bb1ff1">type</a> () const override</td></tr>
<tr class="memdesc:ac16287043405acdbeb79c5c501bb1ff1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the type of this condition. <a href="classripple_1_1cryptoconditions_1_1PreimageSha256.html#ac16287043405acdbeb79c5c501bb1ff1">More...</a><br /></td></tr>
<tr class="separator:ac16287043405acdbeb79c5c501bb1ff1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a32a6bdb571dd1145d85d88b91a5f682a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classripple_1_1Buffer.html">Buffer</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1cryptoconditions_1_1PreimageSha256.html#a32a6bdb571dd1145d85d88b91a5f682a">fingerprint</a> () const override</td></tr>
<tr class="memdesc:a32a6bdb571dd1145d85d88b91a5f682a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the fulfillment's fingerprint: <a href="classripple_1_1cryptoconditions_1_1PreimageSha256.html#a32a6bdb571dd1145d85d88b91a5f682a">More...</a><br /></td></tr>
<tr class="separator:a32a6bdb571dd1145d85d88b91a5f682a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae123cad97af124620811e003c84594b4"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1cryptoconditions_1_1PreimageSha256.html#ae123cad97af124620811e003c84594b4">cost</a> () const override</td></tr>
<tr class="memdesc:ae123cad97af124620811e003c84594b4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Calculates the cost associated with this fulfillment. <a href="classripple_1_1cryptoconditions_1_1PreimageSha256.html#ae123cad97af124620811e003c84594b4">More...</a><br /></td></tr>
<tr class="separator:ae123cad97af124620811e003c84594b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a87fc55bbedc439c4f10ca9675eee37b5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classripple_1_1cryptoconditions_1_1Condition.html">Condition</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1cryptoconditions_1_1PreimageSha256.html#a87fc55bbedc439c4f10ca9675eee37b5">condition</a> () const override</td></tr>
<tr class="memdesc:a87fc55bbedc439c4f10ca9675eee37b5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the condition associated with the given fulfillment. <a href="classripple_1_1cryptoconditions_1_1PreimageSha256.html#a87fc55bbedc439c4f10ca9675eee37b5">More...</a><br /></td></tr>
<tr class="separator:a87fc55bbedc439c4f10ca9675eee37b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a06d9ff9c6ad66a7a53b91c6bd5aa75f2"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1cryptoconditions_1_1PreimageSha256.html#a06d9ff9c6ad66a7a53b91c6bd5aa75f2">validate</a> (<a class="el" href="classripple_1_1Slice.html">Slice</a>) const override</td></tr>
<tr class="memdesc:a06d9ff9c6ad66a7a53b91c6bd5aa75f2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Validates a fulfillment. <a href="classripple_1_1cryptoconditions_1_1PreimageSha256.html#a06d9ff9c6ad66a7a53b91c6bd5aa75f2">More...</a><br /></td></tr>
<tr class="separator:a06d9ff9c6ad66a7a53b91c6bd5aa75f2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a38e9b0e19c25715ba4169dcd6b527e16"><td class="memItemLeft" align="right" valign="top">static <a class="elRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr</a>&lt; <a class="el" href="structripple_1_1cryptoconditions_1_1Fulfillment.html">Fulfillment</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1cryptoconditions_1_1PreimageSha256.html#a38e9b0e19c25715ba4169dcd6b527e16">deserialize</a> (<a class="el" href="classripple_1_1Slice.html">Slice</a> s, <a class="elRef" href="http://en.cppreference.com/w/cpp/error/error_code.html">std::error_code</a> &amp;ec)</td></tr>
<tr class="memdesc:a38e9b0e19c25715ba4169dcd6b527e16"><td class="mdescLeft">&#160;</td><td class="mdescRight">Parse the payload for a <a class="el" href="classripple_1_1cryptoconditions_1_1PreimageSha256.html">PreimageSha256</a> condition. <a href="classripple_1_1cryptoconditions_1_1PreimageSha256.html#a38e9b0e19c25715ba4169dcd6b527e16">More...</a><br /></td></tr>
<tr class="separator:a38e9b0e19c25715ba4169dcd6b527e16"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr class="memitem:a62cb7844ba6809e8d2c47178245c993d"><td class="memItemLeft" align="right" valign="top">static constexpr <a class="elRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1cryptoconditions_1_1PreimageSha256.html#a62cb7844ba6809e8d2c47178245c993d">maxPreimageLength</a> = 128</td></tr>
<tr class="memdesc:a62cb7844ba6809e8d2c47178245c993d"><td class="mdescLeft">&#160;</td><td class="mdescRight">The maximum allowed length of a preimage. <a href="classripple_1_1cryptoconditions_1_1PreimageSha256.html#a62cb7844ba6809e8d2c47178245c993d">More...</a><br /></td></tr>
<tr class="separator:a62cb7844ba6809e8d2c47178245c993d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a88f1cd77d14691539f91ef7a501fc1f3"><td class="memItemLeft" align="right" valign="top">static constexpr <a class="elRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structripple_1_1cryptoconditions_1_1Fulfillment.html#a88f1cd77d14691539f91ef7a501fc1f3">maxSerializedFulfillment</a> = 256</td></tr>
<tr class="memdesc:a88f1cd77d14691539f91ef7a501fc1f3"><td class="mdescLeft">&#160;</td><td class="mdescRight">The largest binary fulfillment we support. <a href="structripple_1_1cryptoconditions_1_1Fulfillment.html#a88f1cd77d14691539f91ef7a501fc1f3">More...</a><br /></td></tr>
<tr class="separator:a88f1cd77d14691539f91ef7a501fc1f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a1d8265482964990db39196b535558a29"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classripple_1_1Buffer.html">Buffer</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1cryptoconditions_1_1PreimageSha256.html#a1d8265482964990db39196b535558a29">payload_</a></td></tr>
<tr class="separator:a1d8265482964990db39196b535558a29"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock">
<p class="definition">Definition at line <a class="el" href="PreimageSha256_8h_source.html#l00034">34</a> of file <a class="el" href="PreimageSha256_8h_source.html">PreimageSha256.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a33fc8b3aeb76e17a2f1c6c63d7761e22"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a33fc8b3aeb76e17a2f1c6c63d7761e22">&#9670;&nbsp;</a></span>PreimageSha256() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">ripple::cryptoconditions::PreimageSha256::PreimageSha256 </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classripple_1_1Buffer.html">Buffer</a> &amp;&amp;&#160;</td>
<td class="paramname"><em>b</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="PreimageSha256_8h_source.html#l00105">105</a> of file <a class="el" href="PreimageSha256_8h_source.html">PreimageSha256.h</a>.</p>
</div>
</div>
<a id="aff5ba2b2733e820bba7da7882fb036d3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aff5ba2b2733e820bba7da7882fb036d3">&#9670;&nbsp;</a></span>PreimageSha256() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">ripple::cryptoconditions::PreimageSha256::PreimageSha256 </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classripple_1_1Slice.html">Slice</a>&#160;</td>
<td class="paramname"><em>s</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="PreimageSha256_8h_source.html#l00109">109</a> of file <a class="el" href="PreimageSha256_8h_source.html">PreimageSha256.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a38e9b0e19c25715ba4169dcd6b527e16"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a38e9b0e19c25715ba4169dcd6b527e16">&#9670;&nbsp;</a></span>deserialize()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="elRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr</a>&lt;<a class="el" href="structripple_1_1cryptoconditions_1_1Fulfillment.html">Fulfillment</a>&gt; ripple::cryptoconditions::PreimageSha256::deserialize </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classripple_1_1Slice.html">Slice</a>&#160;</td>
<td class="paramname"><em>s</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/error/error_code.html">std::error_code</a> &amp;&#160;</td>
<td class="paramname"><em>ec</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Parse the payload for a <a class="el" href="classripple_1_1cryptoconditions_1_1PreimageSha256.html">PreimageSha256</a> condition. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">s</td><td>A slice containing the DER encoded payload </td></tr>
<tr><td class="paramname">ec</td><td>indicates success or failure of the operation </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the preimage, if successful; empty pointer otherwise. </dd></dl>
<p class="definition">Definition at line <a class="el" href="PreimageSha256_8h_source.html#l00055">55</a> of file <a class="el" href="PreimageSha256_8h_source.html">PreimageSha256.h</a>.</p>
</div>
</div>
<a id="ac16287043405acdbeb79c5c501bb1ff1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac16287043405acdbeb79c5c501bb1ff1">&#9670;&nbsp;</a></span>type()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="namespaceripple_1_1cryptoconditions.html#aa3107e15003c13674a275abb96856ccd">Type</a> ripple::cryptoconditions::PreimageSha256::type </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the type of this condition. </p>
<p>Implements <a class="el" href="structripple_1_1cryptoconditions_1_1Fulfillment.html#a2428ca1b532098a302b65a1bf5e8583c">ripple::cryptoconditions::Fulfillment</a>.</p>
<p class="definition">Definition at line <a class="el" href="PreimageSha256_8h_source.html#l00114">114</a> of file <a class="el" href="PreimageSha256_8h_source.html">PreimageSha256.h</a>.</p>
</div>
</div>
<a id="a32a6bdb571dd1145d85d88b91a5f682a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a32a6bdb571dd1145d85d88b91a5f682a">&#9670;&nbsp;</a></span>fingerprint()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classripple_1_1Buffer.html">Buffer</a> ripple::cryptoconditions::PreimageSha256::fingerprint </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the fulfillment's fingerprint: </p>
<p>The fingerprint is an octet string uniquely representing this fulfillment's condition with respect to other conditions of the same type. </p>
<p>Implements <a class="el" href="structripple_1_1cryptoconditions_1_1Fulfillment.html#ad684947e5ed39d6d75ec6916d783e270">ripple::cryptoconditions::Fulfillment</a>.</p>
<p class="definition">Definition at line <a class="el" href="PreimageSha256_8h_source.html#l00120">120</a> of file <a class="el" href="PreimageSha256_8h_source.html">PreimageSha256.h</a>.</p>
</div>
</div>
<a id="ae123cad97af124620811e003c84594b4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae123cad97af124620811e003c84594b4">&#9670;&nbsp;</a></span>cost()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> ripple::cryptoconditions::PreimageSha256::cost </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Calculates the cost associated with this fulfillment. </p>
<ul>
<li>The cost function is deterministic and depends on the type and properties of the condition and the fulfillment that the condition is generated from. </li>
</ul>
<p>Implements <a class="el" href="structripple_1_1cryptoconditions_1_1Fulfillment.html#a8852eb8fce1a48d3ca774066fe9b4ccb">ripple::cryptoconditions::Fulfillment</a>.</p>
<p class="definition">Definition at line <a class="el" href="PreimageSha256_8h_source.html#l00129">129</a> of file <a class="el" href="PreimageSha256_8h_source.html">PreimageSha256.h</a>.</p>
</div>
</div>
<a id="a87fc55bbedc439c4f10ca9675eee37b5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a87fc55bbedc439c4f10ca9675eee37b5">&#9670;&nbsp;</a></span>condition()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classripple_1_1cryptoconditions_1_1Condition.html">Condition</a> ripple::cryptoconditions::PreimageSha256::condition </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the condition associated with the given fulfillment. </p>
<p>This process is completely deterministic. All implementations will, if compliant, produce the identical condition for the same fulfillment. </p>
<p>Implements <a class="el" href="structripple_1_1cryptoconditions_1_1Fulfillment.html#ad5db6505a78cb1f16e465576d579e369">ripple::cryptoconditions::Fulfillment</a>.</p>
<p class="definition">Definition at line <a class="el" href="PreimageSha256_8h_source.html#l00135">135</a> of file <a class="el" href="PreimageSha256_8h_source.html">PreimageSha256.h</a>.</p>
</div>
</div>
<a id="a06d9ff9c6ad66a7a53b91c6bd5aa75f2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a06d9ff9c6ad66a7a53b91c6bd5aa75f2">&#9670;&nbsp;</a></span>validate()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool ripple::cryptoconditions::PreimageSha256::validate </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classripple_1_1Slice.html">Slice</a>&#160;</td>
<td class="paramname"><em>data</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Validates a fulfillment. </p>
<p>Implements <a class="el" href="structripple_1_1cryptoconditions_1_1Fulfillment.html#a7a671d3eaa064536a29f9db7ad8df9ec">ripple::cryptoconditions::Fulfillment</a>.</p>
<p class="definition">Definition at line <a class="el" href="PreimageSha256_8h_source.html#l00140">140</a> of file <a class="el" href="PreimageSha256_8h_source.html">PreimageSha256.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a62cb7844ba6809e8d2c47178245c993d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a62cb7844ba6809e8d2c47178245c993d">&#9670;&nbsp;</a></span>maxPreimageLength</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">constexpr <a class="elRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> ripple::cryptoconditions::PreimageSha256::maxPreimageLength = 128</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">constexpr</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>The maximum allowed length of a preimage. </p>
<p>The specification does not specify a minimum supported length, nor does it require all conditions to support the same minimum length.</p>
<p>While future versions of this code will never lower this limit, they may opt to raise it. </p>
<p class="definition">Definition at line <a class="el" href="PreimageSha256_8h_source.html#l00046">46</a> of file <a class="el" href="PreimageSha256_8h_source.html">PreimageSha256.h</a>.</p>
</div>
</div>
<a id="a1d8265482964990db39196b535558a29"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1d8265482964990db39196b535558a29">&#9670;&nbsp;</a></span>payload_</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classripple_1_1Buffer.html">Buffer</a> ripple::cryptoconditions::PreimageSha256::payload_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="PreimageSha256_8h_source.html#l00102">102</a> of file <a class="el" href="PreimageSha256_8h_source.html">PreimageSha256.h</a>.</p>
</div>
</div>
<a id="a88f1cd77d14691539f91ef7a501fc1f3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a88f1cd77d14691539f91ef7a501fc1f3">&#9670;&nbsp;</a></span>maxSerializedFulfillment</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">constexpr <a class="elRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> ripple::cryptoconditions::Fulfillment::maxSerializedFulfillment = 256</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">constexpr</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>The largest binary fulfillment we support. </p>
<dl class="section note"><dt>Note</dt><dd>This value will be increased in the future, but it must never decrease, as that could cause fulfillments that were previously considered valid to no longer be allowed. </dd></dl>
<p class="definition">Definition at line <a class="el" href="Fulfillment_8h_source.html#l00041">41</a> of file <a class="el" href="Fulfillment_8h_source.html">Fulfillment.h</a>.</p>
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>