Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def parse(cls, sec):
point = secp256k1.ec_pubkey_parse(sec)
compressed = (sec[0]!=0x04)
return cls(point, compressed)
def __init__(self, sec):
# Check it's a valid pubkey
secp256k1.ec_pubkey_parse(sec)
self.sec = sec