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

Elliptic curve cryptography functions

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
25K
decreased by-10.43%
Maintainers
1
Weekly downloads
 
Created
Source

Elliptic curve cryptography functions (ECC)

Private Key, Public Key, Signature, AES, Encryption / Decryption

Usage (Node)

npm i eos-ecc
const {PrivateKey, PublicKey, Signature, Aes} = require('eos-ecc')

// Create a new random private key
privateWif = PrivateKey.randomKey().toWif()


// Convert to a public key
pubkey = PrivateKey.fromWif(privateWif).toPublic().toString()

Browser (build eos_ecc.js below)

<script src=eos_ecc.js></script>
var {PrivateKey} = eos_ecc
var privateWif = PrivateKey.randomKey().toWif()
var pubkey = PrivateKey.fromWif(privateWif).toPublic().toString()
console.log(pubkey)

Configure

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

// Change the public key address prefix
// config.address_prefix = 'XXX'

See Config

See Also

Build

Dependencies: Unix like OS, sha256sum

git clone https://github.com/eosjs/ecc.git
cd ecc
yarn
yarn build
# builds: ./dist/eos_ecc.js
# Verify release hash

Releases

  • v1.0.0 - sha256 3f8ae6c183f18cd4a6e6b5a7fac2958a3a4071f2abe6dc0286dc30e10068851b

Keywords

FAQs

Package last updated on 03 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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