-
Notifications
You must be signed in to change notification settings - Fork 366
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-992] Move bls tests to sdk #564
[INDY-992] Move bls tests to sdk #564
Conversation
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
…t_state_proof; problem with wrong bls keys Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
…te_proof test Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
Test this please |
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
plenum/test/bls/helper.py
Outdated
from common.serializers.serialization import state_roots_serializer | ||
from plenum.common.constants import DOMAIN_LEDGER_ID, ALIAS, BLS_KEY | ||
from crypto.bls.bls_crypto import BlsCryptoVerifier | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove empty lines between imports
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
plenum/test/bls/helper.py
Outdated
None, None, | ||
bls_key=key_in_txn, | ||
services=None) | ||
waitNodeDataEquality(looper, node, *txnPoolNodeSet[:-1]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you pass some node to the func, it could be any node from txnPoolNodeSet, but to check equality you exclude always the last one.
I think you need to exclude the node you pass to func but not the last one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
plenum/test/bls/helper.py
Outdated
|
||
def validate_proof(result): | ||
""" | ||
Validates state proof |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make normal indentation
plenum/test/bls/helper.py
Outdated
def validate_proof(result): | ||
""" | ||
Validates state proof | ||
""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and here too
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
Test this please |
1 similar comment
Test this please |
* Initial test integration Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * Two more files done Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * new test Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * 4 more folders done Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * two more files Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * some changes Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * More tests integrated. Problems: validator functions of client in test_state_proof; problem with wrong bls keys Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * Script fix. bls validation fix Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * little fix Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * Fix for bls validation tests. Not done: update_incorrect test and state_proof test Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * Only state_proof test left Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * Tests integration done Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * Import deletion. flake8 error fix. Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * Review fixes Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * Little fix Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
* Initial test integration Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * Two more files done Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * new test Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * 4 more folders done Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * two more files Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * some changes Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * More tests integrated. Problems: validator functions of client in test_state_proof; problem with wrong bls keys Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * Script fix. bls validation fix Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * little fix Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * Fix for bls validation tests. Not done: update_incorrect test and state_proof test Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * Only state_proof test left Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * Tests integration done Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * Import deletion. flake8 error fix. Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * Review fixes Signed-off-by: ArtObr <artemobruchnikov@gmail.com> * Little fix Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
Signed-off-by: ArtObr artemobruchnikov@gmail.com