Creates tools shared between client and server side

Includes check_txid_format that has been renamed. Close #12 #43
This commit is contained in:
Sergi Delgado Segura
2019-12-06 13:20:58 +01:00
parent 5f7cd7e189
commit 3c95c31bc8

5
common/tools.py Normal file
View 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