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.
cashaccounts
Advanced tools
Cashaccounts allow you to use aliases to send Bitcoin Cash and Tokens instead of
having to type out or memorize things like
bitcoincash:qp3wjpa3tjlj042z2wv7hahsldgwhwy0rq9sywjpyy
. They look like
Jonathan#100
; The username followed by the number (based on block height
registration).
npm i cashaccounts
The library will default to using the cashaccounts.bchdata.cash lookup server, but if you run your own you can pass in the url as the first parameter. Note, registrations cost some satoshis to broadcast and the funds are subsidied by the node running the lookup server. This library contains methods for a trusted setup like the 3rd party cashaccount api, as well as methods for trustless setups for more advanced users who do only want to rely on the data from their own node.
const cashAccountClass = require('cashaccounts');
const cashAccounts = new cashAccountClass(url, nodeCredentials) // both optional
The url
defaults to https://cashaccounts.bchdata.cash
. the nodeCredentials
object looks like
{
host: 'example.com', // or ip
username: 'admin',
password: 'password1',
port: 1234,
timeout: 3000
}
returns
{
txid: "0e436928cb4370be2f46258ace2c70e81e4cc67d88cb75805c…",
hex: "0100000001cd90df45fba8dc4940eb72eb349a67ea63f9e451…"
}
returns
{
"identifier": "tokenAware#15874;",
"information": {
"emoji": "🐙",
"name": "tokenAware",
"number": 15874,
"collision": {
"hash": "2091441002",
"count": 0,
"length": 0
},
"payment": [
{
"address": "bitcoincash:qrry6f92p7x3q4np05xhv5krssdw0q0aaq3sq20mh4",
"type": "Key Hash"
},
{
"address":"simpleledger:qr932wdxkqdavp27y4pthxn7sf0awuwd7y2swnjm5m",
"type":"Key Hash"
}
]
}
}
handles can include the collision hash noted with a .
.
For example;
trustedLookup(ectest#1106.9871360083)
returns
{
"identifier": "Jonathan#100;",
"information": {
"emoji": "☯",
"name": "Jonathan",
"number": 100,
"collision": {
"hash": "5876958390",
"count": 0,
"length": 0
},
"payment": [
{
"address": "bitcoincash:qr4aadjrpu73d2wxwkxkcrt6gqxgu6a7usxfm96fst",
"type": "Key Hash"
}
]
}
}
returns
{
"blockhash" : "00000000000000000331f42d43f6a460e1bb634bd2e16a1fad9dbdf80beae100",
"blockheight" : 581590,
"data" : "01249a7741ea9f5106a9d25f156a348ee554688606",
"name" : "account1",
"opreturn" : "OP_RETURN 01010101 6163636f756e7431 01249a7741ea9f5106a9d25f156a348ee554688606 01dd4913aaef64d4e523fcb0034c41f85947590dc0",
"transactionhash" : "ca53a8c0f4af966a36ad9e5022c0d53f132caf4bbbafc4e0ebbc471bb4e261e5"
}
requires your own node via passing in the nodeCredentials
object.
returns
{
"identifier": "Jonathan#100;",
"information": {
"emoji": "☯",
"name": "Jonathan",
"number": 100,
"collision": {
"hash": "5876958390",
"count": 0,
"length": 0
},
"payment": [
{
"address": "bitcoincash:qr4aadjrpu73d2wxwkxkcrt6gqxgu6a7usxfm96fst",
"type": "Key Hash"
}
]
}
}
returns an object with the username, number, and collision
{
username: 'jonathan',
number: '100',
collision: false
}
returns boolean
Official Website https://www.cashaccount.info.
Lookup Server https://gitlab.com/cash-accounts/lookup-server.
You can read the full spec https://gitlab.com/cash-accounts/specification/blob/master/SPECIFICATION.md.
FAQs
decentralized identity system for bitcoin cash by Jonathan Silverblood
We found that cashaccounts 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.