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

eosjs-ecc

Package Overview
Dependencies
Maintainers
1
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 1.0.2 to 1.0.3

4

package.json
{
"name": "eosjs-ecc",
"version": "1.0.2",
"version": "1.0.3",
"description": "Elliptic curve cryptography functions",

@@ -8,3 +8,3 @@ "keywords": "ECC, Private Key, Public Key, Signature, AES, Encryption, Decryption",

"scripts": {
"build": "mkdir -p dist && browserify -o dist/eosjs-ecc.js -s eos_ecc index.js && sha256sum dist/eosjc-ecc.js"
"build": "mkdir -p dist && browserify -o dist/eosjs-ecc.js -s eosjs_ecc index.js && sha256sum dist/eosjs-ecc.js"
},

@@ -11,0 +11,0 @@ "repository": {

@@ -8,8 +8,4 @@ [![NPM](https://img.shields.io/npm/v/eosjs-ecc.svg)](https://www.npmjs.org/package/eosjs-ecc)

```bash
npm i eos-ecc
```
```js
const {PrivateKey, PublicKey, Signature, Aes} = require('eos-ecc')
let {PrivateKey, PublicKey, Signature, Aes} = require('eosjs-ecc')

@@ -25,10 +21,10 @@ // Create a new random private key

## Browser (build eos_ecc.js below)
## Browser (build eosjs-ecc.js below)
```html
<script src=eos_ecc.js></script>
<script src=eosjs-ecc.js></script>
```
```js
var {PrivateKey} = eos_ecc
var {PrivateKey} = eosjs_ecc
var privateWif = PrivateKey.randomKey().toWif()

@@ -42,3 +38,3 @@ var pubkey = PrivateKey.fromWif(privateWif).toPublic().toString()

```js
const {config} = require('eos-ecc')
const {config} = require('eosjs-ecc')

@@ -61,3 +57,3 @@ // Change the public key address prefix

Dependencies: Unix like OS, sha256sum
Dependencies (for building only): Unix like OS, sha256sum

@@ -69,3 +65,3 @@ ```bash

yarn build
# builds: ./dist/eos_ecc.js
# builds: ./dist/eosjs-ecc.js
# Verify release hash

@@ -72,0 +68,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