🔒 HASHSCORE Now Provably Fair - Thanks to @minus-pi!



TL;DR
HASHSCORE games are now provably fair using cryptographic secrets that change every minute. Players can no longer predict scores before sending transactions, and every game result can be independently verified. This upgrade was inspired by feedback from @minus-pi.
What Changed?
The Problem
@minus-pi discovered that our hash scores could be predicted before sending transactions. Since transaction hashes are known immediately after signing (but before broadcasting), a clever player could:
- Sign a transaction locally
- Calculate the resulting hash score using our public algorithm
- Only broadcast transactions with favorable scores
- Reject unfavorable scores and try again
This defeated the randomness of the game. Props to @minus-pi for bringing this to our attention and demonstrating it responsibly!
The Solution: Provably Fair Gaming
We've implemented a provably fair system inspired by @magicdice's approach:
How it works:
- Server-side secrets - Our server generates a random 16-character secret every minute
- Salted hash calculation - Your score is calculated from
SHA256(transaction_hash + secret)instead of the raw transaction hash - Unpredictable - Since you don't know the secret when you send your transaction, you can't predict your score
- Transparent - After your game completes, we reveal the secret in your reward memo
- Verifiable - You can independently verify your score was calculated fairly
The Formula:
salted_hash = SHA256(your_transaction_hash + server_secret)
your_score = sum of all hex characters in salted_hash
Instant Verification
Every reward transaction now includes:
- Your secret - The exact secret used for your game
- Verification link - One-click verification at https://hashscore.fun/verify.php
Example memo:
Result: HASHSCORE Default | Win High | Your HASHSCORE: 463 |
Secret: K1jyq5sV3PHZuhSs |
Verify: https://hashscore.fun/verify.php?tx=abc123...&s=K1jyq5sV3PHZuhSs
Click the verify link and you'll see:
- ✅ Your transaction hash
- ✅ The secret used
- ✅ Recalculated score (matches your result)
- ✅ Proof the game was fair
Why This Matters
Before: Trust-Based
You had to trust that our system was fair. There was no way to verify.
After: Cryptographically Verifiable
- Transparent - The exact formula is public
- Unpredictable - Secrets change every minute
- Verifiable - You can prove every game was fair
- Fair - Neither player nor house can manipulate results
This is the same proven system used by other successful blockchain gaming platforms like @magicdice.
Real-Time Results
We've also upgraded the user experience:
Old way: Instant preview showing predicted score (now we know this was wrong!)
New way:
- Transaction sent → Shows "Processing..."
- Polls server every 10 seconds
- When complete → Shows real results:
- Your actual hash score (with secret)
- Win result (High/Low/Average)
- Reward amount
- Secret and verification link
- One-click to verify fairness
Technical Details (For the Nerds 🤓)
Secret Rotation:
- New secret generated every 60 seconds
- Secrets are cryptographically random (16 alphanumeric characters)
- Secret determined by transaction timestamp, not processing time
- Same transaction always uses same secret (deterministic)
Database Storage:
- Every transaction stores which secret was used
- Full audit trail for transparency
- Secrets stored in indexed table for fast verification
Verification Process:
// What you can verify:
$salted_hash = hash('sha256', $your_tx_hash . $revealed_secret);
$your_score = calculate_score($salted_hash);
// Compare with the score we gave you - they match!
Shoutout to @minus-pi 🎉
Big thanks to @minus-pi for:
- Discovering the vulnerability
- Reporting it responsibly
- Demonstrating it clearly (even spelling "Rising" to prove it!)
- Recommending the provably fair approach
- Pointing us to @magicdice's implementation
This is exactly the kind of community feedback that makes Hive projects better. Thank you! 🙏
What This Means for Players
✅ Fair gameplay - No one can game the system anymore
✅ Transparency - Every result is verifiable
✅ Trust - Don't trust us, verify us!
✅ Same great games - All games still work exactly the same
✅ Better UX - Real-time results with verification links
Try It Out!
- Play any HASHSCORE game: https://hashscore.fun
- After your game, check your reward memo
- Click the verification link
- See the cryptographic proof your game was fair!
Play fair. Verify everything. Welcome to the new HASHSCORE.
🎲 https://hashscore.fun
🔒 Provably Fair | Built on Hive | Powered by Community Feedback
#hive #gaming #hashscore #provablyfair #blockchain #gaming #transparency