Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

libskynet

Package Overview
Dependencies
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

libskynet - npm Package Compare versions

Comparing version 0.0.45 to 0.0.46

3

dist/registryverify.d.ts
import { error } from "./types.js";
declare function verifyRegistryReadResponse(resp: Response, pubkey: Uint8Array, datakey: Uint8Array): Promise<error>;
export { verifyRegistryReadResponse };
declare function verifyRegistryWriteResponse(resp: Response): Promise<error>;
export { verifyRegistryReadResponse, verifyRegistryWriteResponse };

@@ -73,2 +73,14 @@ import { hexToBuf } from "./encoding.js";

}
export { verifyRegistryReadResponse };
// verifyRegistryWriteResponse will verify that the response from a
// registryWrite call is valid. There's not much to verify beyond looking for
// the right response code, as the portal is not providing us with data, just
// confirming that a write succeeded.
function verifyRegistryWriteResponse(resp) {
return new Promise((resolve) => {
if (resp.status === 200) {
resolve(null);
}
resolve("expecting 200 status code for registry write, got:" + resp.status.toString());
});
}
export { verifyRegistryReadResponse, verifyRegistryWriteResponse };
{
"name": "libskynet",
"version": "0.0.45",
"version": "0.0.46",
"description": "helper library to interact with skynet's low level primitives",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc