
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
ergonaddrjs
Advanced tools
JavaScript implementation for the new CashAddr address format for Ergon
Compliant with the original CashAddr specification which improves upon BIP 173.
Note: This is a JavaScript implementation of the CashAddr format specification. If you are looking for a general purpose Bitcoin Cash address translation library, check out the easy-to-use and well-tested BchAddr.js.
$ npm install --save ergonaddrjs
$ bower install --save ergonaddrjs
You may also download the distribution file manually and place it within your third-party scripts directory: dist/cashaddrjs-1.1.2.min.js.
const cashaddr = require('ergonaddrjs');
const address = 'ergon:qzlpe5s83jdjeptamv2wma058xq6pflukc6zwasrt7';
const { prefix, type, hash } = cashaddr.decode(address);
console.log(prefix); // 'ergon'
console.log(type); // 'P2PKH'
console.log(hash); // Uint8Array [ 118, 160, ..., 115 ]
console.log(cashaddr.encode(prefix, type, hash)); // 'ergon:qzlpe5s83jdjeptamv2wma058xq6pflukc6zwasrt7'
Note: This is a JavaScript implementation of the CashAddr format specification. If you are looking for an easy-to-use and well-tested library to translate between different formats, check out BchAddr.js.
You may include a script tag in your HTML and the cashaddr
module will be defined globally on subsequent scripts.
<html>
<head>
...
<script src="https://unpkg.com/ergonaddrjs@1.1.2/dist/ergonaddrjs-1.1.2.min.js"></script>
</head>
...
</html>
$ npm run docs
Browse automatically generated jsdocs online.
FAQs
Ergon address format support for Node.js and web browsers.
We found that ergonaddrjs demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.