Skip to content

Commit 56f2ebf

Browse files
committed
[FAB-7613] Combined principals in MSPPrincipal proto
Introduction of combined MSP principals, i.e., principals that consist of a series of principals that need to be satisfied by the same identity. Change-Id: I1dd464bb25c530a04744044c01231bdcc3bb950d Signed-off-by: Mathias Bjoerkqvist <mbj@zurich.ibm.com>
1 parent 64d6237 commit 56f2ebf

File tree

3 files changed

+69
-31
lines changed

3 files changed

+69
-31
lines changed

protos/msp/identities.pb.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protos/msp/msp_principal.pb.go

Lines changed: 59 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protos/msp/msp_principal.proto

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ message MSPPrincipal {
6161
// identity
6262
ANONYMITY = 3; // Denotes a principal that can be used to enforce
6363
// an identity to be anonymous or nominal.
64+
COMBINED = 4; // Denotes a combined principal
6465
}
6566

6667
// Classification describes the way that one should process
@@ -133,6 +134,14 @@ message MSPIdentityAnonymity {
133134

134135
}
135136

137+
// CombinedPrincipal governs the organization of the Principal
138+
// field of a policy principal when principal_classification has
139+
// indicated that a combined form of principals is required
140+
message CombinedPrincipal {
141+
142+
// Principals refer to combined principals
143+
repeated MSPPrincipal principals = 1;
144+
}
136145

137146
// TODO: Bring msp.SerializedIdentity from fabric/msp/identities.proto here. Reason below.
138147
// SerializedIdentity represents an serialized version of an identity;

0 commit comments

Comments
 (0)