github.com/darrenli6/fabric-sdk-example@v0.0.0-20220109053535-94b13b56df8c/protos/msp/identities.proto (about)

     1  /*
     2  Copyright IBM Corp. 2016 All Rights Reserved.
     3  
     4  Licensed under the Apache License, Version 2.0 (the "License");
     5  you may not use this file except in compliance with the License.
     6  You may obtain a copy of the License at
     7  
     8                   http://www.apache.org/licenses/LICENSE-2.0
     9  
    10  Unless required by applicable law or agreed to in writing, software
    11  distributed under the License is distributed on an "AS IS" BASIS,
    12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  See the License for the specific language governing permissions and
    14  limitations under the License.
    15  */
    16  
    17  syntax = "proto3";
    18  
    19  option go_package = "github.com/hyperledger/fabric/protos/msp";
    20  option java_package = "org.hyperledger.fabric.protos.msp";
    21  
    22  package msp;
    23  
    24  // This struct represents an Identity
    25  // (with its MSP identifier) to be used
    26  // to serialize it and deserialize it
    27  message SerializedIdentity {
    28  	// The identifier of the associated membership service provider
    29      string mspid = 1;
    30  
    31      // the Identity, serialized according to the rules of its MPS
    32      bytes id_bytes = 2;
    33  }