consensus-specs icon indicating copy to clipboard operation
consensus-specs copied to clipboard

Rename `from_bls_pubkey` to `from_bls_withdrawal_pubkey`

Open terencechain opened this issue 3 years ago • 2 comments

from_bls_pubkey could be confused with the bls signing key. I think it's better to be explicit and call it from_bls_withdrawal_pubkey which aligns with the phase 0 validator spec: https://github.com/ethereum/consensus-specs/blob/dev/specs/phase0/validator.md#bls_withdrawal_prefix

terencechain avatar Oct 03 '22 22:10 terencechain

If we are tweaking things, do we really need the from_ and to_ prefixes given that this should be obvious given the class name?

mcdee avatar Oct 03 '22 23:10 mcdee

If we are tweaking things, do we really need the from_ and to_ prefixes given that this should be obvious given the class name?

Happy to remove the prefix. I mainly wanted to differentiate signing with withdrawal here

terencechain avatar Oct 03 '22 23:10 terencechain

I actually think the from, to are more valuable than the additional withdrawal symbol

I think from the context in which these types will be used it should be clear what is what and this is ultimately just a question of style preference

edit: just to expedite shipping of withdrawals, I'd lean towards not making this change fwiw

ralexstokes avatar Oct 24 '22 21:10 ralexstokes

Don't feel strongly about this, but we actually had internal confusion over this, maybe we are just the only ones

terencechain avatar Oct 24 '22 22:10 terencechain

Hey @terencechain It seems no strong 👍 signal for this PR. Can we close it or would you like to bring it up to the CL call ~~today~~ next week?

hwwhww avatar Nov 22 '22 10:11 hwwhww

I think having better name clarity is good. Since external tooling will likely be producing this message too, the clarification helps.

dapplion avatar Nov 22 '22 11:11 dapplion

I don't have a strong preference but like @dapplion said, external tooling might find this helpful

terencechain avatar Nov 22 '22 14:11 terencechain

I'm fairly non-fussed on this one, if there's a general feeling that it will make this easier to use, happy to take that feedback and run with it... I won't feel like we missed something if it's not changed though...

rolfyone avatar Nov 22 '22 20:11 rolfyone

Closing this for now, we can re-open it if there's a strong consensus

terencechain avatar Nov 23 '22 01:11 terencechain

Just see creating, don't mind me world! Highest ones Null.

Jiggnubs avatar Nov 27 '22 20:11 Jiggnubs