diff --git a/tools/preimage.py b/tools/preimage.py new file mode 100644 index 00000000..48b5d051 --- /dev/null +++ b/tools/preimage.py @@ -0,0 +1,8 @@ +import hashlib +import os + +preimage = os.urandom(32) +preimage_hash = hashlib.sha256(preimage).hexdigest() + +print(f"preimage hash: {preimage_hash}") +print(f"preimage: {preimage.hex()}")