Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: proposal acceptance signatures are submitted and validated #4288

Merged

Conversation

mrnaveira
Copy link
Contributor

Description

  • feat(base_layer): added proposal acceptance signature validation
  • refactor(base_layer): DRYing the check of proposal in transaction outputs with a new output_contains_proposal function
  • feat(dan_layer): AcceptanceManager now also publishes update proposals, and with the correct signature
  • fix(integration_test): proposal_id value in fixtures is not consistent

Motivation and Context

Proposal acceptances need to be signed by the validator node submitting them. Also, the base layer should validate that the signature is valid.

Similar to recent PRs, the proposal acceptance signatures follow:
e = H_1(signer_public_key || public_nonce || H_2(contract_id||proposal_id||proposal_commitment))

How Has This Been Tested?

  • New unit test to check the base layer validation of proposal acceptance signatures
  • For the validation node part, the existing integration test do not raise the signature error

Copy link
Member

@sdbondi sdbondi left a comment

Choose a reason for hiding this comment

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

LGTM - just one minor comment

@aviator-app aviator-app bot merged commit 2bf7efe into tari-project:development Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants