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

ual-scatter

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

ual-scatter - npm Package Compare versions

Comparing version 0.1.6 to 0.1.7-alpha1

22

dist/ScatterUser.js

@@ -11,12 +11,6 @@ "use strict";

};
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
const eosjs_1 = require("eosjs");
const ecc = __importStar(require("eosjs-ecc"));
const eosjs_jssig_1 = require("eosjs/dist/eosjs-jssig");
const elliptic_1 = require("elliptic");
const universal_authenticator_library_1 = require("universal-authenticator-library");

@@ -62,3 +56,13 @@ const UALScatterError_1 = require("./UALScatterError");

this.scatter.authenticate(challenge).then((signature) => __awaiter(this, void 0, void 0, function* () {
const pubKey = ecc.recover(signature, challenge);
const ecc = new elliptic_1.ec('secp256k1');
const signatureBuffer = Buffer.from(signature);
const i = signatureBuffer.readUInt8(0);
let recoveryParam = i;
recoveryParam -= 27;
// tslint:disable-next-line: no-bitwise
recoveryParam = recoveryParam & 3;
if (recoveryParam > 3) {
throw new Error('Could not get recovery param from signature');
}
const pubKey = ecc.recoverPubKey(challenge, eosjs_jssig_1.Signature.fromString(signature).toElliptic(), recoveryParam);
const myKeys = yield this.getKeys();

@@ -65,0 +69,0 @@ for (const key of myKeys) {

{
"name": "ual-scatter",
"version": "0.1.6",
"version": "0.1.7-alpha1",
"main": "dist/index.js",

@@ -24,4 +24,5 @@ "license": "MIT",

"dependencies": {
"eosjs": "20.0.0",
"eosjs-ecc": "4.0.4",
"@types/elliptic": "^6.4.10",
"elliptic": "^6.5.1",
"eosjs": "20.0.2-27905cc.0",
"scatterjs-core": "2.7.17",

@@ -28,0 +29,0 @@ "scatterjs-plugin-eosjs2": "^1.5.0",

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