stacksgov / sips

Community-submitted Stacks Improvement Proposals (SIPs)
132 stars 80 forks source link

Stacks 2.1: Support sending coinbase rewards to smart contracts #20

Closed Zk2u closed 3 years ago

Zk2u commented 3 years ago

In the current implementation, coinbase rewards are only able to be sent to STX addresses.

For example, mining pools controlled by smart contracts (like Pool³) currently have to have the rewards sent to the contract from the pool, putting unnecessary trust in the mining pool and increasing transaction fees.

If the rewards could be sent directly to the contract in charge of managing payouts, this would be beneficial.

jcnelson commented 3 years ago

Miners can always include a transaction in the blocks they mine that immediately sends their matured block rewards to a particular contract. In the context of pools, because the pool participants all see the block template (i.e. they have the block hash) before they commit BTC, they can independently confirm that the STX are going to the right disbursal contract.

You don't need to wait until Stacks 2.1 to begin doing this :)

DyrMooning commented 3 years ago

Can we get a term for this and anyone know which miners are using this feature?

Zk2u commented 3 years ago

Can we get a term for this and anyone know which miners are using this feature?

none are right now. L3 pool will though