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

@chainsafe/bls-keystore

Package Overview
Dependencies
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chainsafe/bls-keystore - npm Package Compare versions

Comparing version 1.0.0-beta7 to 1.0.0-beta8

2

lib/keystore.d.ts

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

*/
static encrypt(secret: bytes, password: string, path?: string, crypto?: CryptoFunction, kdfSalt?: bytes, aesIv?: bytes): IKeystore;
static encrypt(secret: bytes, pubkey: bytes, password: string, path?: string, crypto?: CryptoFunction, kdfSalt?: bytes, aesIv?: bytes): IKeystore;
verifyPassword(password: string): boolean;

@@ -24,0 +24,0 @@ /**

@@ -12,4 +12,2 @@ "use strict";

var _bls = require("@chainsafe/bls");
var _buffer = require("buffer");

@@ -66,3 +64,3 @@

static encrypt(secret, password, path = "", crypto = _crypto2.CryptoFunction.pbkdf2, kdfSalt = (0, _crypto.randomBytes)(32), aesIv = (0, _crypto.randomBytes)(16)) {
static encrypt(secret, pubkey, password, path = "", crypto = _crypto2.CryptoFunction.pbkdf2, kdfSalt = (0, _crypto.randomBytes)(32), aesIv = (0, _crypto.randomBytes)(16)) {
const kdfModule = new _crypto2.KdfModule({

@@ -84,3 +82,3 @@ function: crypto,

path: path,
pubkey: _bls.PublicKey.fromPrivateKey(_bls.PrivateKey.fromBytes(secret)).toHexString().replace("0x", ""),
pubkey: pubkey.toString("hex"),
crypto: new _crypto2.KeystoreCrypto({

@@ -87,0 +85,0 @@ kdf: {

{
"name": "@chainsafe/bls-keystore",
"version": "1.0.0-beta7",
"version": "1.0.0-beta8",
"main": "lib/index.js",

@@ -28,3 +28,2 @@ "files": [

"@babel/register": "^7.6.2",
"@babel/runtime": "^7.7.2",
"@types/jest": "^24.0.22",

@@ -39,3 +38,2 @@ "@types/uuid": "^3.4.6",

"dependencies": {
"@chainsafe/bls": "^0.1.7",
"bcrypto": "^4.2.8",

@@ -42,0 +40,0 @@ "buffer": "^5.4.3",

@@ -7,2 +7,4 @@ # @ChainSafe/bls-keystore

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
![es-version](https://img.shields.io/badge/ES-2015-yellow)
![node-version](https://img.shields.io/badge/node-10.x-green)

@@ -9,0 +11,0 @@ > Bls keystore implementation as per draft [EIP 2335](https://github.com/ethereum/EIPs/pull/2335) for node and browser.

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