Skip to content

Conversation

cendhu
Copy link
Contributor

@cendhu cendhu commented Sep 8, 2025

Type of change

  • New feature

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

@cendhu cendhu marked this pull request as draft September 8, 2025 10:59
@cendhu cendhu force-pushed the integrate-bundle branch 9 times, most recently from 67d33d2 to 28bd138 Compare September 10, 2025 11:35

message Identity {
// The identifier of the associated membership service provider
string msp_id = 1;
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Comment on lines 88 to 89
Namespaces: validTxNamespaces,
SignatureSets: make([]*protoblocktx.SignatureSet, 2), // Too many signatures.
Copy link
Contributor

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])
Copy link
Contributor

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.

@cendhu cendhu force-pushed the integrate-bundle branch 2 times, most recently from 7a06098 to c357994 Compare September 22, 2025 12:49
@cendhu cendhu marked this pull request as ready for review September 29, 2025 06:18
@cendhu cendhu force-pushed the integrate-bundle branch 3 times, most recently from c357994 to 3535672 Compare September 29, 2025 14:21
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>
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.

2 participants