Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Monero JavaScript library.
npm i monerolib
p
- private/secret key, it is scalarP
- public key, it is pointpV
- private/secret view keyPV
- public view keypS
- private/secret spend keyPS
- public spend keyHS()
- convert hash to scalar hashToScalar
G
- is the base pointKey derivation generateKeyDerivation
means:
derivation = P * p * 8
pSi = pS + HS(pV | i)
pVi = pV * pSi
PSi = PS + HS(pV | i) * G
PVi = pV * PSi
PSi = (pS + HS(pV | i)) * G
PVi = pV * (pS + HS(pV | i)) * G
r
- is the transaction private/secret keyR
- is the transaction public key, txPubKey
X
- is the stealth address or one time address targetKey
Fro address:
// Address (it is public key)
R = r * G
// Subaddress (it is some public data)
R = r * PSi
Sending:
// Address
X = Hs(r * PV | i)G + PS
// Subaddress
X = Hs(r * PVi | i)G + PSi
Receiving:
// Address
X = Hs(R * pV|i)G + PS
// Subaddress
X = Hs(R * pV|i)G + PSi
It is equal because:
// Address
R * pV = r * G * pV = r * PV
// Subaddress
R * pV = r * PSi * pV = r * PVi
r * PV
and R * pV
is a key derivation
Hp()
- convert hash to point hashToPoint
or more correctly hashToEc
x
- private/secret key of stealth address O_oJ
- is the key image keyImage
x = Hs(r * PV|i) + pS
x = Hs(R * pV|i) + pS
Key image is:
J = x * Hp(X)
FAQs
Monero JavaScript library
We found that monerolib demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
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.