remove 'keymin >= 2' constraint
as per its initial intended use case rendered failed
This commit is contained in:
parent
db1c8ab9aa
commit
4a5f8a6fc4
@ -28,7 +28,7 @@ class WrisbtChainProtocol(
|
|||||||
):
|
):
|
||||||
assert isinstance(total_factory, RainbowFactory)
|
assert isinstance(total_factory, RainbowFactory)
|
||||||
assert isinstance(keymin, int)
|
assert isinstance(keymin, int)
|
||||||
assert keymin >= 2
|
assert keymin > 0
|
||||||
self.keymin = keymin
|
self.keymin = keymin
|
||||||
super().__init__(
|
super().__init__(
|
||||||
WrisbtProtocol(keymin),
|
WrisbtProtocol(keymin),
|
||||||
|
@ -24,7 +24,7 @@ class WrisbtIndex(RecursiveMentionable):
|
|||||||
assert isinstance(keymin, int)
|
assert isinstance(keymin, int)
|
||||||
self.total = total
|
self.total = total
|
||||||
self.delta = delta
|
self.delta = delta
|
||||||
assert keymin >= 2
|
assert keymin > 0
|
||||||
self.keymin = keymin
|
self.keymin = keymin
|
||||||
|
|
||||||
def points(self) -> Iterable[HashPoint]:
|
def points(self) -> Iterable[HashPoint]:
|
||||||
@ -46,7 +46,7 @@ class WrisbtIndex(RecursiveMentionable):
|
|||||||
class WrisbtIndexFactory(RainbowFactory[WrisbtIndex]):
|
class WrisbtIndexFactory(RainbowFactory[WrisbtIndex]):
|
||||||
def __init__(self, keymin: int):
|
def __init__(self, keymin: int):
|
||||||
assert isinstance(keymin, int)
|
assert isinstance(keymin, int)
|
||||||
assert keymin >= 2
|
assert keymin > 0
|
||||||
self.keymin = keymin
|
self.keymin = keymin
|
||||||
self.root_factory: RainbowFactory[WrisbtRoot] = WrisbtRootFactory(
|
self.root_factory: RainbowFactory[WrisbtRoot] = WrisbtRootFactory(
|
||||||
WrisbtParametres(keymin, HashPoint.HASH_LENGTH)
|
WrisbtParametres(keymin, HashPoint.HASH_LENGTH)
|
||||||
|
@ -14,7 +14,7 @@ TargetType = TypeVar('TargetType')
|
|||||||
class WrisbtProtocol(MetaReductionStateProtocol[TargetType, WrisbtIndex]):
|
class WrisbtProtocol(MetaReductionStateProtocol[TargetType, WrisbtIndex]):
|
||||||
def __init__(self, keymin: int):
|
def __init__(self, keymin: int):
|
||||||
assert isinstance(keymin, int)
|
assert isinstance(keymin, int)
|
||||||
assert keymin >= 2
|
assert keymin > 0
|
||||||
self.keymin = keymin
|
self.keymin = keymin
|
||||||
|
|
||||||
def _initial_state(self) -> HashPoint[WrisbtIndex]:
|
def _initial_state(self) -> HashPoint[WrisbtIndex]:
|
||||||
|
Loading…
Reference in New Issue
Block a user