New:Socket for Asana Is Now Available.Learn more
Get Started

@prismnetwork/agent-sdk

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@prismnetwork/agent-sdk - npm Package Compare versions

Comparing version
0.7.0
to
0.7.1
+9
-6
attest.mjs

@@ -722,7 +722,9 @@ // Agent-side verification of a confidential generation: the checks an agent

// whose quote carried our nonce. The plaintext key-set field the same
// response supplies is a label, not a binding.
if (report.workload_keyset_digest !== digest) {
const named = report.workload_keyset_digest;
return t.fail("gpu-binding", `the GPU evidence names key set ${named}, not the one that served us`);
}
// response supplies is a label, not a binding, so a label that disagrees is
// reported and then ignored: the evidence endpoint is served by one replica
// and completions by another, so the label routinely names a sibling even
// when the quotes below prove the evidence came from the TD that served us.
// Failing on it here would reject evidence that binds cryptographically.
const labelled = report.workload_keyset_digest;
const mislabelled = labelled !== digest;
if (typeof report.intel_quote !== "string") {

@@ -748,6 +750,7 @@ return t.fail("gpu-binding", "the GPU evidence carries no CPU quote to bind against");

});
const aside = mislabelled ? `; the evidence labels itself key set ${labelled}, which the quotes above override` : "";
t.add(
"gpu-binding",
gate.ok ? "pass" : "fail",
gate.ok ? `${gate.detail}, quoted by the TD that carried our nonce` : gate.detail,
gate.ok ? `${gate.detail}, quoted by the TD that carried our nonce${aside}` : gate.detail,
);

@@ -754,0 +757,0 @@ }

+3
-3
{
"name": "@prismnetwork/agent-sdk",
"version": "0.7.0",
"version": "0.7.1",
"description": "Headless GPU leasing and renter-encrypted storage on Prism Network for wallet-holding agents.",

@@ -72,7 +72,7 @@ "type": "module",

"type": "git",
"url": "git+https://github.com/prismnetwork-tech/prism.git",
"url": "git+https://github.com/winter0x/prism.git",
"directory": "sdk"
},
"bugs": {
"url": "https://github.com/prismnetwork-tech/prism/issues"
"url": "https://github.com/winter0x/prism/issues"
},

@@ -79,0 +79,0 @@ "license": "Apache-2.0",

@@ -153,2 +153,2 @@ # @prismnetwork/agent-sdk

See [example.mjs](https://github.com/prismnetwork-tech/prism/blob/main/sdk/example.mjs) for a full run.
See [example.mjs](https://github.com/winter0x/prism/blob/main/sdk/example.mjs) for a full run.