We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6fc295e commit 667a8f8Copy full SHA for 667a8f8
fdc/serializers/v1/data.py
@@ -1,5 +1,7 @@
1
from rest_framework import serializers
2
3
+from processing.utils import prefix_0x
4
+
5
from ...models import AttestationResult
6
7
@@ -12,6 +14,11 @@ class Meta:
12
14
13
15
16
class AttestationResultRawV1Serializer(serializers.ModelSerializer):
17
+ response_hex = serializers.SerializerMethodField()
18
19
+ def get_response_hex(self, obj) -> str:
20
+ return prefix_0x(obj.response_hex)
21
22
class Meta:
23
model = AttestationResult
- fields = ("response_hex", "attestation_type")
24
+ fields = ("response_hex", "attestation_type", "proof")
0 commit comments