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(fabric-socketio-connector): sending transactions signed on the client-side #2071

Merged
merged 1 commit into from
Nov 24, 2022

Conversation

outSH
Copy link
Contributor

@outSH outSH commented Jun 7, 2022

  • Add functions to support entire process of sending transaction to the ledger without sharing
    any private key with the connector.
  • Add test cases to check the new functionalities.
  • Adjust asset-trade sample app to use new logic that doesn't send the private key to the connector.
  • Move fabric signing utils to a separate file.
  • Add fabric protobuf serializers and deserializers, so they can be send back and forth
    between connector and BLP without loosing type information.
  • Add an option to FabricTestLedgerV1 to allow attaching to already running ledger container.
    This can speed up test development/troubleshoot process.
  • Improve fabric-all-in-one ledger healthcheck, so that it waits for basic chaincode intialization.
    This is not strictly needed by current tests, but may be expected by future tests.
  • Refactor duplicated logic in fabric-connector.
  • Fix fabric-socketio module entry points (minor fix).

Closes: #2070

Depends on #2047

Signed-off-by: Michal Bajer michal.bajer@fujitsu.com


As always, please review only the last commit. Remaining ones are just dependencies, that will be squashed before an actual merge.

@gitguardian
Copy link

gitguardian bot commented Jun 7, 2022

️✅ There are no secrets present in this pull request anymore.

If these secrets were true positive and are still valid, we highly recommend you to revoke them.
Once a secret has been leaked into a git repository, you should consider it compromised, even if it was deleted immediately.
Find here more information about risks.


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

Our GitHub checks need improvements? Share your feedbacks!

Copy link
Contributor

@izuru0 izuru0 left a comment

Choose a reason for hiding this comment

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

LGTM

@takeutak
Copy link
Contributor

@petermetz @jagpreetsinghsasan (cc: @izuru0)
Could you review this PR?

Copy link
Contributor

@jagpreetsinghsasan jagpreetsinghsasan left a comment

Choose a reason for hiding this comment

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

LGTM.
And nice learning from this.

Copy link
Contributor

@petermetz petermetz left a comment

Choose a reason for hiding this comment

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

@outSH Please squash + rebase onto upstream main (and resolve the merge conflicts)

@github-actions
Copy link

This PR/issue depends on:

@outSH
Copy link
Contributor Author

outSH commented Nov 23, 2022

@petermetz Rebased and tested, ready for merge.

@outSH outSH requested review from petermetz and removed request for sandeepnRES and takeutak November 23, 2022 09:58
Copy link
Contributor

@petermetz petermetz left a comment

Choose a reason for hiding this comment

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

@outSH LGTM, thank you!

…lient-side

- Add functions to support entire process of sending transaction to the ledger without sharing
  any private key with the connector.
- Add test cases to check the new functionalities.
- Adjust asset-trade sample app to use new logic that doesn't send the private key to the connector.
- Move fabric signing utils to a separate file.
- Add fabric protobuf serializers and deserializers, so they can be send back and forth
  between connector and BLP without loosing type information.
- Add an option to FabricTestLedgerV1 to allow attaching to already running ledger container.
  This can speed up test development/troubleshoot process.
- Improve fabric-all-in-one ledger healthcheck, so that it waits for basic chaincode intialization.
  This is not strictly needed by current tests, but may be expected by future tests.
- Refactor duplicated logic in fabric-connector.
- Fix fabric-socketio module entry points (minor fix).

Closes: 2070

Depends on: 2047

Signed-off-by: Michal Bajer <michal.bajer@fujitsu.com>
@petermetz petermetz merged commit 0b34ca3 into hyperledger-cacti:main Nov 24, 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.

feat(fabric-socketio-connector): sending transactions signed on the client-side
5 participants