code: func (ic InvocationChain) ValidateInvocationChain() error {
  	if len(ic) == 0 {
  		return errors.New("invocation chain should not be empty")
  	}
  	for _, cc := range ic {
  		if cc.Name == "" {
  			return errors.New("chaincode name should not be empty")
  		}
  	}
  	return nil
  }
docs: // ValidateInvocationChain validates the InvocationChain's structure