
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
chainpoint-connector
Advanced tools
Reference implementation of a Chainpoint web service integration
Chainpoint Connector is an easy way to manage retrieval of proofs from the Chainpoint Network. Because proof submission and retrieval from the blockchain are highly asynchronous processes, Connector is designed to queue up and execute callbacks when proofs become available.
npm install chainpoint-connector --save-prod
or, if you want the latest fixes,
npm install https://github.com/chainpoint/chainpoint-connector --save-prod
This library is an ECMAscript module and must be used with import-from syntax.
Connector uses redis as a persistent datastore. After connecting with redis and setting up the task scheduler, you can define a custom callback method to accept and store the proof results when they arrive. The callback is passed the following parameters:
error
time
(ms)id
that can be added to allow your system to identify a proof when retrievedtype
of proof (cal or btc, standing for calendar or bitcoin anchor)proof
returned by the Chainpoint NetworkExample:
import ChainpointConnector from 'chainpoint-connector'
async function submitAndMonitor() {
const chpconn = new ChainpointConnector("redis", 6379)
await chpconn.connect()
chpconn.setCallback(async function (error, time, id, type, proofs) {
if (!error && type == "btc") {
console.log(proofs)
//update your database with results
}
})
let hashes = [
'1d2a9e92b561440e8d27a21eed114f7018105db00262af7d7087f7dea9986b0a',
'2d2a9e92b561440e8d27a21eed114f7018105db00262af7d7087f7dea9986b0a',
'3d2a9e92b561440e8d27a21eed114f7018105db00262af7d7087f7dea9986b0a'
]
await chpconn.submitHashes('custom ID', hashes)
}
submitAndMonitor()
FAQs
Reference implementation of a Chainpoint web service integration
The npm package chainpoint-connector receives a total of 0 weekly downloads. As such, chainpoint-connector popularity was classified as not popular.
We found that chainpoint-connector 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.