From f04d425a31b71ab6147ef685dd11f5547e465865 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Thu, 28 Nov 2024 20:59:43 +0100 Subject: [PATCH] more and more debug --- dpp/views.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dpp/views.py b/dpp/views.py index e8c2c18..a05382d 100644 --- a/dpp/views.py +++ b/dpp/views.py @@ -1,5 +1,6 @@ import json import logging +import hashlib from django.views.generic.edit import View from django.http import JsonResponse @@ -31,7 +32,9 @@ class ProofView(View): doc = dev.get_phid() logger.error(doc) - + hs = hashlib.sha3_256(json.dumps(doc).encode()).hexdigest() + logger.error(hs) + data = { "algorithm": ALGORITHM, "document": json.dumps(doc)