Skip to content

Commit

Permalink
Merge pull request #23 from 8468/fix_gen_pub_key_bug
Browse files Browse the repository at this point in the history
fixed bug causing ecdsa assertion error on priv -> pubkey generation
  • Loading branch information
perone committed Jan 8, 2016
2 parents c260917 + 8e86bf3 commit 3604d50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protocoin/keys.py
Expand Up @@ -28,7 +28,7 @@ def from_private_key(klass, private_key):
:returns: a new public key
"""
public_key = private_key.get_verifying_key()
hexkey = public_key.to_string().encode("hex")
hexkey = (klass.key_prefix + public_key.to_string()).encode("hex")
return klass(hexkey)

def to_string(self):
Expand Down

0 comments on commit 3604d50

Please sign in to comment.