Socket
Socket
Sign inDemoInstall

@dxos/crypto

Package Overview
Dependencies
Maintainers
13
Versions
3003
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dxos/crypto - npm Package Compare versions

Comparing version 1.0.0-beta.11 to 1.0.0-beta.12

1

dist/es/keys.d.ts

@@ -11,2 +11,3 @@ /// <reference types="node" />

export declare const createKeyPair: () => KeyPair;
export declare const discoveryKey: (key: Buffer | Uint8Array) => Buffer;
/**

@@ -13,0 +14,0 @@ * @param {string} str - Hex string representation of key.

3

dist/es/keys.js

@@ -9,3 +9,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.verify = exports.sign = exports.createId = exports.randomBytes = exports.humanize = exports.keyToString = exports.keyToBuffer = exports.createKeyPair = exports.SIGNATURE_LENGTH = exports.SECRET_KEY_LENGTH = exports.PUBLIC_KEY_LENGTH = exports.hasher = void 0;
exports.verify = exports.sign = exports.createId = exports.randomBytes = exports.humanize = exports.keyToString = exports.keyToBuffer = exports.discoveryKey = exports.createKeyPair = exports.SIGNATURE_LENGTH = exports.SECRET_KEY_LENGTH = exports.PUBLIC_KEY_LENGTH = exports.hasher = void 0;
const assert_1 = __importDefault(require("assert"));

@@ -19,2 +19,3 @@ const humanhash_1 = __importDefault(require("humanhash"));

exports.createKeyPair = hypercore_crypto_1.default.keyPair;
exports.discoveryKey = hypercore_crypto_1.default.discoveryKey;
/**

@@ -21,0 +22,0 @@ * @param {string} str - Hex string representation of key.

{
"name": "@dxos/crypto",
"version": "1.0.0-beta.11",
"version": "1.0.0-beta.12",
"description": "Basic crypto key utils",

@@ -5,0 +5,0 @@ "files": [

@@ -28,2 +28,4 @@ //

export const discoveryKey: (key: Buffer | Uint8Array) => Buffer = crypto.discoveryKey;
/**

@@ -30,0 +32,0 @@ * @param {string} str - Hex string representation of key.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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