DPP/DLT functionality #36
|
@ -95,7 +95,6 @@ class PublicDeviceWebView(TemplateView):
|
||||||
'components': components,
|
'components': components,
|
||||||
'manufacturer DPP': '',
|
'manufacturer DPP': '',
|
||||||
'device': {},
|
'device': {},
|
||||||
'components': [],
|
|
||||||
}
|
}
|
||||||
result = {
|
result = {
|
||||||
'@context': ['https://ereuse.org/dpp0.json'],
|
'@context': ['https://ereuse.org/dpp0.json'],
|
||||||
|
@ -132,8 +131,10 @@ class PublicDeviceWebView(TemplateView):
|
||||||
dev = Build(d.doc, None, check=True)
|
dev = Build(d.doc, None, check=True)
|
||||||
doc = dev.get_phid()
|
doc = dev.get_phid()
|
||||||
ev = json.dumps(doc)
|
ev = json.dumps(doc)
|
||||||
|
phid = dev.get_signature(ev)
|
||||||
|
dpp = "{}:{}".format(self.pk, phid)
|
||||||
rr = {
|
rr = {
|
||||||
'dpp': d.key,
|
'dpp': dpp,
|
||||||
'document': ev,
|
'document': ev,
|
||||||
'algorithm': ALGORITHM,
|
'algorithm': ALGORITHM,
|
||||||
'manufacturer DPP': '',
|
'manufacturer DPP': '',
|
||||||
|
|
Loading…
Reference in a new issue