Altcoins Talks - Cryptocurrency Forum
Crypto Discussion Forum => Forum related => Topic started by: bitmover on January 05, 2024, 01:41:44 AM
-
I created this simple tool to give more transparency and credibility to giveaways in bitcointalk.
I see there are lot of giveaways here, and this tool would fit perfectly many of them.
I would to present you the "Giveaway Manager"
(https://www.talkimg.com/images/2024/01/05/sM40q.png)
https://bitcoindata.science/giveaway-manager/ (https://bitcoindata.science/giveaway-manager/)
Giveaways can now have their results easily verified.
It is also possible to save and share the results in a unique URL.
How it Works
Provably fair giveaway manager
As the blockhash is just a number, its last 6 digits is converted to decimal using this function:
var decimal = parseInt(blockhash.slice(-6), 16);
Now we have an integer (0 to 16777215) from the blockhash.
After dividing this decimal by the number of participants, we use the modulo operator (%) to get the division remainder becomes the index_number.
This index_number is applied in the participants list, to get the position of the winner.
var index_number = decimal % competitors.length;
var winner = competitors[index_number];
For additional winners, the past winners are removed from the list and one more digit is added from the blockhash. A maximum 30 was added to avoid working with big numbers.
If you find this useful , please refer this tool in upcoming giveaways.
-
Thank you bitmover
You were one of the distinguished members of the BitcoinTalk forum and provided many useful tools and high-quality posts there, and I see that you do the same thing in altcoinstalks forum.
Yes, I remember this tool well in BitcoinTalk forum. Giveaway Manager was really useful and was used by many, and I hope giveaways here will benefit from it as well.