Files
python-teos/apps/cli/blob.py
Sergi Delgado Segura 3d4ed28c8b Fixes wrong log messase
2020-01-15 15:41:57 +01:00

10 lines
232 B
Python

import re
class Blob:
def __init__(self, data):
if type(data) is not str or re.search(r"^[0-9A-Fa-f]+$", data) is None:
raise ValueError("Non-Hex character found in transaction.")
self.data = data