oc-mint/index.html

129 lines
9.5 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.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>oc-issuer: opencoin-issuer-cpp - a C++ OpenCoin Issuer REST-API implementation</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">oc-issuer
&#160;<span id="projectnumber">0.0.2</span>
</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&amp;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&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 -->
<!-- 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="PageDoc"><div class="header">
<div class="headertitle">
<div class="title">opencoin-issuer-cpp - a C++ OpenCoin Issuer REST-API implementation </div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><p><a class="anchor" id="mainpage"></a></p>
<p><img src="https://github.com/OpenCoin/opencoin-issuer-cpp/actions/workflows/cmake.yaml/badge.svg" alt="build" style="pointer-events: none;" class="inline"/> <a href="https://github.com/OpenCoin/opencoin-issuer-cpp/actions/workflows/doxygen-gh-pages.yml"><img src="https://github.com/OpenCoin/opencoin-issuer-cpp/actions/workflows/doxygen-gh-pages.yml/badge.svg" alt="Documentation" style="pointer-events: none;" class="inline"/></a></p>
<h1><a class="anchor" id="autotoc_md0"></a>
opencoin issuer</h1>
<p>this is a C++ implementation of the <a href="https://opencoin.org/OpenCoin.html">opencoin protocol</a> done as mapping to some kind of REST interface.</p>
<p>As all issuer related interactions of the protocol follows a request/response mechanism we are able to map all of them to Http-Requests.</p>
<p>We decided to use POST-Requests in all cases, as the protocol uses JSON-formatted messages for requests.</p>
<p>The following table gives an overview of the mapping of requests to URLs:</p>
<table class="markdownTable">
<tr class="markdownTableHead">
<th class="markdownTableHeadLeft">Request </th><th class="markdownTableHeadLeft">URL </th><th class="markdownTableHeadLeft"><a class="el" href="structResponse.html">Response</a> </th><th class="markdownTableHeadLeft">C++ Interface Method </th></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyLeft"><a class="el" href="structRequestCDDCSerial.html">RequestCDDCSerial</a> </td><td class="markdownTableBodyLeft">/cddc/serial </td><td class="markdownTableBodyLeft"><a class="el" href="structResponseCDDCSerial.html">ResponseCDDCSerial</a> </td><td class="markdownTableBodyLeft">cdd.cdd_serial of <a class="el" href="classModel.html#a50d7fc134c43bc28045a7993ff2f2ca5">Model::get_current_cddc()</a> </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyLeft"><a class="el" href="structRequestCDDC.html">RequestCDDC</a> </td><td class="markdownTableBodyLeft">/cddc </td><td class="markdownTableBodyLeft"><a class="el" href="structResponseCDDC.html">ResponseCDDC</a> </td><td class="markdownTableBodyLeft"><a class="el" href="classModel.html#a50d7fc134c43bc28045a7993ff2f2ca5">Model::get_current_cddc()</a> </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyLeft"><a class="el" href="structRequestMKCs.html">RequestMKCs</a> </td><td class="markdownTableBodyLeft">/mkcs </td><td class="markdownTableBodyLeft"><a class="el" href="structResponseMKCs.html">ResponseMKCs</a> </td><td class="markdownTableBodyLeft"><a class="el" href="classModel.html#a022e8d797bf57d111a1ce5bd229f41ea">Model::getMKCs</a> </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyLeft"><a class="el" href="structRequestMint.html">RequestMint</a> </td><td class="markdownTableBodyLeft">/mint </td><td class="markdownTableBodyLeft"><a class="el" href="structResponseMint.html">ResponseMint</a> </td><td class="markdownTableBodyLeft"><a class="el" href="classModel.html#a0ece13ffd6258825feaaa884247ca6e2">Model::mint</a> </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyLeft"><a class="el" href="structRequestRenew.html">RequestRenew</a> </td><td class="markdownTableBodyLeft">/renew </td><td class="markdownTableBodyLeft"><a class="el" href="structResponseMint.html">ResponseMint</a> or <a class="el" href="structResponseDelay.html">ResponseDelay</a> </td><td class="markdownTableBodyLeft">? </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyLeft"><a class="el" href="structRequestResume.html">RequestResume</a> </td><td class="markdownTableBodyLeft">/resume </td><td class="markdownTableBodyLeft"><a class="el" href="structResponseMint.html">ResponseMint</a> or <a class="el" href="structResponseDelay.html">ResponseDelay</a> </td><td class="markdownTableBodyLeft">? </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyLeft"><a class="el" href="structRequestRedeem.html">RequestRedeem</a> </td><td class="markdownTableBodyLeft">/redeem </td><td class="markdownTableBodyLeft"><a class="el" href="structResponseRedeem.html">ResponseRedeem</a> </td><td class="markdownTableBodyLeft"><a class="el" href="classModel.html#a14ae6086fd6ccc2dc34714c2f976258a">Model::redeem</a> </td></tr>
</table>
<p>actually the implementation is a work in progress.</p>
<h2><a class="anchor" id="autotoc_md1"></a>
TODO</h2>
<ul>
<li>[ ] select crypto library<ul>
<li><a href="https://en.wikipedia.org/wiki/Comparison_of_cryptography_libraries">https://en.wikipedia.org/wiki/Comparison_of_cryptography_libraries</a></li>
</ul>
</li>
<li>[ ] blinding utilizing crypto++</li>
<li>[ ] integrate session and login to make transactions account based</li>
<li>[ ] bookkeeping for accounts</li>
</ul>
<h2><a class="anchor" id="autotoc_md2"></a>
Protocol Questions</h2>
<ul>
<li>What is signed as cdd - only the content of the cdd item with curly braces or also the key?</li>
<li>the weighted URL as array has a different js encoding as other elements</li>
<li>Clarify PSS usage (see <a href="https://crypto.stackexchange.com/questions/12707/usability-of-padding-scheme-in-blinded-rsa-signature">https://crypto.stackexchange.com/questions/12707/usability-of-padding-scheme-in-blinded-rsa-signature</a>)</li>
</ul>
<h3><a class="anchor" id="autotoc_md3"></a>
Blinding Notes</h3>
<p><a href="https://stackoverflow.com/questions/47860570/how-to-create-and-verify-blind-rsa-signatures-with-crypto">https://stackoverflow.com/questions/47860570/how-to-create-and-verify-blind-rsa-signatures-with-crypto</a></p>
<p><a href="https://crypto.stackexchange.com/questions/12707/usability-of-padding-scheme-in-blinded-rsa-signature">https://crypto.stackexchange.com/questions/12707/usability-of-padding-scheme-in-blinded-rsa-signature</a></p>
<p><a href="https://crypto.stackexchange.com/questions/54085/is-there-a-standard-padding-format-for-rsa-blind-signatures/60728#60728">https://crypto.stackexchange.com/questions/54085/is-there-a-standard-padding-format-for-rsa-blind-signatures/60728#60728</a> <a href="https://crypto.stackexchange.com/questions/5626/rsa-blind-signatures-in-practice">https://crypto.stackexchange.com/questions/5626/rsa-blind-signatures-in-practice</a></p>
<p><a href="https://cfrg.github.io/draft-irtf-cfrg-blind-signatures/draft-irtf-cfrg-rsa-blind-signatures.html">https://cfrg.github.io/draft-irtf-cfrg-blind-signatures/draft-irtf-cfrg-rsa-blind-signatures.html</a></p>
<p>alternative implementation using openssl <a href="https://github.com/jedisct1/blind-rsa-signatures">https://github.com/jedisct1/blind-rsa-signatures</a> </p>
</div></div><!-- PageDoc -->
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<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>