Skip to content

Commit 88bc15d

Browse files
author
Jason Yellick
committed
FAB-16051 MSP IDENTITY Principal Deserialization
There is a comment in the proto translation extensions for the MSP principal indicating that once the Identity proto is moved from the MSP impl to the protos dir, we can appropriately deserialize. This move has occurred so the serialization can now be fixed. Change-Id: I8e13fe699c35183cb9f2056ebe3f3a3f19a7e3f8 Signed-off-by: Jason Yellick <jyellick@us.ibm.com>
1 parent 2b697a2 commit 88bc15d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/tools/protolator/protoext/mspext/msp_principal.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func (mp *MSPPrincipal) VariablyOpaqueFieldProto(name string) (proto.Message, er
3333
case msp.MSPPrincipal_ORGANIZATION_UNIT:
3434
return &msp.OrganizationUnit{}, nil
3535
case msp.MSPPrincipal_IDENTITY:
36-
return nil, fmt.Errorf("unable to decode MSP type IDENTITY until the protos are fixed to include the IDENTITY proto in protos/msp")
36+
return &msp.SerializedIdentity{}, nil
3737
default:
3838
return nil, fmt.Errorf("unable to decode MSP type: %v", mp.PrincipalClassification)
3939
}

0 commit comments

Comments
 (0)