Skip to content

Add MSP parsing(admins,users,msp. not just one msp)

Compare
Choose a tag to compare
@bogatyr285 bogatyr285 released this 26 Nov 12:52

A new way of parsing MSP dir and getting identities:
identity.NewMSPIndentitiesFromPath(mspID, mspPath string) will return all identities in the MSP dir(MSP, admins, users)

type MSPIndentities struct {
	// identity from 'signcerts' 
	MSP api.Identity
	// identities from 'admincerts'
	Admins []api.Identity
	// indentities from 'users'
	Users []api.Identity
}