Staking library from the P2P Validator Team