Skip to content

Commit

Permalink
FAB2044: Allow OUs to be contained in MSP description
Browse files Browse the repository at this point in the history
This change-sets does the following:
1. Addresses point A) of the JIRA item by modifying the
involved protobufs

JIRA: https://jira.hyperledger.org/browse/FAB-2400

Change-Id: I94717ac1842875ed9520e2dd062bd533f68554a5
Signed-off-by: Angelo De Caro <[email protected]>
  • Loading branch information
adecaro committed Feb 23, 2017
1 parent f145efe commit fc62148
Show file tree
Hide file tree
Showing 4 changed files with 110 additions and 50 deletions.
53 changes: 29 additions & 24 deletions protos/common/msp_principal.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion protos/common/msp_principal.proto
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,13 @@ message OrganizationUnit {
// refers to
string msp_identifier = 1;

// OrganizationUnitIdentifier defines the organization unit under the
// OrganizationUnitIdentifier defines the organizational unit under the
// MSP identified with MSPIdentifier
string organizational_unit_identifier = 2;

// CertifiersIdentifier is the hash of certificates chain of trust
// related to this organizational unit
bytes certifiers_identifier = 3;
}

// MSPRole governs the organization of the Principal
Expand Down
84 changes: 59 additions & 25 deletions protos/msp/mspconfig.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions protos/msp/mspconfig.proto
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ message FabricMSPConfig {
// this peer is to use, and which is to be imported by the
// MSP defined before
SigningIdentityInfo signing_identity = 6;

// OrganizationalUnitIdentifiers holds one or more
// fabric organizational unit identifiers that belong to
// this MSP configuration
repeated FabricOUIdentifier organizational_unit_identifiers = 7;
}

// SigningIdentityInfo represents the configuration information
Expand Down Expand Up @@ -103,3 +108,16 @@ message KeyInfo {
// properly encoded key bytes, prefixed by the type of the key
bytes key_material = 2;
}

// FabricOUIdentifier represents an organizazional unit and
// its related chain of trust identifier.
message FabricOUIdentifier {

// CertifiersIdentifier is the hash of certificates chain of trust
// related to this organizational unit
bytes certifiers_identifier = 1;

// OrganizationUnitIdentifier defines the organizational unit under the
// MSP identified with MSPIdentifier
string organizational_unit_identifier = 2;
}

0 comments on commit fc62148

Please sign in to comment.