1
0
mirror of https://github.com/GOSTSec/gostcoin.i2p synced 2025-03-12 13:21:28 +00:00

Merge pull request #16 from xcps/master

Add GSTBTC graph
This commit is contained in:
R4SAS 2017-09-04 22:57:41 +03:00 committed by GitHub
commit 555848228b
3 changed files with 12 additions and 3 deletions

View File

@ -45,3 +45,6 @@ li:last-child::after {
font-style: 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</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>
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.
<br><br><br>
<h2 class="red ofplot">GST/BTC exchange rate chart</h2>
<div class="plot"><img src="img/GSTBTC_graph.png" /></div>
</body>
</html>

View File

@ -11,7 +11,7 @@ import math
import json
import urllib
PLOT_TITLE = 'BTC_GST graph'
PLOT_TITLE = ''
Y_AXIS_NAME = 'BTC price'
PNG_FILENAME = '../img/GSTBTC_graph.png'
DPI = 60 # affects the size of output image
@ -65,7 +65,10 @@ def draw_plot(oneline, secondline, dates):
plt.ylabel(Y_AXIS_NAME)
plt.title(PLOT_TITLE)
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():
data = get_data_from_nvspc()