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

INDY-2043: Add validation of 'signature' and 'signatures' in authenticate() method #1164

Merged

Conversation

Toktar
Copy link
Contributor

@Toktar Toktar commented Apr 12, 2019

  • Added IdentifierNotInSignatures
  • Added check 'signature' and 'signatures' in ClientMessageValidator.authenticate()

Signed-off-by: toktar <renata.toktar@dsr-corporation.com>
Signed-off-by: toktar <renata.toktar@dsr-corporation.com>
Signed-off-by: toktar <renata.toktar@dsr-corporation.com>
…nto task-2043-multisig-dynamic-validation
Signed-off-by: toktar <renata.toktar@dsr-corporation.com>
plenum/common/messages/client_request.py Outdated Show resolved Hide resolved
signatures = req_data[f.SIGS.nm]
identifier = identifier or req_data.get(f.IDENTIFIER.nm, None)
if identifier and identifier not in signatures:
raise IdentifierNotInSignatures(identifier, signatures)
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need else if we don't have neither SIG nor SIGS? signatures will be uninitialized in this case, and it looks like we don't habe any other validation making sure that we must have either SIG or SIGS.

Signed-off-by: toktar <renata.toktar@dsr-corporation.com>
Signed-off-by: toktar <renata.toktar@dsr-corporation.com>
@ashcherbakov ashcherbakov merged commit cd6233c into hyperledger:master Apr 16, 2019
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.

None yet

2 participants