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

try to fix #106 #108

Merged
merged 4 commits into from
Apr 4, 2023
Merged

Conversation

SamYuan1990
Copy link
Contributor

@SamYuan1990 SamYuan1990 commented Feb 28, 2023

I suppose we need to provide function to support approve sign for chaincode level and channel level.
this PR is just a draft as POC.

@SamYuan1990 SamYuan1990 force-pushed the tryApprovePolicy branch 2 times, most recently from de5fd6b to 10ccfcd Compare March 4, 2023 11:11
@SamYuan1990 SamYuan1990 marked this pull request as ready for review March 4, 2023 11:13
@SamYuan1990 SamYuan1990 enabled auto-merge (squash) March 4, 2023 11:14
test/e2e_test.go Outdated Show resolved Hide resolved
@SamYuan1990
Copy link
Contributor Author

@bestbeforetoday , if there no further comments for this PR, I would like to merge it early next week.

Copy link
Member

@bestbeforetoday bestbeforetoday left a comment

Choose a reason for hiding this comment

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

Suggestions for simplifying the API and usage in comments to consider.

I would also suggest only exporting a minimal set of functions. Several of the functions in signaturepolicy.go are capitalized and so are public. I'm not sure any of them need to be. Perhaps keep the public API to a single function until there is a clear need for more.

pkg/chaincode/lifecycle.go Outdated Show resolved Hide resolved
Signed-off-by: Sam Yuan <[email protected]>
@SamYuan1990 SamYuan1990 linked an issue Mar 27, 2023 that may be closed by this pull request
pkg/chaincode/signaturepolicy.go Outdated Show resolved Hide resolved
pkg/chaincode/signaturepolicy.go Outdated Show resolved Hide resolved
pkg/chaincode/signaturepolicy.go Outdated Show resolved Hide resolved
pkg/chaincode/signaturepolicy.go Outdated Show resolved Hide resolved
pkg/chaincode/signaturepolicy.go Outdated Show resolved Hide resolved
test/e2e_test.go Outdated Show resolved Hide resolved
Signed-off-by: Sam Yuan <[email protected]>
Signed-off-by: Sam Yuan <[email protected]>
@SamYuan1990 SamYuan1990 disabled auto-merge March 30, 2023 01:00
@SamYuan1990 SamYuan1990 enabled auto-merge (squash) March 30, 2023 01:01
Signed-off-by: Sam Yuan <[email protected]>
@SamYuan1990 SamYuan1990 merged commit ae751cf into hyperledger:main Apr 4, 2023
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.

How to set SignaturePolicy for Collections
2 participants