-
Notifications
You must be signed in to change notification settings - Fork 9
Enable multiple policies type #129
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
base: main
Are you sure you want to change the base?
Conversation
67d33d2 to
28bd138
Compare
|
|
||
| message Identity { | ||
| // The identifier of the associated membership service provider | ||
| string msp_id = 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.
minor: Is this field necessary? Can't we infer the MSP from the certificate's issuing CA?
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.
This field is part of Fabric. It is included in the identity. Hence, I have replicated the same here.
service/sidecar/test_exports.go
Outdated
| Namespaces: validTxNamespaces, | ||
| SignatureSets: make([]*protoblocktx.SignatureSet, 2), // Too many signatures. |
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.
Why did this PR removes the test case of "Not enough signatures."?
| if v.thresholdVerifier == nil { | ||
| return nil | ||
| } | ||
| digest, err := DigestTxNamespace(txID, tx.Namespaces[nsIndex]) |
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.
nit: To align all the verifiers, I suggest using ASN1MarshalTxNamespace(txID, tx.Namespaces[nsIndex]) and digesting inside the "thresholdVerifier".
Additionally, our THRESHOLD verifiers can also use protoutil.SignedData{}, where the identity is pre-fixed.
7a06098 to
c357994
Compare
c357994 to
3535672
Compare
3535672 to
29c6b17
Compare
This commit updates the proto messages to define policy using various rules such as threshold, signature, and hierarchical. Signed-off-by: Senthil Nathan N <cendhu@gmail.com> Signed-off-by: senthil <cendhu@gmail.com>
29c6b17 to
4972f6b
Compare
Type of change
Description
This commit updates the proto messages to define policy using various rules such as threshold, signature, and hierarchical. Further, it integrates the signature rules with the verifier component.
Related issues