Skip to content

Commit

Permalink
Merge pull request #176 from christophersanborn/pr-htlc-additions
Browse files Browse the repository at this point in the history
Add class Hash160 to types.py
  • Loading branch information
xeroc authored Aug 24, 2020
2 parents 399851d + e5c3751 commit f45d912
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions graphenebase/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,12 @@ def __init__(self, a):
super().__init__(a)


class Hash160(Hash):
def __init__(self, a):
assert len(a) == 40, "Require 40 char long hex"
super().__init__(a)


class Void:
def __init__(self):
pass
Expand Down

0 comments on commit f45d912

Please sign in to comment.