So David, can you ELI5 how you are going to peg bitbay with wallet transaction scripts?
On a protocol level I have been deliberating over a few ways to do it. Basically, you make the first rule a mining rule that makes it so transactions before the fork are all conditionally frozen to spend X% of the input.
Then the transaction is tagged much in the way a colored coin is tagged.
So, you can use checklocktimeverify to freeze the funds as a requirement, although i think that is overengineering it maybe.
Possible other ways are to tag it with a required script with a special meaning in OP_RETURN
another way is to require a script in the transaction that would be redundant, but meaningful to miners and require it in order to color the coin.
Shit, you can even burn an encoded coin as a requirement.
Then, you make the miners require you pay X% back to yourself as change and freeze it in the input (if it is deflation)
Or, you allow spending X% of the frozen input to any external address to be marked as liquid (inflation)
Also, any coins that stake must be forced to either freeze or include a script.
Then you can set a hard % from the fork. Lets say 10% of the supply becomes liquid. So 100 million liquid coins.
Any input before block X can only spend 10% in this example.
Then, in order to set the network variables we have two options and im leaning towards voting.
You set it so, simply pay coins to a voting address which gets counted every X blocks. Its possible to give a "master key" by letting one vote count for more. Or just make it purely democratic.
That vote determines if we are inflating or deflating.
Now, in order to peg, we just need to make sure the inflating and delfating amouns match the market price. However, i do like the idea of growing the coins value. So maybe we can just vote on deflating slowly for a while so the price can rise and put a buy wall below it. Its really up to you guys. Since there is a few people with a lot of coins, ironically it can keep a lot of coins off market too which i think is actually nice in the beginning.
miners would have to count votes and keep track of the rates for all the blocks. so the miners properly enfore the mandatory scripts.