func SignMessage(msg []byte, privKey *ecdsa.PrivateKey) ([]byte, error) {
	signature, err := secp256k1.Sign(msg, crypto.FromECDSA(privKey))
	if err != nil {
		return nil, err
	}
	return signature[:len(signature)-1], nil
}
// SignMessage sign msg using privKey
SignMessage sign msg using privKey
// SignMessage sign msg using privKey
func SignMessage(msg []byte, privKey *ecdsa.PrivateKey) ([]byte, error) {
	signature, err := secp256k1.Sign(msg, crypto.FromECDSA(privKey))
	if err != nil {
		return nil, err
	}
	return signature[:len(signature)-1], nil
}
func SignMessage ( msg [ ] byte , privKey * ecdsa . PrivateKey ) ( [ ] byte , error ) { signature , err := secp256k1 . Sign ( msg , crypto . FromECDSA ( privKey ) ) if err != nil { return nil , err } return signature [ : len ( signature ) - 1 ] , nil }
SignMessage sign msg using privKey
SignMessage sign msg using privKey