Skip to content
This repository has been archived by the owner on Aug 24, 2022. It is now read-only.

Verify combined signature in light client #224

Merged
merged 1 commit into from
Nov 4, 2020

Conversation

jinmannwong
Copy link
Contributor

  • Remove validation of vote signature in light client and replace with combined signature verification

var (
benchmarkFullNode = mockp.New(GenMockNode(chainID, 1000, 100, 1, bTime))
genesisHeader, _ = benchmarkFullNode.SignedHeader(1)
)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made these local inside benchmark functions as they take a long time to create and are not required for tests.

@@ -651,75 +651,6 @@ func TestValidatorSet_VerifyCommit(t *testing.T) {
}
}

// Check VerifyCommitLight and VerifyCommitLightTrusting basic
// verification.
func TestValidatorSet_VerifyCommit_All(t *testing.T) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function tested no longer exists

//
// This method is primarily used by the light client and does not check all the
// signatures.
func (vals *ValidatorSet) VerifyCommitLight(chainID string, blockID BlockID,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed so that light clients use VerifyCommit

@jinmannwong jinmannwong merged commit 9da263a into fetchai:master Nov 4, 2020
@jinmannwong jinmannwong deleted the improvements/light_client branch November 4, 2020 10:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants