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-2067: Implement GET_TXN_AUTHOR_AGREEMENT #1204

Merged
merged 11 commits into from
May 15, 2019

Conversation

skhoroshavin
Copy link
Member

No description provided.

Sergey Khoroshavin added 5 commits May 14, 2019 17:41
…EEMENT

Signed-off-by: Sergey Khoroshavin <sergey.khoroshavin@dsr-corporation.com>
…EMENT

Signed-off-by: Sergey Khoroshavin <sergey.khoroshavin@dsr-corporation.com>
Signed-off-by: Sergey Khoroshavin <sergey.khoroshavin@dsr-corporation.com>
Signed-off-by: Sergey Khoroshavin <sergey.khoroshavin@dsr-corporation.com>
Signed-off-by: Sergey Khoroshavin <sergey.khoroshavin@dsr-corporation.com>

# TODO: Change txnPoolNodeSet to nodeSetWithOneNodeResponding after
# correct state proof checking is implemented in Indy SDK
def test_state_proof_returned_for_get_txn_author_agreement(
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we need to have multiple tests (and hence multiple sdk_get_txn_author_agreement) for each variant of GET_TAA: latest, by digest, by ts.

Copy link
Member Author

Choose a reason for hiding this comment

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

Of course they are planned. Also tests checking for consistency proofs for absent keys are planned as well.

plenum/server/config_req_handler.py Show resolved Hide resolved
Sergey Khoroshavin added 3 commits May 15, 2019 13:35
Signed-off-by: Sergey Khoroshavin <sergey.khoroshavin@dsr-corporation.com>
Signed-off-by: Sergey Khoroshavin <sergey.khoroshavin@dsr-corporation.com>
Signed-off-by: Sergey Khoroshavin <sergey.khoroshavin@dsr-corporation.com>
@skhoroshavin skhoroshavin changed the title [WIP] INDY-2067: Implement GET_TXN_AUTHOR_AGREEMENT INDY-2067: Implement GET_TXN_AUTHOR_AGREEMENT May 15, 2019
Sergey Khoroshavin added 3 commits May 15, 2019 17:16
Signed-off-by: Sergey Khoroshavin <sergey.khoroshavin@dsr-corporation.com>
Signed-off-by: Sergey Khoroshavin <sergey.khoroshavin@dsr-corporation.com>
Signed-off-by: Sergey Khoroshavin <sergey.khoroshavin@dsr-corporation.com>
@@ -75,6 +76,15 @@ class ClientTxnAuthorAgreementOperation(MessageValidator):
)


# TODO: Add more fields along with implementation
class ClientGetTxnAuthorAgreementOperation(MessageValidator):
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe we need a specific validation that either GET_TXN_AUTHOR_AGREEMENT_VERSION or GET_TXN_AUTHOR_AGREEMENT_DIGEST can be specified, not both.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for pointing at it

@ashcherbakov
Copy link
Contributor

Looks good, so I think we can merge it.
Two items TBD:

  1. Specific static validation for GET_TAA
  2. More tests for state proof

@skhoroshavin skhoroshavin merged commit ec5bdd7 into hyperledger:master May 15, 2019
@skhoroshavin skhoroshavin deleted the indy-2067 branch May 15, 2019 15:50
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