Skip to content

Only one Person should able to sign even though we could have multiple signers in the validatorset #798

@nashqueue

Description

@nashqueue

types/validation.go

if len(h.Commit.Signatures) != len(h.Validators.Validators) {
		return errors.New("number of signatures and keys don't match")

This code breaks if you only have 1 signature but multiple validator keys.

We will have multiple sequencers schemes, so ideally, validation should hook into FCR Interface at some point.

Comment by @gupadhyaya :

this has to be handled by the staking module which keeps the set of allowed signers, their public keys, and then also defines the threshold for acceptance and we can simply make a call to the staking module to return boolean. this does not matter right now as we are setting the signer (single) and his public key in the signer header before gossip. so this condition will always hold. we can keep it this way for now?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions