@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@super-protocol/sp-nvtrust-wrapper",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "NodeJS wrapper for nvtrust",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {
@@ -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/v3/attest/gpu"
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/v3/attest/switch"
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
- raise Exception("Attest return false")
54
+ #if attest == False:
55
+ # raise Exception("Attest return false")
55
56
 
56
57
  result = proto.NvidiaToken()
57
58