Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
simple-js-ecdsa
Advanced tools
this project is intended as an easy to use ecdsa
creating a new identity
const identity = Identity.new()
if you would like to use a curve besides secp256k1
const ECMath = require('simple-js-ec-math')
const g = new ECMath.ModPoint(x,y)
const curve = new ECMath.Curve(<a>, <b>, <n>, <p>, g, <preprocessing>)
const identity = Identity.new(curve)
opening an existing identity using a private key
Identity.fromKey(<private number>, <curve?>)
opening a identity using a wif
Identity.fromWif(<private wif>, <curve?>)
opening a identity using sec1
Identity.fromSec1(<private wif>, <curve?>)
retrievable items in a identity
identity.key
identity.sec1Compressed
identity.sec1Uncompressed
identity.wif
identity.address
identity.compressAddress
signing a message
const signature = identity.sign(<message>)
verify a signature
identity.verify(<message>, <signature>)
signing in bip66 format
const signature = identity.signBip66(<message>)
verify bip66 signature
identity.verifyBip66(<message>, <signature>)
verify address
identity.validateAddress(<address>)
get public point
identity.publicPoint
key exchange
<identity>.keyExchange(<identity>)
bitcoin address: 1KKiniL7QnMPZZLjgGB2Kq1d7zsjUr6TnS
ethereum address: 0x177b258bD53A8F7d8C609A9277A60A51d1e7e0e0
FAQs
easy and light weight ecdsa implementation
The npm package simple-js-ecdsa receives a total of 5 weekly downloads. As such, simple-js-ecdsa popularity was classified as not popular.
We found that simple-js-ecdsa demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.