namada icon indicating copy to clipboard operation
namada copied to clipboard

Does it make sense to be able to pass threshold=0 on init-account ?

Open phy-chain opened this issue 1 year ago • 3 comments

namada client init-account      \
    --threshold 0   \
    --alias test-account-to-update2   \
    --signing-keys validatorade     \
    --memo tpknam1qpayc0rxtuulknrvygcwvlhehuw2tvmxhvhxmjm8s43hxj3vdxjlv62jzcq

This works without any warning. What would be the consequences of having a 0 threshold account ? Possibility of not signing tx ?

phy-chain avatar Feb 20 '24 15:02 phy-chain

hm, this shouldn't make sense. the consequences seem to be that no signatures are required to validate an action within that account

sug0 avatar Feb 22 '24 11:02 sug0

Yep, I confirm. Tested this morning, and you can also lower it to 0 through update-account : namadac update-account --address test-establied-0 --threshold 0 --signing-keys $KEY_ALIAS --memo $NAMADA_MEMO --node http://rpc.namada.validatorade.org

Indeed, no signing required afterward, I can transfer funds with this account without signing

phy-chain avatar Feb 23 '24 10:02 phy-chain

I have also fixed "init-validator" to enforce a threshold > 0

phy-chain avatar Feb 27 '24 21:02 phy-chain