You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

470 line
27KB

  1. <!DOCTYPE html>
  2. <html class="writer-html5" lang="en" >
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6. <title>DHEBP (DERO Homomorphic Encryption Blockchain Protocol) &mdash; DERO Documentation documentation</title>
  7. <link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
  8. <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
  9. <link rel="stylesheet" href="../_static/css/custom.css" type="text/css" />
  10. <!--[if lt IE 9]>
  11. <script src="../_static/js/html5shiv.min.js"></script>
  12. <![endif]-->
  13. <script type="text/javascript" id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script>
  14. <script src="../_static/jquery.js"></script>
  15. <script src="../_static/underscore.js"></script>
  16. <script src="../_static/doctools.js"></script>
  17. <script type="text/javascript" src="../_static/js/theme.js"></script>
  18. <link rel="index" title="Index" href="../genindex.html" />
  19. <link rel="search" title="Search" href="../search.html" />
  20. <link rel="next" title="Graviton" href="dev_graviton.html" />
  21. <link rel="prev" title="AstroBWT" href="dev_astrobwt.html" />
  22. </head>
  23. <body class="wy-body-for-nav">
  24. <div class="wy-grid-for-nav">
  25. <nav data-toggle="wy-nav-shift" class="wy-nav-side">
  26. <div class="wy-side-scroll">
  27. <div class="wy-side-nav-search" >
  28. <a href="../index.html">
  29. <img src="../_static/docs_logo.png" class="logo" alt="Logo"/>
  30. </a>
  31. <div role="search">
  32. <form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
  33. <input type="text" name="q" placeholder="Search docs" />
  34. <input type="hidden" name="check_keywords" value="yes" />
  35. <input type="hidden" name="area" value="default" />
  36. </form>
  37. </div>
  38. </div>
  39. <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
  40. <p class="caption"><span class="caption-text">Basic's</span></p>
  41. <ul>
  42. <li class="toctree-l1"><a class="reference internal" href="basic_desktopwallet.html">Desktop Wallet User Guide</a><ul>
  43. <li class="toctree-l2"><a class="reference internal" href="basic_desktopwallet.html#downloading-binaries">Downloading Binaries</a></li>
  44. <li class="toctree-l2"><a class="reference internal" href="basic_desktopwallet.html#installing-the-desktop-app">Installing the desktop app</a></li>
  45. <li class="toctree-l2"><a class="reference internal" href="basic_desktopwallet.html#windows-installation">Windows Installation</a></li>
  46. <li class="toctree-l2"><a class="reference internal" href="basic_desktopwallet.html#mac-installation">MAC Installation</a></li>
  47. <li class="toctree-l2"><a class="reference internal" href="basic_desktopwallet.html#linux-installation">Linux Installation</a></li>
  48. <li class="toctree-l2"><a class="reference internal" href="basic_desktopwallet.html#where-are-the-dero-wallet-files-located">Where are the DERO Wallet files located?</a></li>
  49. <li class="toctree-l2"><a class="reference internal" href="basic_desktopwallet.html#create-a-new-wallet">Create a new wallet</a></li>
  50. <li class="toctree-l2"><a class="reference internal" href="basic_desktopwallet.html#opening-a-dero-wallet">Opening a DERO wallet</a></li>
  51. <li class="toctree-l2"><a class="reference internal" href="basic_desktopwallet.html#synchronizing-the-dero-cmd-wallet">Synchronizing the DERO CMD Wallet</a></li>
  52. <li class="toctree-l2"><a class="reference internal" href="basic_desktopwallet.html#rescan-blockchain">Rescan Blockchain</a></li>
  53. <li class="toctree-l2"><a class="reference internal" href="basic_desktopwallet.html#upgrading-from-a-previous-version">Upgrading from a previous version</a></li>
  54. <li class="toctree-l2"><a class="reference internal" href="basic_desktopwallet.html#main-wallet-screen">Main wallet screen</a></li>
  55. <li class="toctree-l2"><a class="reference internal" href="basic_desktopwallet.html#wallet-status">Wallet status</a></li>
  56. <li class="toctree-l2"><a class="reference internal" href="basic_desktopwallet.html#offline-mode">Offline mode</a></li>
  57. <li class="toctree-l2"><a class="reference internal" href="basic_desktopwallet.html#sending-dero">Sending DERO</a></li>
  58. <li class="toctree-l2"><a class="reference internal" href="basic_desktopwallet.html#restoring-dero-funds">Restoring DERO Funds</a></li>
  59. </ul>
  60. </li>
  61. <li class="toctree-l1"><a class="reference internal" href="basic_webwallet.html">Browser Wallet User Guide</a><ul>
  62. <li class="toctree-l2"><a class="reference internal" href="basic_webwallet.html#using-the-browser-wallet">Using the Browser Wallet</a></li>
  63. <li class="toctree-l2"><a class="reference internal" href="basic_webwallet.html#create-a-wallet">Create a wallet</a></li>
  64. <li class="toctree-l2"><a class="reference internal" href="basic_webwallet.html#restore-a-wallet">Restore a wallet</a></li>
  65. <li class="toctree-l2"><a class="reference internal" href="basic_webwallet.html#rescan-blockchain">Rescan Blockchain</a></li>
  66. </ul>
  67. </li>
  68. <li class="toctree-l1"><a class="reference internal" href="basic_cmd.html">Command Line Wallet User Guide</a><ul>
  69. <li class="toctree-l2"><a class="reference internal" href="basic_cmd.html#rescan-blockchain">Rescan Blockchain</a></li>
  70. </ul>
  71. </li>
  72. <li class="toctree-l1"><a class="reference internal" href="basic_coldwallet.html">Cold Wallet</a><ul>
  73. <li class="toctree-l2"><a class="reference internal" href="basic_coldwallet.html#creating-a-cold-storage-dero-wallet">Creating a cold storage DERO wallet</a></li>
  74. <li class="toctree-l2"><a class="reference internal" href="basic_coldwallet.html#creating-transactions-using-cold-wallet">Creating transactions using cold wallet</a></li>
  75. </ul>
  76. </li>
  77. <li class="toctree-l1"><a class="reference internal" href="basic_downloads.html">Downloads</a></li>
  78. <li class="toctree-l1"><a class="reference internal" href="basic_whitepaper.html">Whitepaper</a></li>
  79. <li class="toctree-l1"><a class="reference internal" href="basic_quickstart.html">Quickstart</a></li>
  80. <li class="toctree-l1"><a class="reference internal" href="basic_createrestorewallet.html">Create/Restore Wallet</a></li>
  81. <li class="toctree-l1"><a class="reference internal" href="basic_mining.html">Mining DERO</a><ul>
  82. <li class="toctree-l2"><a class="reference internal" href="basic_mining.html#mining-dero-with-windows">Mining DERO with Windows</a></li>
  83. <li class="toctree-l2"><a class="reference internal" href="basic_mining.html#mining-dero-with-linux">Mining DERO with Linux</a></li>
  84. </ul>
  85. </li>
  86. <li class="toctree-l1"><a class="reference internal" href="basic_runderofullnode.html">Run DERO Full Node</a></li>
  87. <li class="toctree-l1"><a class="reference internal" href="basic_trading.html">Trading</a></li>
  88. </ul>
  89. <p class="caption"><span class="caption-text">DERO Stargate RC2 Testnet</span></p>
  90. <ul>
  91. <li class="toctree-l1"><a class="reference internal" href="stargate_wallet.html">CLI Wallet User Guide (Stargate)</a><ul>
  92. <li class="toctree-l2"><a class="reference internal" href="stargate_wallet.html#downloading-wallet">Downloading Wallet</a></li>
  93. <li class="toctree-l2"><a class="reference internal" href="stargate_wallet.html#install-wallet">Install Wallet</a><ul>
  94. <li class="toctree-l3"><a class="reference internal" href="stargate_wallet.html#windows">Windows</a></li>
  95. </ul>
  96. </li>
  97. <li class="toctree-l2"><a class="reference internal" href="stargate_wallet.html#opening-wallet">Opening Wallet</a></li>
  98. <li class="toctree-l2"><a class="reference internal" href="stargate_wallet.html#create-new-wallet">Create New Wallet</a></li>
  99. <li class="toctree-l2"><a class="reference internal" href="stargate_wallet.html#recover-existing-wallet-from-seed">Recover existing wallet from seed</a></li>
  100. <li class="toctree-l2"><a class="reference internal" href="stargate_wallet.html#create-view-only-wallet">Create View only Wallet</a></li>
  101. <li class="toctree-l2"><a class="reference internal" href="stargate_wallet.html#cli-wallet-functions">CLI Wallet Functions</a><ul>
  102. <li class="toctree-l3"><a class="reference internal" href="stargate_wallet.html#display-account-address">Display Account Address</a></li>
  103. <li class="toctree-l3"><a class="reference internal" href="stargate_wallet.html#display-seed">Display Seed</a></li>
  104. <li class="toctree-l3"><a class="reference internal" href="stargate_wallet.html#display-keys-hex">Display Keys (Hex)</a></li>
  105. <li class="toctree-l3"><a class="reference internal" href="stargate_wallet.html#account-registration">Account Registration</a></li>
  106. <li class="toctree-l3"><a class="reference internal" href="stargate_wallet.html#display-wallet-pool">Display Wallet Pool</a></li>
  107. <li class="toctree-l3"><a class="reference internal" href="stargate_wallet.html#transfer-send-dero-to-another-wallet">Transfer (Send DERO) To Another Wallet</a></li>
  108. <li class="toctree-l3"><a class="reference internal" href="stargate_wallet.html#change-wallet-password">Change Wallet Password</a></li>
  109. <li class="toctree-l3"><a class="reference internal" href="stargate_wallet.html#transfer-all-balance-send-dero-to-another-wallet">Transfer all balance (send DERO) To Another Wallet</a></li>
  110. <li class="toctree-l3"><a class="reference internal" href="stargate_wallet.html#show-transaction-history">Show transaction history</a></li>
  111. <li class="toctree-l3"><a class="reference internal" href="stargate_wallet.html#rescan-transaction-history">Rescan transaction history</a></li>
  112. <li class="toctree-l3"><a class="reference internal" href="stargate_wallet.html#exit-menu-and-start-prompt">Exit menu and start prompt</a></li>
  113. <li class="toctree-l3"><a class="reference internal" href="stargate_wallet.html#exit-wallet">Exit Wallet</a></li>
  114. </ul>
  115. </li>
  116. <li class="toctree-l2"><a class="reference internal" href="stargate_wallet.html#command-line-help-functions">Command Line Help Functions</a></li>
  117. </ul>
  118. </li>
  119. <li class="toctree-l1"><a class="reference internal" href="stargate_wallet.html#gui-wallet-user-guide-stargate">GUI Wallet User Guide (Stargate)</a><ul>
  120. <li class="toctree-l2"><a class="reference internal" href="stargate_wallet.html#id1">Downloading Wallet</a></li>
  121. <li class="toctree-l2"><a class="reference internal" href="stargate_wallet.html#id2">Install Wallet</a></li>
  122. <li class="toctree-l2"><a class="reference internal" href="stargate_wallet.html#id3">Create New Wallet</a></li>
  123. <li class="toctree-l2"><a class="reference internal" href="stargate_wallet.html#id4">Recover existing wallet from seed</a></li>
  124. <li class="toctree-l2"><a class="reference internal" href="stargate_wallet.html#id5">Create View only Wallet</a></li>
  125. <li class="toctree-l2"><a class="reference internal" href="stargate_wallet.html#gui-wallet-functions">GUI Wallet Functions</a></li>
  126. </ul>
  127. </li>
  128. <li class="toctree-l1"><a class="reference internal" href="stargate_wallet.html#broswer-wallet-user-guide-stargate">Broswer Wallet User Guide (Stargate)</a><ul>
  129. <li class="toctree-l2"><a class="reference internal" href="stargate_wallet.html#id6">Create New Wallet</a></li>
  130. <li class="toctree-l2"><a class="reference internal" href="stargate_wallet.html#id7">Recover existing wallet from seed</a></li>
  131. <li class="toctree-l2"><a class="reference internal" href="stargate_wallet.html#id8">Create View only Wallet</a></li>
  132. <li class="toctree-l2"><a class="reference internal" href="stargate_wallet.html#id9">GUI Wallet Functions</a></li>
  133. </ul>
  134. </li>
  135. <li class="toctree-l1"><a class="reference internal" href="stargate_wallet.html#cold-wallet-stargate">Cold Wallet (Stargate)</a><ul>
  136. <li class="toctree-l2"><a class="reference internal" href="stargate_wallet.html#cli">CLI</a></li>
  137. <li class="toctree-l2"><a class="reference internal" href="stargate_wallet.html#gui">GUI</a></li>
  138. </ul>
  139. </li>
  140. <li class="toctree-l1"><a class="reference internal" href="stargate_dvm.html">DERO Virtual Machine</a><ul>
  141. <li class="toctree-l2"><a class="reference internal" href="stargate_dvm.html#dim-statement">DIM Statement</a></li>
  142. <li class="toctree-l2"><a class="reference internal" href="stargate_dvm.html#function-statement">Function statement</a></li>
  143. <li class="toctree-l2"><a class="reference internal" href="stargate_dvm.html#goto-statement">GOTO Statement</a></li>
  144. <li class="toctree-l2"><a class="reference internal" href="stargate_dvm.html#if">IF</a></li>
  145. <li class="toctree-l2"><a class="reference internal" href="stargate_dvm.html#let-statement">LET Statement</a></li>
  146. <li class="toctree-l2"><a class="reference internal" href="stargate_dvm.html#return-statement">Return Statement</a></li>
  147. <li class="toctree-l2"><a class="reference internal" href="stargate_dvm.html#support-functions">Support Functions</a></li>
  148. <li class="toctree-l2"><a class="reference internal" href="stargate_dvm.html#lotter-sc-guide">Lotter SC Guide</a></li>
  149. <li class="toctree-l2"><a class="reference internal" href="stargate_dvm.html#lottery-bas">Lottery.bas</a></li>
  150. <li class="toctree-l2"><a class="reference internal" href="stargate_dvm.html#token-sc-guide">Token SC Guide</a></li>
  151. <li class="toctree-l2"><a class="reference internal" href="stargate_dvm.html#token-bas">Token.bas</a></li>
  152. </ul>
  153. </li>
  154. </ul>
  155. <p class="caption"><span class="caption-text">Developer's Guide</span></p>
  156. <ul class="current">
  157. <li class="toctree-l1"><a class="reference internal" href="dev_astrobwt.html">AstroBWT</a><ul>
  158. <li class="toctree-l2"><a class="reference internal" href="dev_astrobwt.html#dero-astrobwt-cpu-mining-proof-of-work">DERO AstroBWT CPU Mining Proof-of-Work</a></li>
  159. <li class="toctree-l2"><a class="reference internal" href="dev_astrobwt.html#astrobwt-building">AstroBWT Building</a></li>
  160. <li class="toctree-l2"><a class="reference internal" href="dev_astrobwt.html#astrobwt-pseudo-code">AstroBWT Pseudo CODE</a></li>
  161. <li class="toctree-l2"><a class="reference internal" href="dev_astrobwt.html#explaining-astrobwt">Explaining AstroBWT</a></li>
  162. <li class="toctree-l2"><a class="reference internal" href="dev_astrobwt.html#astrobwt-hash-rates">AstroBWT Hash Rates</a></li>
  163. </ul>
  164. </li>
  165. <li class="toctree-l1 current"><a class="current reference internal" href="#">DHEBP (DERO Homomorphic Encryption Blockchain Protocol)</a><ul>
  166. <li class="toctree-l2"><a class="reference internal" href="#dhebp-alpha-code-to-demonstrate-fhe-blockchain-transactions">DHEBP alpha code to demonstrate FHE blockchain transactions.</a></li>
  167. <li class="toctree-l2"><a class="reference internal" href="#transaction-details">Transaction Details</a></li>
  168. <li class="toctree-l2"><a class="reference internal" href="#ring-size-tx-size-data">Ring Size, Tx Size data</a></li>
  169. <li class="toctree-l2"><a class="reference internal" href="#build">Build</a></li>
  170. <li class="toctree-l2"><a class="reference internal" href="#output-sample">Output Sample</a></li>
  171. </ul>
  172. </li>
  173. <li class="toctree-l1"><a class="reference internal" href="dev_graviton.html">Graviton</a><ul>
  174. <li class="toctree-l2"><a class="reference internal" href="dev_graviton.html#graviton-zfs-for-key-value-stores">Graviton: ZFS for Key-Value Stores</a></li>
  175. <li class="toctree-l2"><a class="reference internal" href="dev_graviton.html#standalone-alpha-release">Standalone Alpha Release</a></li>
  176. <li class="toctree-l2"><a class="reference internal" href="dev_graviton.html#features">Features</a></li>
  177. <li class="toctree-l2"><a class="reference internal" href="dev_graviton.html#benefits">Benefits</a></li>
  178. </ul>
  179. </li>
  180. <li class="toctree-l1"><a class="reference internal" href="dev_rpcapi.html">DERO Atlantis RPC API V2.0</a><ul>
  181. <li class="toctree-l2"><a class="reference internal" href="dev_rpcapi.html#introduction">1. Introduction</a><ul>
  182. <li class="toctree-l3"><a class="reference internal" href="dev_rpcapi.html#data-types">1.1 Data Types</a></li>
  183. <li class="toctree-l3"><a class="reference internal" href="dev_rpcapi.html#code-examples">1.2 Code Examples</a></li>
  184. </ul>
  185. </li>
  186. <li class="toctree-l2"><a class="reference internal" href="dev_rpcapi.html#quick-overview">2. Quick Overview</a></li>
  187. <li class="toctree-l2"><a class="reference internal" href="dev_rpcapi.html#dero-daemon-rpc-interface">3. DERO Daemon RPC Interface</a></li>
  188. <li class="toctree-l2"><a class="reference internal" href="dev_rpcapi.html#id1">3.1 Introduction</a></li>
  189. <li class="toctree-l2"><a class="reference internal" href="dev_rpcapi.html#methods-via-post">3.2 Methods via POST</a><ul>
  190. <li class="toctree-l3"><a class="reference internal" href="dev_rpcapi.html#getblockcount">3.2.1 getblockcount</a></li>
  191. <li class="toctree-l3"><a class="reference internal" href="dev_rpcapi.html#get-info">3.2.2 get_info</a></li>
  192. <li class="toctree-l3"><a class="reference internal" href="dev_rpcapi.html#getblocktemplate">3.2.3 getblocktemplate</a></li>
  193. <li class="toctree-l3"><a class="reference internal" href="dev_rpcapi.html#submitblock">3.2.4 submitblock</a></li>
  194. <li class="toctree-l3"><a class="reference internal" href="dev_rpcapi.html#getlastblockheader">3.2.5 getlastblockheader</a></li>
  195. <li class="toctree-l3"><a class="reference internal" href="dev_rpcapi.html#getblockheaderbyhash">3.2.6 getblockheaderbyhash</a></li>
  196. <li class="toctree-l3"><a class="reference internal" href="dev_rpcapi.html#getblockheaderbytopoheight">3.2.7 getblockheaderbytopoheight</a></li>
  197. <li class="toctree-l3"><a class="reference internal" href="dev_rpcapi.html#getblockheaderbyheight">3.2.8 getblockheaderbyheight</a></li>
  198. <li class="toctree-l3"><a class="reference internal" href="dev_rpcapi.html#getblock">3.2.9 getblock</a></li>
  199. <li class="toctree-l3"><a class="reference internal" href="dev_rpcapi.html#gettxpool">3.2.10 gettxpool</a></li>
  200. </ul>
  201. </li>
  202. <li class="toctree-l2"><a class="reference internal" href="dev_rpcapi.html#methods-via-get">3.3 Methods via GET</a><ul>
  203. <li class="toctree-l3"><a class="reference internal" href="dev_rpcapi.html#getheight">3.3.1 getheight</a></li>
  204. <li class="toctree-l3"><a class="reference internal" href="dev_rpcapi.html#gettransactions">3.3.2 gettransactions</a></li>
  205. <li class="toctree-l3"><a class="reference internal" href="dev_rpcapi.html#sendrawtransaction">3.3.3 sendrawtransaction</a></li>
  206. <li class="toctree-l3"><a class="reference internal" href="dev_rpcapi.html#is-key-image-spent">3.3.4 is_key_image_spent</a></li>
  207. </ul>
  208. </li>
  209. <li class="toctree-l2"><a class="reference internal" href="dev_rpcapi.html#dero-wallet-rpc-interface">4 DERO Wallet RPC Interface</a></li>
  210. <li class="toctree-l2"><a class="reference internal" href="dev_rpcapi.html#id2">4.1 Introduction</a></li>
  211. <li class="toctree-l2"><a class="reference internal" href="dev_rpcapi.html#id3">4.2 Methods via POST</a><ul>
  212. <li class="toctree-l3"><a class="reference internal" href="dev_rpcapi.html#getaddress">4.2.1 getaddress</a></li>
  213. <li class="toctree-l3"><a class="reference internal" href="dev_rpcapi.html#getbalance">4.2.2 getbalance</a></li>
  214. <li class="toctree-l3"><a class="reference internal" href="dev_rpcapi.html#id4">4.2.3 getheight</a></li>
  215. <li class="toctree-l3"><a class="reference internal" href="dev_rpcapi.html#transfer">4.2.4 transfer</a></li>
  216. <li class="toctree-l3"><a class="reference internal" href="dev_rpcapi.html#transfer-split">4.2.5 transfer_split</a></li>
  217. <li class="toctree-l3"><a class="reference internal" href="dev_rpcapi.html#get-bulk-payments">4.2.6 get_bulk_payments</a></li>
  218. <li class="toctree-l3"><a class="reference internal" href="dev_rpcapi.html#query-key">4.2.7 query_key</a></li>
  219. <li class="toctree-l3"><a class="reference internal" href="dev_rpcapi.html#make-integrated-address">4.2.8 make_integrated_address</a></li>
  220. <li class="toctree-l3"><a class="reference internal" href="dev_rpcapi.html#split-integrated-address">4.2.9 split_integrated_address</a></li>
  221. <li class="toctree-l3"><a class="reference internal" href="dev_rpcapi.html#get-transfer-by-txid">4.2.10 get_transfer_by_txid</a></li>
  222. <li class="toctree-l3"><a class="reference internal" href="dev_rpcapi.html#get-transfers">4.2.11 get_transfers</a></li>
  223. </ul>
  224. </li>
  225. </ul>
  226. </li>
  227. </ul>
  228. <p class="caption"><span class="caption-text">Useful Links</span></p>
  229. <ul>
  230. <li class="toctree-l1"><a class="reference internal" href="usefull_importantlinks.html">Links</a><ul>
  231. <li class="toctree-l2"><a class="reference internal" href="usefull_importantlinks.html#dero-explorer">DERO Explorer</a></li>
  232. <li class="toctree-l2"><a class="reference internal" href="usefull_importantlinks.html#dero-webwallet">DERO Webwallet</a></li>
  233. <li class="toctree-l2"><a class="reference internal" href="usefull_importantlinks.html#dero-wiki">DERO Wiki</a></li>
  234. <li class="toctree-l2"><a class="reference internal" href="usefull_importantlinks.html#dero-forum">DERO Forum</a></li>
  235. <li class="toctree-l2"><a class="reference internal" href="usefull_importantlinks.html#dero-social-media">DERO Social Media</a></li>
  236. <li class="toctree-l2"><a class="reference internal" href="usefull_importantlinks.html#dero-community-channels">DERO Community Channels</a></li>
  237. </ul>
  238. </li>
  239. </ul>
  240. </div>
  241. </div>
  242. </nav>
  243. <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
  244. <nav class="wy-nav-top" aria-label="top navigation">
  245. <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
  246. <a href="../index.html">DERO Documentation</a>
  247. </nav>
  248. <div class="wy-nav-content">
  249. <div class="rst-content">
  250. <div role="navigation" aria-label="breadcrumbs navigation">
  251. <ul class="wy-breadcrumbs">
  252. <li><a href="../index.html" class="icon icon-home"></a> &raquo;</li>
  253. <li>DHEBP (DERO Homomorphic Encryption Blockchain Protocol)</li>
  254. <li class="wy-breadcrumbs-aside">
  255. <a href="../_sources/rtd_pages/dev_DHEBP.rst.txt" rel="nofollow"> View page source</a>
  256. </li>
  257. </ul>
  258. <hr/>
  259. </div>
  260. <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
  261. <div itemprop="articleBody">
  262. <div class="section" id="dhebp-dero-homomorphic-encryption-blockchain-protocol">
  263. <span id="dev-dhebp"></span><h1>DHEBP (DERO Homomorphic Encryption Blockchain Protocol)<a class="headerlink" href="#dhebp-dero-homomorphic-encryption-blockchain-protocol" title="Permalink to this headline">¶</a></h1>
  264. <div class="section" id="dhebp-alpha-code-to-demonstrate-fhe-blockchain-transactions">
  265. <h2>DHEBP alpha code to demonstrate FHE blockchain transactions.<a class="headerlink" href="#dhebp-alpha-code-to-demonstrate-fhe-blockchain-transactions" title="Permalink to this headline">¶</a></h2>
  266. </div>
  267. <div class="section" id="transaction-details">
  268. <h2>Transaction Details<a class="headerlink" href="#transaction-details" title="Permalink to this headline">¶</a></h2>
  269. <p>Each transaction consists of 2 parts:</p>
  270. <ol class="arabic simple">
  271. <li><p>Statement which contains ring members keys, commitments, encrypted balances ( this grows linear ) basicaly 4 curve points per ring member.</p></li>
  272. <li><dl class="simple">
  273. <dt>Proof which grows log in ring members for Eg :</dt><dd><p>8 ring size proof is only 1997 bytes
  274. 512 ring size proof is only 3965 bytes</p>
  275. </dd>
  276. </dl>
  277. </li>
  278. </ol>
  279. </div>
  280. <div class="section" id="ring-size-tx-size-data">
  281. <h2>Ring Size, Tx Size data<a class="headerlink" href="#ring-size-tx-size-data" title="Permalink to this headline">¶</a></h2>
  282. <div class="highlight-php notranslate"><div class="highlight"><pre><span></span><span class="x">Ring size, tx size (fixed) in bytes irrespective of balance</span>
  283. <span class="x">2 1669 bytes ( 328 byte statement, 1341 bytes proof )</span>
  284. <span class="x">4 2261 bytes ( 592 byte statement, 1669 bytes proof )</span>
  285. <span class="x">8 3117 bytes ( 1120 byte statement, 1997 bytes proof )</span>
  286. <span class="x">16 4501 bytes ( 2176 byte statement, 2325 bytes proof )</span>
  287. <span class="x">32 6941 bytes ( 4288 byte statement, 2653 bytes proof )</span>
  288. <span class="x">64 11493 bytes ( 8512 byte statement, 2981 bytes proof )</span>
  289. <span class="x">128 20269 bytes ( 16960 byte statement, 3309 bytes proof )</span>
  290. <span class="x">256 37493 bytes ( 33856 byte statement, 3637 bytes proof )</span>
  291. <span class="x">512 71613 bytes ( 67648 byte statement, 3965 bytes proof )</span>
  292. </pre></div>
  293. </div>
  294. </div>
  295. <div class="section" id="build">
  296. <h2>Build<a class="headerlink" href="#build" title="Permalink to this headline">¶</a></h2>
  297. <ol class="arabic simple">
  298. <li><p>Switch to directory containing this Readme.md file</p></li>
  299. <li><p>export GOPATH=pwd</p></li>
  300. <li><p>go run <a href="#id1"><span class="problematic" id="id2">*</span></a>.go</p></li>
  301. </ol>
  302. <p>Note: Developed and tested on linux go version 1.12.7</p>
  303. </div>
  304. <div class="section" id="output-sample">
  305. <h2>Output Sample<a class="headerlink" href="#output-sample" title="Permalink to this headline">¶</a></h2>
  306. <div class="highlight-php notranslate"><div class="highlight"><pre><span></span><span class="x">Creating Transaction</span>
  307. <span class="x">I0706 16:05:28.258801 93136 main.go:101] Transferring 10 from sender to receiver (ring size 8) tx size 3117 bytes</span>
  308. <span class="x">I0706 16:05:28.258810 93136 main.go:102] Total tx size 3117 bytes ( 1120 byte statement, 1997 bytes proof )</span>
  309. <span class="x">I0706 16:05:28.341387 93136 main.go:107] Transfer successful</span>
  310. <span class="x">I0706 16:05:28.343528 93136 main.go:116] Sender Balance 150 - 10 = 140</span>
  311. <span class="x">I0706 16:05:28.343533 93136 main.go:117] Receiver Balance 0 + 10 = 10</span>
  312. <span class="x">I0706 16:05:28.345662 93136 main.go:98]</span>
  313. <span class="x">Creating Transaction</span>
  314. <span class="x">I0706 16:05:28.568605 93136 main.go:101] Transferring 90 from sender to receiver (ring size 16) tx size 4501 bytes</span>
  315. <span class="x">I0706 16:05:28.568614 93136 main.go:102] Total tx size 4501 bytes ( 2176 byte statement, 2325 bytes proof )</span>
  316. <span class="x">I0706 16:05:28.680647 93136 main.go:107] Transfer successful</span>
  317. <span class="x">I0706 16:05:28.682788 93136 main.go:116] Sender Balance 140 - 90 = 50</span>
  318. <span class="x">I0706 16:05:28.682792 93136 main.go:117] Receiver Balance 10 + 90 = 100</span>
  319. <span class="x">I0706 16:05:28.682796 93136 main.go:74]</span>
  320. <span class="x"> Successful</span>
  321. </pre></div>
  322. </div>
  323. </div>
  324. </div>
  325. </div>
  326. </div>
  327. <footer>
  328. <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
  329. <a href="dev_graviton.html" class="btn btn-neutral float-right" title="Graviton" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
  330. <a href="dev_astrobwt.html" class="btn btn-neutral float-left" title="AstroBWT" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
  331. </div>
  332. <hr/>
  333. <div role="contentinfo">
  334. <p>
  335. &#169; Copyright 2020, DERO Foundation.
  336. </p>
  337. </div>
  338. Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
  339. <a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
  340. provided by <a href="https://readthedocs.org">Read the Docs</a>.
  341. </footer>
  342. </div>
  343. </div>
  344. </section>
  345. </div>
  346. <script type="text/javascript">
  347. jQuery(function () {
  348. SphinxRtdTheme.Navigation.enable(true);
  349. });
  350. </script>
  351. </body>
  352. </html>