DPP/DLT functionality #36

Merged
pedro merged 68 commits from dpp into main 2024-12-11 15:15:14 +00:00
Showing only changes of commit f04d425a31 - Show all commits

View file

@ -1,5 +1,6 @@
import json import json
import logging import logging
import hashlib
from django.views.generic.edit import View from django.views.generic.edit import View
from django.http import JsonResponse from django.http import JsonResponse
@ -31,7 +32,9 @@ class ProofView(View):
doc = dev.get_phid() doc = dev.get_phid()
logger.error(doc) logger.error(doc)
hs = hashlib.sha3_256(json.dumps(doc).encode()).hexdigest()
logger.error(hs)
data = { data = {
"algorithm": ALGORITHM, "algorithm": ALGORITHM,
"document": json.dumps(doc) "document": json.dumps(doc)