-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor identity code and check for MSP ID
This change set refactors the code inside of the MSP that is called whenever a serialized identity has to be turned into an identity instance. The code was previously repeating the deserialization into a SerializedIdentity struct twice - once by the MSPManager and once by the MSP. Now the MSP implementation exposes a function that turns SerializedIdentity.IdBytes into an identity. This method is called by the public method that takes the full serialized identity, deserializes it into a SerializedIdentity struct and calls the private method passing in SerializedIdentity.IdBytes. Also, the code now checks that SerializedIdentity.Mspid mathces the ID of the MSP that performs the deserialization. Change-Id: Ie76c500e93b9acf1ea9c69ccc8db46f1e830d204 Signed-off-by: Alessandro Sorniotti <[email protected]>
- Loading branch information
Showing
8 changed files
with
121 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters