Open wklken opened 1 year ago
https://github.com/duanhongyi/gmssl/blob/master/gmssl/sm2.py#L25
self.public_key = public_key.lstrip("04") if public_key.startswith("04") else public_key
should be
self.public_key = public_key[2:] if public_key.startswith("04") else public_key
https://github.com/duanhongyi/gmssl/blob/master/gmssl/sm2.py#L25
should be