2022-12-19 21:19:50 +01:00
<!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.9.1" / >
< meta name = "viewport" content = "width=device-width, initial-scale=1" / >
2022-12-31 14:37:34 +01:00
< title > oc-issuer: Model Class Reference< / title >
2022-12-19 21:19:50 +01:00
< 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;" >
2022-12-31 14:37:34 +01:00
< div id = "projectname" > oc-issuer
  < span id = "projectnumber" > 0.0.2< / span >
2022-12-19 21:19:50 +01:00
< / div >
< / td >
< / tr >
< / tbody >
< / table >
< / div >
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
< 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','.html');
/* @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 >
<!-- 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 > <!-- top -->
< div class = "header" >
< div class = "summary" >
< a href = "#pub-methods" > Public Member Functions< / a > |
< a href = "#pub-static-methods" > Static Public Member Functions< / a > |
< a href = "classModel-members.html" > List of all members< / a > < / div >
< div class = "headertitle" >
< div class = "title" > Model Class Reference< span class = "mlabels" > < span class = "mlabel" > abstract< / span > < / span > < / div > < / div >
< / div > <!-- header -->
< div class = "contents" >
< div class = "dynheader" >
Inheritance diagram for Model:< / div >
< div class = "dyncontent" >
< div class = "center" > < img src = "classModel__inherit__graph.png" border = "0" usemap = "#aModel_inherit__map" alt = "Inheritance graph" / > < / div >
< map name = "aModel_inherit__map" id = "aModel_inherit__map" >
< area shape = "rect" title = " " alt = "" coords = "29,5,92,32" / >
< area shape = "rect" href = "classDefaultModel.html" title = " " alt = "" coords = "5,80,116,107" / >
< / 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 >
2022-12-31 14:37:34 +01:00
< tr class = "memitem:a694101d09f26963cb3b4059779604ed5" > < td class = "memItemLeft" align = "right" valign = "top" > virtual tl::expected< < a class = "el" href = "structCDDC.html" > CDDC< / a > *, bool >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classModel.html#a694101d09f26963cb3b4059779604ed5" > getCDDC< / a > (unsigned int cdd_serial)=0< / td > < / tr >
2022-12-19 21:19:50 +01:00
< tr class = "separator:a694101d09f26963cb3b4059779604ed5" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2022-12-31 14:37:34 +01:00
< tr class = "memitem:a2a6e8779505b4c9b2e61328a9e870981" > < td class = "memItemLeft" align = "right" valign = "top" > virtual tl::expected< < a class = "el" href = "structCDDC.html" > CDDC< / a > *, bool >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classModel.html#a2a6e8779505b4c9b2e61328a9e870981" > getCurrentCDDC< / a > ()=0< / td > < / tr >
2022-12-19 21:19:50 +01:00
< tr class = "separator:a2a6e8779505b4c9b2e61328a9e870981" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2022-12-31 14:37:34 +01:00
< tr class = "memitem:aed0ea733af94f2d4e08c24b2fa4df56f" > < td class = "memItemLeft" align = "right" valign = "top" > virtual const std::vector< < a class = "el" href = "structMintKeyCert.html" > MintKeyCert< / a > >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classModel.html#aed0ea733af94f2d4e08c24b2fa4df56f" > getMKCs< / a > (const std::vector< unsigned int > & denominations, const std::vector< < a class = "el" href = "structBigInt.html" > BigInt< / a > > & mint_key_ids)=0< / td > < / tr >
2022-12-28 00:44:43 +01:00
< tr class = "separator:aed0ea733af94f2d4e08c24b2fa4df56f" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2022-12-31 14:37:34 +01:00
< tr class = "memitem:a0ece13ffd6258825feaaa884247ca6e2" > < td class = "memItemLeft" align = "right" valign = "top" > virtual std::vector< < a class = "el" href = "structBlindSignature.html" > BlindSignature< / a > >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classModel.html#a0ece13ffd6258825feaaa884247ca6e2" > mint< / a > (std::string const & transaction_reference, const std::vector< < a class = "el" href = "structBlind.html" > Blind< / a > > & blinds)=0< / td > < / tr >
2022-12-28 00:44:43 +01:00
< tr class = "separator:a0ece13ffd6258825feaaa884247ca6e2" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2022-12-31 14:37:34 +01:00
< tr class = "memitem:a14ae6086fd6ccc2dc34714c2f976258a" > < td class = "memItemLeft" align = "right" valign = "top" > virtual bool  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classModel.html#a14ae6086fd6ccc2dc34714c2f976258a" > redeem< / a > (const std::vector< < a class = "el" href = "structCoin.html" > Coin< / a > > & coins)=0< / td > < / tr >
2022-12-19 21:19:50 +01:00
< tr class = "separator:a14ae6086fd6ccc2dc34714c2f976258a" > < td class = "memSeparator" colspan = "2" >   < / 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 >
2022-12-31 14:37:34 +01:00
< tr class = "memitem:a638b943a2de45e4faba934fbe6ae8055" > < td class = "memItemLeft" align = "right" valign = "top" > static std::unique_ptr< < a class = "el" href = "classModel.html" > Model< / a > >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classModel.html#a638b943a2de45e4faba934fbe6ae8055" > getModel< / a > (const std::string & backend_name)< / td > < / tr >
2022-12-19 21:19:50 +01:00
< tr class = "separator:a638b943a2de45e4faba934fbe6ae8055" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table >
2022-12-31 14:37:34 +01:00
< h2 class = "groupheader" > Member Function Documentation< / h2 >
< a id = "a694101d09f26963cb3b4059779604ed5" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a694101d09f26963cb3b4059779604ed5" > ◆ < / a > < / span > getCDDC()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > virtual tl::expected< < a class = "el" href = "structCDDC.html" > CDDC< / a > *, bool> Model::getCDDC < / td >
< td > (< / td >
< td class = "paramtype" > unsigned int  < / td >
< td class = "paramname" > < em > cdd_serial< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > pure virtual< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > return the CurrencyDocumentDescription certifikate for a specific serial version number of it. < a href = "https://opencoin.org/0.4/schemata.html#cddc" > see spec< / a > < / p > < dl class = "section return" > < dt > Returns< / dt > < dd > returns a pointer to the < a class = "el" href = "structCDDC.html" > CDDC< / a > if successful, false otherwise < / dd > < / dl >
< p > Implemented in < a class = "el" href = "classDefaultModel.html#a3f3db55e24aada8f0f4828529a04ef0d" > DefaultModel< / a > .< / p >
< / div >
< / div >
< a id = "a2a6e8779505b4c9b2e61328a9e870981" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a2a6e8779505b4c9b2e61328a9e870981" > ◆ < / a > < / span > getCurrentCDDC()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > virtual tl::expected< < a class = "el" href = "structCDDC.html" > CDDC< / a > *, bool> Model::getCurrentCDDC < / td >
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > pure virtual< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > return the CurrencyDocumentDescription certifikate < a href = "https://opencoin.org/0.4/schemata.html#cddc" > see spec< / a > < / p > < dl class = "section return" > < dt > Returns< / dt > < dd > returns a pointer to the < a class = "el" href = "structCDDC.html" > CDDC< / a > if successful, false otherwise < / dd > < / dl >
< p > Implemented in < a class = "el" href = "classDefaultModel.html#a879560588eadf03168fb720751044295" > DefaultModel< / a > .< / p >
< / div >
< / div >
< a id = "aed0ea733af94f2d4e08c24b2fa4df56f" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#aed0ea733af94f2d4e08c24b2fa4df56f" > ◆ < / a > < / span > getMKCs()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > virtual const std::vector< < a class = "el" href = "structMintKeyCert.html" > MintKeyCert< / a > > Model::getMKCs < / td >
< td > (< / td >
< td class = "paramtype" > const std::vector< unsigned int > &   < / td >
< td class = "paramname" > < em > denominations< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > const std::vector< < a class = "el" href = "structBigInt.html" > BigInt< / a > > &   < / td >
< td class = "paramname" > < em > mint_key_ids< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > pure virtual< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > return the < a class = "el" href = "structMintKey.html" > MintKey< / a > certificates for a given list of denominations and mint key ids< / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > denominations< / td > < td > < / td > < / tr >
< tr > < td class = "paramname" > mint_key_ids< / td > < td > < / td > < / tr >
< / table >
< / dd >
< / dl >
< dl class = "section return" > < dt > Returns< / dt > < dd > mint key certificates for given denominations and mint_key_ids < / dd > < / dl >
< p > Implemented in < a class = "el" href = "classDefaultModel.html#ae3c0327f61ff3c52ebaf5e60fa6eabad" > DefaultModel< / a > .< / p >
< / div >
< / div >
< a id = "a638b943a2de45e4faba934fbe6ae8055" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a638b943a2de45e4faba934fbe6ae8055" > ◆ < / a > < / span > getModel()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > std::unique_ptr< < a class = "el" href = "classModel.html" > Model< / a > > Model::getModel < / td >
< td > (< / td >
< td class = "paramtype" > const std::string &   < / td >
< td class = "paramname" > < em > backend_name< / em > < / 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 > factory function returning a concrete backend for Opencoin API handling. based on backend_name a concrete backend will be returned or in case of error null. < / p > < dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > backend_name< / td > < td > < / td > < / tr >
< / table >
< / dd >
< / dl >
< dl class = "section return" > < dt > Returns< / dt > < dd > pointer to backend instance or null on invalid backend name < / dd > < / dl >
< / div >
< / div >
< a id = "a0ece13ffd6258825feaaa884247ca6e2" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a0ece13ffd6258825feaaa884247ca6e2" > ◆ < / a > < / span > mint()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > virtual std::vector< < a class = "el" href = "structBlindSignature.html" > BlindSignature< / a > > Model::mint < / td >
< td > (< / td >
< td class = "paramtype" > std::string const &   < / td >
< td class = "paramname" > < em > transaction_reference< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > const std::vector< < a class = "el" href = "structBlind.html" > Blind< / a > > &   < / td >
< td class = "paramname" > < em > blinds< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > pure virtual< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > returns the vector of blind signatures for a given vector of blinds< / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > transaction_reference< / td > < td > reference to a transaction (send from client) < / td > < / tr >
< tr > < td class = "paramname" > blinds< / td > < td > the vector of blinds to sign< / td > < / tr >
< / table >
< / dd >
< / dl >
< dl class = "section return" > < dt > Returns< / dt > < dd > < / dd > < / dl >
< p > Implemented in < a class = "el" href = "classDefaultModel.html#ab937854d71992a912cc9e62bb2e2a10d" > DefaultModel< / a > .< / p >
< / div >
< / div >
< a id = "a14ae6086fd6ccc2dc34714c2f976258a" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a14ae6086fd6ccc2dc34714c2f976258a" > ◆ < / a > < / span > redeem()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > virtual bool Model::redeem < / td >
< td > (< / td >
< td class = "paramtype" > const std::vector< < a class = "el" href = "structCoin.html" > Coin< / a > > &   < / td >
< td class = "paramname" > < em > coins< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > pure virtual< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > redeem valid coins into real money< / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > coins< / td > < td > the coins to redeem< / td > < / tr >
< / table >
< / dd >
< / dl >
< dl class = "section return" > < dt > Returns< / dt > < dd > true if successful, false on error < / dd > < / dl >
< p > Implemented in < a class = "el" href = "classDefaultModel.html#a44f6411e2de1c99de5eb3b112657a4b3" > DefaultModel< / a > .< / p >
< / div >
< / div >
2022-12-19 21:19:50 +01:00
< hr / > The documentation for this class was generated from the following files:< ul >
< li > src/< a class = "el" href = "model_8hpp_source.html" > model.hpp< / a > < / li >
< li > src/model.cpp< / li >
< / ul >
< / div > <!-- contents -->
<!-- start footer part -->
< hr class = "footer" / > < address class = "footer" > < small >
Generated by  < a href = "https://www.doxygen.org/index.html" > < img class = "footer" src = "doxygen.svg" width = "104" height = "31" alt = "doxygen" / > < / a > 1.9.1
< / small > < / address >
< / body >
< / html >