New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

graphenejs-lib

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphenejs-lib - npm Package Compare versions

Comparing version 0.4.3 to 0.4.4

4

dist/chain/src/AccountLogin.js

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

key: "generateKeys",
value: function generateKeys(accountName, password, roles) {
value: function generateKeys(accountName, password, roles, prefix) {
var start = new Date().getTime();

@@ -61,3 +61,3 @@ if (!accountName || !password) {

privKeys[role] = pkey;
pubKeys[role] = _keyCachePub[seed] ? _keyCachePub[seed] : pkey.toPublicKey().toString();
pubKeys[role] = _keyCachePub[seed] ? _keyCachePub[seed] : pkey.toPublicKey().toString(prefix);

@@ -64,0 +64,0 @@ _keyCachePub[seed] = pubKeys[role];

@@ -46,4 +46,5 @@ 'use strict';

value: function toBuffer() {
var compressed = arguments.length <= 0 || arguments[0] === undefined ? this.Q.compressed : arguments[0];
var compressed = arguments.length <= 0 || arguments[0] === undefined ? this.Q ? this.Q.compressed : null : arguments[0];
if (this.Q === null) return new Buffer('000000000000000000000000000000000000000000000000000000000000000000', 'hex');
return this.Q.getEncoded(compressed);

@@ -171,2 +172,3 @@ }

value: function fromBuffer(buffer) {
if (buffer.toString('hex') === '000000000000000000000000000000000000000000000000000000000000000000') return new PublicKey(null);
return new PublicKey(Point.decodeFrom(secp256k1, buffer));

@@ -173,0 +175,0 @@ }

{
"name": "graphenejs-lib",
"version": "0.4.3",
"version": "0.4.4",
"description": "Pure JavaScript Bitshares/Graphene library for node.js and browsers.",

@@ -5,0 +5,0 @@ "browser": {

@@ -80,2 +80,9 @@ var { Aes, PrivateKey, PublicKey, Address } = require("../../lib/ecc");

});
it("Null public key to/from buffer", function() {
var public_key = PublicKey.fromStringOrThrow(key.null_public_key);
var buffer = public_key.toBuffer();
var new_public_key = PublicKey.fromBuffer(buffer);
assert.equal(new_public_key.toPublicKeyString(), key.null_public_key);
});
});

@@ -99,4 +106,5 @@ });

Uncompressed_PTS: "GPHEgj7RM6FBwSoccGaESJLC3Mi18785bM3T",
Compressed_PTS: "GPHD5rYtofD6D4UHJH6mo953P5wpBfMhdMEi"
Compressed_PTS: "GPHD5rYtofD6D4UHJH6mo953P5wpBfMhdMEi",
null_public_key: "GPH1111111111111111111111111111111114T1Anm"
});
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