@super-protocol/sp-nvtrust-wrapper 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/py/nvtrust_wrapper.py +5 -4
package/package.json
CHANGED
package/py/nvtrust_wrapper.py
CHANGED
|
@@ -27,13 +27,14 @@ def create_attestation_client(deviceType: proto.NvidiaDeviceType):
|
|
|
27
27
|
device = None
|
|
28
28
|
if deviceType == proto.NvidiaDeviceType.GPU:
|
|
29
29
|
device = attestation.Devices.GPU
|
|
30
|
-
url = "https://nras.attestation.nvidia.com/
|
|
30
|
+
url = "https://nras.attestation.nvidia.com/v4/attest/gpu"
|
|
31
31
|
elif deviceType == proto.NvidiaDeviceType.SWITCH:
|
|
32
32
|
device = attestation.Devices.SWITCH
|
|
33
|
-
url = "https://nras.attestation.nvidia.com/
|
|
33
|
+
url = "https://nras.attestation.nvidia.com/v4/attest/switch"
|
|
34
34
|
else:
|
|
35
35
|
raise Exception("Unsupported device type: {}".format(device))
|
|
36
36
|
|
|
37
|
+
client.set_claims_version("3.0")
|
|
37
38
|
client.add_verifier(device, attestation.Environment.REMOTE, url, "")
|
|
38
39
|
return client
|
|
39
40
|
|
|
@@ -50,8 +51,8 @@ def get_nras_token(params: proto.GetNRASToken):
|
|
|
50
51
|
evidence_list = client.get_evidence({ 'ppcie_mode': params.ppcieMode })
|
|
51
52
|
|
|
52
53
|
attest = client.attest(evidence_list)
|
|
53
|
-
if attest == False:
|
|
54
|
-
|
|
54
|
+
#if attest == False:
|
|
55
|
+
# raise Exception("Attest return false")
|
|
55
56
|
|
|
56
57
|
result = proto.NvidiaToken()
|
|
57
58
|
|