Skip to content

Commit

Permalink
Fix #68
Browse files Browse the repository at this point in the history
  • Loading branch information
xeroc committed Aug 3, 2018
1 parent 867e3f5 commit 043ef28
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions graphenebase/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,9 @@ def __init__(self, wif=None, prefix="GPH"):
self._wif = Base58(wif)
self.prefix = prefix

# test for valid key by trying to obtain a public key
self.pubkey

@property
def bitcoin(self):
return BitcoinPublicKey.from_privkey(self)
Expand Down

0 comments on commit 043ef28

Please sign in to comment.