
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.
@metaplex-foundation/cusper
Advanced tools
Resolves Custom Program Errors from Solana program logs or error codes.
Resolves Custom Program Errors from Solana program logs or error codes.
import { initCusper } from '@metaplex-foundation/cusper'
const cusper = initCusper(/* optionally provide custom error resolver here */)
const logs = [
'Program CwrqeMj2U8tFr1Rhkgwc84tpAsqbt9pTt2a4taoTADPr invoke [1]',
'Program log: Custom program error: 0x07D0',
]
function showError() {
try {
const error = { ...new Error('Test error'), logs }
cusper.throwError(error)
} catch (err) {
console.error(err)
}
}
showError()
AnchorError#ConstraintMut: A mut constraint was violated
at showError (/cusper/test/test/ex.ts:13:12)
[ .. ]
Please find the API docs here
Apache-2.0
FAQs
Resolves Custom Program Errors from Solana program logs or error codes.
The npm package @metaplex-foundation/cusper receives a total of 57,741 weekly downloads. As such, @metaplex-foundation/cusper popularity was classified as popular.
We found that @metaplex-foundation/cusper demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.
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.