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.
@chainlink/ccip-read-server
Advanced tools
Server framework for ccip-read, a secure protocol for offchain data retrieval
This package implements a straightforward server framework for creating CCIP-read gateway servers.
A CCIP-read gateway server accepts ABI-encoded function calls and responds to them in the same manner as a smart contract, but has access to any external resources it needs. Onchain contracts implementing CCIP-read can request that the client send a query to a gateway server and supply the results back to the contract in a subsequent call.
Typical usage would be a gateway server providing data from a database of some kind, alongside signatures or merkle proofs allowing the calling contract to verify the data's authenticity. With this model, contracts can effectively request data from an external database as part of a contract call or transaction.
Example usage:
const ccipread = require('@chainlink/ccip-read-server');
const server = new ccipread.Server();
const abi = [
'function getSignedBalance(address addr) public view returns(uint256 balance, bytes memory sig)',
];
server.add(abi, [
{
type: 'getSignedBalance',
func: async (contractAddress, [addr]) => {
const balance = getBalance(addr);
const sig = signMessage([addr, balance]);
return [balance, sig];
}
}
]);
const app = server.makeApp();
app.listen(8080);
FAQs
Server framework for ccip-read, a secure protocol for offchain data retrieval
The npm package @chainlink/ccip-read-server receives a total of 149 weekly downloads. As such, @chainlink/ccip-read-server popularity was classified as not popular.
We found that @chainlink/ccip-read-server demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 30 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
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.