create account

Kryptogamers 100% Tamper Proof Blockchain Powered Provably Fair Card Shuffling Algorithm Explained by kryptogames

View this thread on: hive.blogpeakd.comecency.com
· @kryptogames · (edited)
$29.02
Kryptogamers 100% Tamper Proof Blockchain Powered Provably Fair Card Shuffling Algorithm Explained
Hope you all are having a great time playing blackjack. This post was due a long time as we were a bit busy adding new games, reward systems and tokens. Finally, we are here after 2 months of rigorous testing of our triple factor tamper-proof blockchain powered card shuffling RNG algorithm. We want each one of you to understand exactly how this works so that you can enjoy our games completely without worrying about fairness and security.

<center>[kryptogamers.com](https://kryptogamers.com)</center>

### Tamper-Proof Triple Factor RNG Algorithm

We use the same algorithm for generating cards in blackjack as well as for generating numbers in dice. So we will try to make it as easy as possible for you to understand it in detail.

##### <center>Blackjack</center>

-	When you click on Verify button next to any blackjack bet, you see a sequence such as 4,12,9,34,27,… printed in the last row. These are the cards dealt to the player as well as the dealer one by one starting with the player. Here’s how that sequence is generated.
-	Each game has a new sequence of cards generated out of exactly 4 decks.
-	Every particular sequence of cards is generated by 3 major parameters: 
o	Client Seed : Generated by the player
o	Server Seed : Generated by the server
o	Steemit Transaction ID : Generated by the Steem Blockchain

-	Due to a combination of these 3 parameters, it is impossible for anybody to know the sequence or to manipulate the card sequence in any manner.

-	The above 3 parameters is fed into the SHA-512 cryptographic hash algorithm to generate the HMAC hash using the below line of code:

```javascript 
crypto.createHmac('SHA512',client_seed + trx_id.substring(0,10)).update(server_seed).digest('hex');
```
-	The Resulting Hash of length 128 characters generated in hexadecimal looks similar to this:
‘3c658c63b1735bc30c622f909488c0e4d00d69d8370064abaf1cf6c96a2aa201dc4d6fb10a5ccd8394bccc6e2e0c11e676a9fd99e50ef000a1db4eefd59a0f71’

-	Each character in this 128 character long hash is of 128 bits
-	So we split the hash into group of 2 characters each (256 bits) and convert each group into an integer which can take any value between 0 and 255 (256 possibilities)
Eg:  ‘3c’ => 60, ‘65’ => 101, ‘8c’ => 140, ‘63’ => 99,............. ‘71’ => 113 

-	Now we have a sequence of 64 integers each of whose values ranges from 0 to 255: [60,101,140,99,……….113]
-	A deck has 52 cards => 4 decks = 208 cards => Integer values should be between 1 to 208.
-	So we discard all integers whose value is greater than or equal to 208. 
-	Then we divide each integer with 52 and keep the remainders => [8,49,36,47,………9]
-	This is the final sequence printed in the last row of the verify button after all the calculations.
-	Add 1 to each one of them => [9,50,37,48,……..10]
-	Now each integer can be any card from 1 to 52 in the order spades, hearts, clubs and diamonds such that 1-10 corresponds to cards 1 through 10 and 11, 12, 13 corresponds to jack, queen and king.

<br>
##### <center>Dice</center>
-	Each rolled number is generated by the same 3 parameters: 
o	Client Seed : Generated by the player
o	Server Seed : Generated by the server
o	Steemit Transaction ID : Generated by the Steem Blockchain
-	The above 3 parameters is fed into the SHA-256 cryptographic hash algorithm to generate the HMAC hash using the below line of code:
```javascript
crypto.createHmac('SHA256',client_seed + trx_id.substring(0,10)).update(server_seed).digest('hex');
```

-	The resulting hash of length 64 characters looks similar to this:
‘3660b115dacc385fd13ae21ff3cd904aab05faa642c3adb009467fe2801eae25’
-	It is then converted to integer and divided by 100 to get a number between 0 and 99.
-	Then 1 is added to the remainder to get an integer between 1 and 100 to get the final rolled number.


<br>
### <center>How to Verify Any Past Transaction</center>
<br>
Due to the immutability of blockchain and thus of the steemit transaction-id which is used as a salt in the algorithm, it is impossible to tamper with the results at any point in the past or the future. So, any past transaction can be verified using the transaction id in the Verify Button in the Provably Fair Section of the Website. Recent transactions can be verified only after 3 minutes as each server seed is only exposed after 3 minutes.

<center>[kryptogamers.com](https://kryptogamers.com)</center>

If you still have any questions, contact us on discord anytime and we will be happy to help you out.

Stay Happy! Stay Motivated!
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 6 others
properties (23)
authorkryptogames
permlinkkryptogamers-100-tamper-proof-blockchain-powered-provably-fair-card-shuffling-algorithm-explained
categorysteem
json_metadata{"tags":["steem"],"app":"steemit/0.1","format":"markdown","links":["https://kryptogamers.com"]}
created2019-03-29 07:36:39
last_update2019-03-29 07:46:21
depth0
children4
last_payout2019-04-05 07:36:39
cashout_time1969-12-31 23:59:59
total_payout_value21.856 HBD
curator_payout_value7.159 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length4,495
author_reputation71,007,148,696,801
root_title"Kryptogamers 100% Tamper Proof Blockchain Powered Provably Fair Card Shuffling Algorithm Explained"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id82,140,856
net_rshares42,209,709,611,112
author_curate_reward""
vote details (70)
@fullcoverbetting ·
Thanks for clearing this all out!
I can recommend playing on kryptogamers! Really enjoy the blackjack!
properties (22)
authorfullcoverbetting
permlinkre-kryptogames-kryptogamers-100-tamper-proof-blockchain-powered-provably-fair-card-shuffling-algorithm-explained-20190329t104304404z
categorysteem
json_metadata{"community":"busy","app":"busy/2.5.6","format":"markdown","tags":["steem"],"users":[],"links":[],"image":[]}
created2019-03-29 10:43:06
last_update2019-03-29 10:43:06
depth1
children1
last_payout2019-04-05 10:43:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length102
author_reputation157,900,003,291,928
root_title"Kryptogamers 100% Tamper Proof Blockchain Powered Provably Fair Card Shuffling Algorithm Explained"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id82,146,880
net_rshares0
@kryptogames ·
Thanks  :)
properties (22)
authorkryptogames
permlinkre-fullcoverbetting-re-kryptogames-kryptogamers-100-tamper-proof-blockchain-powered-provably-fair-card-shuffling-algorithm-explained-20190329t114601910z
categorysteem
json_metadata{"tags":["steem"],"app":"steemit/0.1"}
created2019-03-29 11:46:06
last_update2019-03-29 11:46:06
depth2
children0
last_payout2019-04-05 11:46:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length10
author_reputation71,007,148,696,801
root_title"Kryptogamers 100% Tamper Proof Blockchain Powered Provably Fair Card Shuffling Algorithm Explained"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id82,148,871
net_rshares0
@steemitboard ·
Congratulations @kryptogames! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

<table><tr><td>https://steemitimages.com/60x60/http://steemitboard.com/notifications/firstvote.png</td><td>You made your First Vote</td></tr>
</table>

<sub>_You can view [your badges on your Steem Board](https://steemitboard.com/@kryptogames) and compare to others on the [Steem Ranking](http://steemitboard.com/ranking/index.php?name=kryptogames)_</sub>
<sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub>



**Do not miss the last post from @steemitboard:**
<table><tr><td><a href="https://steemit.com/steem/@steemitboard/3-years-on-steem-happy-birthday-the-distribution-of-commemorative-badges-has-begun"><img src="https://steemitimages.com/64x128/http://u.cubeupload.com/arcange/BG6u6k.png"></a></td><td><a href="https://steemit.com/steem/@steemitboard/3-years-on-steem-happy-birthday-the-distribution-of-commemorative-badges-has-begun">3 years on Steem - The distribution of commemorative badges has begun!</a></td></tr><tr><td><a href="https://steemit.com/steem/@steemitboard/happy-birthday-the-steem-blockchain-is-running-for-3-years"><img src="https://steemitimages.com/64x128/http://u.cubeupload.com/arcange/BG6u6k.png"></a></td><td><a href="https://steemit.com/steem/@steemitboard/happy-birthday-the-steem-blockchain-is-running-for-3-years">Happy Birthday! The Steem blockchain is running for 3 years.</a></td></tr></table>

###### [Vote for @Steemitboard as a witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1) to get one more award and increased upvotes!
properties (22)
authorsteemitboard
permlinksteemitboard-notify-kryptogames-20190329t101623000z
categorysteem
json_metadata{"image":["https://steemitboard.com/img/notify.png"]}
created2019-03-29 10:16:21
last_update2019-03-29 10:16:21
depth1
children0
last_payout2019-04-05 10:16:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,706
author_reputation38,975,615,169,260
root_title"Kryptogamers 100% Tamper Proof Blockchain Powered Provably Fair Card Shuffling Algorithm Explained"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id82,145,825
net_rshares0
@tts ·
To listen to the audio version of this article click on the play image.
[![](https://s18.postimg.org/51o0kpijd/play200x46.png)](http://ec2-52-72-169-104.compute-1.amazonaws.com/kryptogames__kryptogamers-100-tamper-proof-blockchain-powered-provably-fair-card-shuffling-algorithm-explained.mp3)
Brought to you by [@tts](https://steemit.com/tts/@tts/introduction). If you find it useful please consider upvoting this reply.
properties (22)
authortts
permlinkre-kryptogamers-100-tamper-proof-blockchain-powered-provably-fair-card-shuffling-algorithm-explained-20190329t102151
categorysteem
json_metadata""
created2019-03-29 10:21:51
last_update2019-03-29 10:21:51
depth1
children0
last_payout2019-04-05 10:21:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length420
author_reputation-4,535,154,553,995
root_title"Kryptogamers 100% Tamper Proof Blockchain Powered Provably Fair Card Shuffling Algorithm Explained"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id82,146,068
net_rshares0