🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

eosjs-ecc

Package Overview
Dependencies
Maintainers
8
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eosjs-ecc - npm Package Compare versions

Comparing version

to
4.0.7

29

lib/aes.js

@@ -21,19 +21,18 @@ "use strict";

decrypt: decrypt
/**
Spec: http://localhost:3002/steem/@dantheman/how-to-encrypt-a-memo-when-transferring-steem
@throws {Error|TypeError} - "Invalid Key, ..."
@arg {PrivateKey} private_key - required and used for decryption
@arg {PublicKey} public_key - required and used to calcualte the shared secret
@arg {string} [nonce = uniqueNonce()] - assigned a random unique uint64
@return {object}
@property {string} nonce - random or unique uint64, provides entropy when re-using the same private/public keys.
@property {Buffer} message - Plain text message
@property {number} checksum - shared secret checksum
*/
};
/**
Spec: http://localhost:3002/steem/@dantheman/how-to-encrypt-a-memo-when-transferring-steem
@throws {Error|TypeError} - "Invalid Key, ..."
@arg {PrivateKey} private_key - required and used for decryption
@arg {PublicKey} public_key - required and used to calcualte the shared secret
@arg {string} [nonce = uniqueNonce()] - assigned a random unique uint64
@return {object}
@property {string} nonce - random or unique uint64, provides entropy when re-using the same private/public keys.
@property {Buffer} message - Plain text message
@property {number} checksum - shared secret checksum
*/
function encrypt(private_key, public_key, message) {

@@ -40,0 +39,0 @@ var nonce = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : uniqueNonce();

@@ -41,3 +41,7 @@ "use strict";

function ripemd160(data) {
return createHash('rmd160').update(data).digest();
try {
return createHash('rmd160').update(data).digest();
} catch (e) {
return createHash('ripemd160').update(data).digest();
}
} // function hash160(buffer) {

@@ -44,0 +48,0 @@ // return ripemd160(sha256(buffer))

{
"name": "eosjs-ecc",
"version": "4.0.7-ea61ee8.0",
"version": "4.0.7",
"description": "Elliptic curve cryptography functions",

@@ -40,3 +40,3 @@ "keywords": [

"dependencies": {
"@babel/runtime": "7.4.4",
"@babel/runtime": "7.6.0",
"bigi": "1.4.2",

@@ -53,13 +53,13 @@ "browserify-aes": "1.0.6",

"devDependencies": {
"@babel/cli": "7.4.4",
"@babel/core": "7.4.4",
"@babel/plugin-transform-runtime": "7.4.4",
"@babel/preset-env": "7.4.4",
"browserify": "16.2.3",
"coveralls": "3.0.3",
"documentation": "8.1.1",
"istanbul": "0.4.5",
"mocha": "5.2.0",
"nyc": "14.1.0",
"terser": "3.17.0"
"@babel/cli": "^7.6.0",
"@babel/core": "^7.6.0",
"@babel/plugin-transform-runtime": "^7.6.0",
"@babel/preset-env": "^7.6.0",
"browserify": "^16.2.3",
"coveralls": "^3.0.3",
"documentation": "^8.1.1",
"istanbul": "^0.4.5",
"mocha": "^5.2.0",
"nyc": "^14.1.0",
"terser": "^3.17.0"
},

@@ -66,0 +66,0 @@ "nyc": {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet