func (k *Secp256k1PrivateKey) Sign(data []byte) ([]byte, error) {
	hash := sha256.Sum256(data)
	sig, err := (*btcec.PrivateKey)(k).Sign(hash[:])
	if err != nil {
		return nil, err
	}

	return sig.Serialize(), nil
}
func (k *Secp256k1PrivateKey) Sign(data []byte) ([]byte, error) {
	hash := sha256.Sum256(data)
	sig, err := (*btcec.PrivateKey)(k).Sign(hash[:])
	if err != nil {
		return nil, err
	}

	return sig.Serialize(), nil
}
func ( k * Secp256k1PrivateKey ) Sign ( data [ ] byte ) ( [ ] byte , error ) { hash := sha256 . Sum256 ( data ) sig , err := ( * btcec . PrivateKey ) ( k ) . Sign ( hash [ : ] ) if err != nil { return nil , err } return sig . Serialize ( ) , nil }
// Sign returns a signature from input data
Sign returns a signature from input data