diff --git a/proofow.py b/proofow.py index 6f0e205..462ff77 100644 --- a/proofow.py +++ b/proofow.py @@ -8,7 +8,12 @@ class pow_base: def base(self): return self._base + @property + def difficulty(self): + return self._difficulty + def __init__(self, difficulty, base=None): + self._difficulty = difficulty self._base = urandom(self._bits//8) if not base else base self._target = 2 ** (self._bits - difficulty)