1
0
mirror of https://github.com/GOSTSec/gostcoin.i2p synced 2025-02-10 22:04:14 +00:00

Add GSTBTC graph

This commit is contained in:
xcps 2017-09-05 00:33:17 +05:00
parent 981cace439
commit 4748a717b2
3 changed files with 12 additions and 3 deletions

View File

@ -45,3 +45,6 @@ li:last-child::after {
font-style: normal; font-style: normal;
font-weight: normal; font-weight: normal;
} }
h2.ofplot { margin-bottom: .5em; }
.plot { margin: 0 auto; }

View File

@ -39,7 +39,10 @@
<font class="red">Gostcoin (GST)</font> is a digital currency based on blockchain technology. It allows instant payments worldwide with focus on privacy and security of its users.<br> <font class="red">Gostcoin (GST)</font> is a digital currency based on blockchain technology. It allows instant payments worldwide with focus on privacy and security of its users.<br>
<font class="red">GOSTCoin</font> uses Russian government standard cryptography: <font class="red">GOST R 34.10-2012</font> for signature and <font class="red">GOST R 34.11-2012</font> for hash.<br> <font class="red">GOSTCoin</font> uses Russian government standard cryptography: <font class="red">GOST R 34.10-2012</font> for signature and <font class="red">GOST R 34.11-2012</font> for hash.<br>
<br> <br>
Hash and Proof-of-work uses <font class="red">GOST_R_3411_2012-256(GOST_R_3411_2012-512())</font> function (256 bit hashsum over 512 bit hashsum of string), assumed in Big Endian.<br> Hash and Proof-of-work uses <font class="red">GOST_R_3411_2012-256(GOST_R_3411_2012-512())</font> function (256 bit hashsum over 512 bit hashsum of string), assumed in Big Endian.<br>
For signatures <font class="red">Gostcoin</font> uses <font class="red">GOST_R_3410_2012</font> algorithm with CryptoPro XchA (1.2.643.2.2.36.0) parameters set over the hash specified above. For signatures <font class="red">Gostcoin</font> uses <font class="red">GOST_R_3410_2012</font> algorithm with CryptoPro XchA (1.2.643.2.2.36.0) parameters set over the hash specified above.
<br><br><br>
<h2 class="red ofplot">GST/BTC exchange rate chart</h2>
<div class="plot"><img src="img/GSTBTC_graph.png" /></div>
</body> </body>
</html> </html>

View File

@ -11,7 +11,7 @@ import math
import json import json
import urllib import urllib
PLOT_TITLE = 'BTC_GST graph' PLOT_TITLE = ''
Y_AXIS_NAME = 'BTC price' Y_AXIS_NAME = 'BTC price'
PNG_FILENAME = '../img/GSTBTC_graph.png' PNG_FILENAME = '../img/GSTBTC_graph.png'
DPI = 60 # affects the size of output image DPI = 60 # affects the size of output image
@ -65,7 +65,10 @@ def draw_plot(oneline, secondline, dates):
plt.ylabel(Y_AXIS_NAME) plt.ylabel(Y_AXIS_NAME)
plt.title(PLOT_TITLE) plt.title(PLOT_TITLE)
plt.grid(True) plt.grid(True)
plt.savefig(PNG_FILENAME, bbox_inches='tight', dpi=DPI) plt.savefig(PNG_FILENAME,
bbox_inches='tight',
dpi=DPI,
transparent=True)
def generate_graphic(): def generate_graphic():
data = get_data_from_nvspc() data = get_data_from_nvspc()