diff --git a/contracts/btc-staking/src/staking.rs b/contracts/btc-staking/src/staking.rs index b76e38c5..b5f11d6c 100644 --- a/contracts/btc-staking/src/staking.rs +++ b/contracts/btc-staking/src/staking.rs @@ -86,6 +86,9 @@ pub fn handle_new_fp( new_fp.validate()?; // get DB object let fp = FinalityProvider::from(new_fp); + + // TODO: Verify proof of possession + // save to DB FPS.save(storage, &fp.btc_pk_hex, &fp)?; // Set its voting power to zero @@ -227,6 +230,8 @@ fn verify_active_delegation( // TODO: Check staker signature against slashing path of the unbonding tx + // TODO: Verify covenant signatures over unbonding slashing tx + // TODO: Check unbonding tx fees against staking tx // - Fee is greater than 0. // - Unbonding output value is at least `MinUnbondingValue` percentage of staking output value.