Provably Fair
ஒவ்வொரு BC Originals முடிவையும் சர்வர் சீடு, கிளையன்ட் சீடு மற்றும் நான்ஸ் மூலம் சரிபார்க்கலாம். ஒரு கேமைத் தேர்ந்தெடுத்து, அதன் முடிவு எப்படிக் கணக்கிடப்படுகிறது என்று பாருங்கள்.
Parity
சரிபார்Fairness Verification
import CryptoJS from "crypto-js";
const salt = "0000000000000000000301e2801a9a9598bfb114e574a91a887f2132f33047e6";
function parityValueFromHash(seed, salt) {
let hash = String(CryptoJS.HmacSHA256(CryptoJS.enc.Hex.parse(seed), salt));
const hex = hash.slice(0, 8);
const hexNumber = parseInt(hex, 16);
return Math.floor((hexNumber*10)/0x100000000);
}
const hash = "game hash";
console.log( "result =>", parityValueFromHash(hash, salt));