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-992] Move bls tests to sdk #564

Merged
merged 18 commits into from
Mar 19, 2018

Conversation

ArtObr
Copy link
Contributor

@ArtObr ArtObr commented Mar 7, 2018

Signed-off-by: ArtObr artemobruchnikov@gmail.com

Signed-off-by: ArtObr <artemobruchnikov@gmail.com>
@ArtObr ArtObr changed the title [INDY-992] Move bls tests to sdk [INDY-992] Move bls tests to sdk [skip ci] Mar 7, 2018
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>
@ArtObr ArtObr changed the title [INDY-992] Move bls tests to sdk [skip ci] [INDY-992] Move bls tests to sdk Mar 16, 2018
@ArtObr
Copy link
Contributor Author

ArtObr commented Mar 16, 2018

Test this please

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

Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

None, None,
bls_key=key_in_txn,
services=None)
waitNodeDataEquality(looper, node, *txnPoolNodeSet[:-1])
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done


def validate_proof(result):
"""
Validates state proof
Copy link
Contributor

Choose a reason for hiding this comment

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

make normal indentation

def validate_proof(result):
"""
Validates state proof
"""
Copy link
Contributor

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>
@ArtObr
Copy link
Contributor Author

ArtObr commented Mar 19, 2018

Test this please

1 similar comment
@ArtObr
Copy link
Contributor Author

ArtObr commented Mar 19, 2018

Test this please

@ashcherbakov ashcherbakov merged commit 1f88bea into hyperledger:master Mar 19, 2018
lampkin-diet pushed a commit to lampkin-diet/indy-plenum that referenced this pull request Apr 9, 2018
* 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>
lampkin-diet pushed a commit to lampkin-diet/indy-plenum that referenced this pull request Apr 10, 2018
* 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>
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

3 participants