equal
deleted
inserted
replaced
181 return pvec(util.b85encode(bs)) |
181 return pvec(util.b85encode(bs)) |
182 |
182 |
183 |
183 |
184 class pvec(object): |
184 class pvec(object): |
185 def __init__(self, hashorctx): |
185 def __init__(self, hashorctx): |
186 if isinstance(hashorctx, str): |
186 if isinstance(hashorctx, bytes): |
187 self._bs = hashorctx |
187 self._bs = hashorctx |
188 self._depth, self._vec = _split(util.b85decode(hashorctx)) |
188 self._depth, self._vec = _split(util.b85decode(hashorctx)) |
189 else: |
189 else: |
190 self._vec = ctxpvec(hashorctx) |
190 self._vec = ctxpvec(hashorctx) |
191 |
191 |