code: func getRoleMaskFromIdemixRoles(roles []Role) int {
  	mask := 0
  	for _, role := range roles {
  		mask = mask | role.getValue()
  	}
  	return mask
  }
docs: // GetRoleMaskFromIdemixRoles Receive a list of roles to combine in a single bitmask