I have been working over the past few months, greatly assisted by @snipatomic and @ILikeChocolate, to formally document in a mathematically rigorous way the new expected time to stake algorithm I coded which is in wallet version 3.7.12.0+. I also thought it important to cover related concepts. This has turned into a blue paper covering the staking process from a probability point of view (not security). This paper is a formal mathematical treatment of the staking process in Gridcoin's version of PoSv2 and covers the following areas: - Basic Staking Probability - Expected Time to Stake (without cooldown) - Net Weight vs Difficulty - Cooldown (including cooldown corrected ETTS and staking efficiency) - Retargeting algorithm (which controls difficulty) - The Wallet's Approach to ETTS in 3.7.12.0+ The paper is about 90% complete, but is good enough to ask for comments from the public. The main things left to do are minor additional editing, better graphs, and a cross-reference between the variable names in the paper and the actual code itself. Note that the concepts in this paper are applicable to other PoSv2 coins, with appropriate modification of the constants. https://drive.google.com/open?id=1opG4MLwofOCoVg6a-DhVM8aP3nxKXla_ You will recognize all of the thumb rules I have published here on Steemit during the past few months, useful for ETTS calculations and the upcoming CBR. For ready reference here are the important ones. (Note I have changed the formal mathematical variable names back to words to be easier on folks.): ### For a wallet with n equally sized UTXOs... (UTXO Value) = Balance / n ### For ETTS... (ETTS without cooldown) = (10000/Balance) * Difficulty or (ETTS without cooldown) = (1/960) * (net weight) / Balance (ETTS with cooldown) = ((cooldown time) / n) + (ETTS without cooldown) ### Net Weight... (net weight) = 10000000 * Difficulty ### UTXO size for desired efficiency (UTXO value) = 15000 * Difficulty * (1/E + 1), where E is the desired efficiency % as a decimal, i.e. 95% is 0.95. Note that E = (staking frequency with cooldown) / (ideal staking frequency without cooldown) which is also E= (ETTS without cooldown) / (ETTS with cooldown) ### ETTS modified for different "confidence levels" besides the 63% for the expected value version... (ETTS with cooldown at Confidence P) =((cooldown time) / n) - ln(1 - P) * (10000/Balance) * Difficulty In particular, the 80% level used in the wallet gives (ETTS with cooldown at 80%) = ((cooldown time) / n) * (16000/Balance) * Difficulty
author | jamescowens |
---|---|
permlink | gridcoin-blue-paper-section-for-expected-time-to-stake-net-weight-and-related-concepts |
category | gridcoin |
json_metadata | {"tags":["gridcoin","beyondbitcoin","cryptocurrency"],"users":["snipatomic","ilikechocolate"],"links":["https://drive.google.com/open?id=1opG4MLwofOCoVg6a-DhVM8aP3nxKXla_"],"app":"steemit/0.1","format":"markdown"} |
created | 2018-09-09 13:48:12 |
last_update | 2018-09-09 13:50:00 |
depth | 0 |
children | 5 |
last_payout | 2018-09-16 13:48:12 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 4.111 HBD |
curator_payout_value | 1.248 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 2,555 |
author_reputation | 2,842,775,752,710 |
root_title | "Gridcoin Blue Paper Section for Expected Time to Stake, Net Weight, and Related Concepts" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 70,790,086 |
net_rshares | 5,028,401,425,681 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
hr1 | 0 | 53,581,543,806 | 0.02% | ||
cm-steem | 0 | 574,934,474,830 | 100% | ||
vortac | 0 | 4,204,846,984,109 | 100% | ||
maxiandr | 0 | 714,526,553 | 100% | ||
remlaps | 0 | 6,850,223,509 | 25% | ||
gunde | 0 | 293,627,194 | 100% | ||
remlaps1 | 0 | 19,333,506,368 | 25% | ||
anasz | 0 | 2,028,387,636 | 100% | ||
barton26 | 0 | 10,835,390,951 | 100% | ||
nateonthenet | 0 | 3,309,553,569 | 100% | ||
minersean | 0 | 861,318,051 | 100% | ||
sodom | 0 | 497,366,940 | 100% | ||
lisa.palmer | 0 | 2,067,075,605 | 25% | ||
nuad01 | 0 | 886,241,544 | 100% | ||
nexusprime | 0 | 1,892,754,050 | 100% | ||
grider123 | 0 | 2,358,562,306 | 100% | ||
jringo | 0 | 22,052,679,028 | 100% | ||
theissen | 0 | 2,290,246,960 | 100% | ||
crt | 0 | 20,420,317,648 | 100% | ||
dangermouse77 | 0 | 1,224,017,787 | 100% | ||
parejan | 0 | 10,566,711,319 | 100% | ||
steemmillionaire | 0 | 20,436,411,979 | 100% | ||
lumendan | 0 | 606,748,658 | 100% | ||
gregan | 0 | 9,481,583,314 | 100% | ||
tomasbrod | 0 | 1,758,400,536 | 100% | ||
hotbit | 0 | 23,818,663,497 | 100% | ||
rufusfirefly | 0 | 543,559,954 | 100% | ||
lottje | 0 | 606,831,045 | 100% | ||
hownixt | 0 | 2,054,806,359 | 100% | ||
h202 | 0 | 6,021,562,398 | 100% | ||
alexmaksto | 0 | 606,969,519 | 100% | ||
rcebike | 0 | 4,055,034,848 | 100% | ||
grwd | 0 | 1,777,582,273 | 100% | ||
steemgridcoin | 0 | 4,698,181,851 | 100% | ||
nathanielcwm | 0 | 480,730,865 | 100% | ||
alexcocan | 0 | 595,324,182 | 100% | ||
pullsympathize | 0 | 549,290,867 | 100% | ||
luiski | 0 | 121,830,564 | 100% | ||
gridcoin-booster | 0 | 7,905,509,945 | 100% | ||
newtechblog | 0 | 436,893,264 | 100% |
This post received a courtesy vote from @gridcoin-booster! Thank you for your contribution to the #gridcoin community!
author | gridcoin-booster |
---|---|
permlink | re-jamescowens-gridcoin-blue-paper-section-for-expected-time-to-stake-net-weight-and-related-concepts-20180910t064513227z |
category | gridcoin |
json_metadata | {"tags":["gridcoin"],"users":["gridcoin-booster"],"app":"steemit/0.1"} |
created | 2018-09-10 06:45:15 |
last_update | 2018-09-10 06:45:15 |
depth | 1 |
children | 0 |
last_payout | 2018-09-17 06:45:15 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.046 HBD |
curator_payout_value | 0.002 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 118 |
author_reputation | 206,584,707,024 |
root_title | "Gridcoin Blue Paper Section for Expected Time to Stake, Net Weight, and Related Concepts" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 70,856,018 |
net_rshares | 46,741,537,063 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
barton26 | 0 | 10,425,403,186 | 100% | ||
grider123 | 0 | 1,648,586,918 | 100% | ||
steemmillionaire | 0 | 20,853,481,611 | 100% | ||
h202 | 0 | 5,902,042,870 | 100% | ||
gridcoin-booster | 0 | 7,912,022,478 | 100% |
I'm a physicist/mathematician, so I'm happy to sift through the technical details and see whether they make sense to me. Probably I'll have time within the next 2/3 days.
author | h202 |
---|---|
permlink | re-jamescowens-gridcoin-blue-paper-section-for-expected-time-to-stake-net-weight-and-related-concepts-20180910t025448284z |
category | gridcoin |
json_metadata | {"tags":["gridcoin"],"app":"steemit/0.1"} |
created | 2018-09-10 02:54:48 |
last_update | 2018-09-10 02:54:48 |
depth | 1 |
children | 1 |
last_payout | 2018-09-17 02:54:48 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 170 |
author_reputation | 260,059,645,359 |
root_title | "Gridcoin Blue Paper Section for Expected Time to Stake, Net Weight, and Related Concepts" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 70,842,100 |
net_rshares | 11,913,821,433 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
barton26 | 0 | 10,191,124,462 | 100% | ||
tomasbrod | 0 | 1,722,696,971 | 100% |
Great! Thanks!
author | jamescowens |
---|---|
permlink | re-h202-re-jamescowens-gridcoin-blue-paper-section-for-expected-time-to-stake-net-weight-and-related-concepts-20180910t032420208z |
category | gridcoin |
json_metadata | {"tags":["gridcoin"],"app":"steemit/0.1"} |
created | 2018-09-10 03:24:21 |
last_update | 2018-09-10 03:24:21 |
depth | 2 |
children | 0 |
last_payout | 2018-09-17 03:24:21 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 14 |
author_reputation | 2,842,775,752,710 |
root_title | "Gridcoin Blue Paper Section for Expected Time to Stake, Net Weight, and Related Concepts" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 70,843,870 |
net_rshares | 10,015,415,420 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
barton26 | 0 | 10,015,415,420 | 100% |
This is greatly appreciated. Thank you (and snip and choco) for the work you've put in. Will have some feedback after a slow read through.
author | jringo |
---|---|
permlink | re-jamescowens-gridcoin-blue-paper-section-for-expected-time-to-stake-net-weight-and-related-concepts-20180909t135458643z |
category | gridcoin |
json_metadata | {"tags":["gridcoin"],"app":"steemit/0.1"} |
created | 2018-09-09 13:54:57 |
last_update | 2018-09-09 13:54:57 |
depth | 1 |
children | 0 |
last_payout | 2018-09-16 13:54:57 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.016 HBD |
curator_payout_value | 0.004 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 138 |
author_reputation | 29,720,071,239,659 |
root_title | "Gridcoin Blue Paper Section for Expected Time to Stake, Net Weight, and Related Concepts" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 70,790,646 |
net_rshares | 19,886,017,999 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
barton26 | 0 | 10,601,112,228 | 100% | ||
minersean | 0 | 844,647,379 | 100% | ||
sodom | 0 | 485,664,189 | 100% | ||
hownixt | 0 | 2,023,355,241 | 100% | ||
h202 | 0 | 5,931,238,962 | 100% |
Thanks for the info. Upvoted and following you. Check my project: https://steemit.com/life/@newtechblog/solar-kit-gridcoin-new-proyect-2
author | newtechblog |
---|---|
permlink | re-jamescowens-gridcoin-blue-paper-section-for-expected-time-to-stake-net-weight-and-related-concepts-20180911t092420314z |
category | gridcoin |
json_metadata | {"tags":["gridcoin"],"links":["https://steemit.com/life/@newtechblog/solar-kit-gridcoin-new-proyect-2"],"app":"steemit/0.1"} |
created | 2018-09-11 09:24:21 |
last_update | 2018-09-11 09:24:21 |
depth | 1 |
children | 0 |
last_payout | 2018-09-18 09:24:21 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 138 |
author_reputation | 19,036,184,479,942 |
root_title | "Gridcoin Blue Paper Section for Expected Time to Stake, Net Weight, and Related Concepts" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 70,968,023 |
net_rshares | 427,791,321 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
newtechblog | 0 | 427,791,321 | 100% |