code: func CreateConfigSignature(ctx context.Client, config []byte) (*common.ConfigSignature, error) {
  	cfd, e := GetConfigSignatureData(ctx, config)
  	if e != nil {
  		return nil, e
  	}
  
  	signingMgr := ctx.SigningManager()
  	signature, err := signingMgr.Sign(cfd.SigningBytes, ctx.PrivateKey())
  	if err != nil {
  		return nil, errors.WithMessage(err, "signing of channel config failed")
  	}
  
  	// build the return object
  	configSignature := common.ConfigSignature{
  		SignatureHeader: cfd.SignatureHeaderBytes,
  		Signature:       signature,
  	}
  	return &configSignature, nil
  }
docs: // CreateConfigSignature creates a ConfigSignature for the current context