Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def sign(self, msg_hash):
return Signature(secp256k1.ecdsa_sign(msg_hash, self._secret))
def sign(self, msg_hash):
rs_bytes = secp256k1.ecdsa_sign(msg_hash, self.secret)
return Signature(rs_bytes)