Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def public_key(self):
raw = secp256k1.ec_pubkey_create(self.secret)
sec = secp256k1.ec_pubkey_serialize(raw, secp256k1.EC_COMPRESSED)
return PublicKey(sec)
def get_public_key(self):
return PublicKey(secp256k1.ec_pubkey_create(self._secret), self.compressed)