mirror of
https://github.com/aljazceru/python-teos.git
synced 2025-12-17 14:14:22 +01:00
10 lines
232 B
Python
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
|