mirror of
https://github.com/aljazceru/python-teos.git
synced 2025-12-17 06:04:21 +01:00
Creates tools shared between client and server side
Includes check_txid_format that has been renamed. Close #12 #43
This commit is contained in:
5
common/tools.py
Normal file
5
common/tools.py
Normal file
@@ -0,0 +1,5 @@
|
||||
import re
|
||||
|
||||
|
||||
def check_sha256_hex_format(value):
|
||||
return isinstance(value, str) and re.search(r"^[0-9A-Fa-f]{64}$", value) is not None
|
||||
Reference in New Issue
Block a user