rchain / rchain

Blockchain (smart contract) platform using CBC-Casper proof of stake + Rholang for concurrent execution.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add optional withdrawal REV address for validators in PoS

tgrospic opened this issue · comments

Overview

This is operational part of the feature proposed by @dckc.

More details can be found in related RCHIP and RNode issues:

As part of bonding procedure validators should have option to specify different REV address for withdrawal then the address associated with their private key. In that way withdrawal address can be managed by the contract which can allow creation of staking pools without changing the core logic of PoS contract.

Solution

Add overload to PoS bonding method which accepts withdrawal REV address. This address should be used to transfer all funds for the validator (initial stake + rewards) instead of REV address associated with the validators's private key.