We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdec1bc commit ebc2199Copy full SHA for ebc2199
src/ecdsa/keys.py
@@ -135,6 +135,11 @@ def __init__(self, _error__please_use_generate=None):
135
self.default_hashfunc = None
136
self.pubkey = None
137
138
+ def __repr__(self):
139
+ pub_key = self.to_string("compressed")
140
+ return "VerifyingKey.from_string({0!r}, {1!r}, {2})".format(
141
+ pub_key, self.curve, self.default_hashfunc().name)
142
+
143
@classmethod
144
def from_public_point(cls, point, curve=NIST192p, hashfunc=sha1):
145
"""
0 commit comments