
Product
Rust Support in Socket Is Now Generally Available
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.
blind-pairing
Advanced tools
Blind pairing over HyperDHT
npm install @holepunchto/blind-pairing
import createTestnet from 'hyperdht/testnet.js'
import Hyperswarm from 'hyperswarm'
import BlindPairing from './index.js'
const t = await createTestnet()
const autobaseKey = Buffer.alloc(32).fill('the-autobase-key')
const { invite, publicKey, discoveryKey } = BlindPairing.createInvite(autobaseKey)
const a = new BlindPairing(new Hyperswarm({ bootstrap: t.bootstrap }), { poll: 5000 })
const m = a.addMember({
discoveryKey,
async onadd (candidate) {
console.log('candiate id is', candidate.inviteId)
candidate.open(publicKey)
console.log('add candidate:', candidate.userData)
candidate.confirm({ key: autobaseKey })
}
})
await m.flushed()
const userData = Buffer.alloc(32).fill('i am a candidate')
const b = new BlindPairing(new Hyperswarm({ bootstrap: t.bootstrap }), {
poll: 5000
})
const c = b.addCandidate({
invite,
userData,
async onadd (result) {
console.log('got the result!', result)
}
})
console.time('paired')
await c.pairing
console.timeEnd('paired')
console.log('paired:', c.paired)
await a.close()
await b.close()
console.log('closed')
await a.swarm.destroy()
await b.swarm.destroy()
console.log('fully closed')
await t.destroy()
Apache-2.0
FAQs
Blind pairing using Hyperswarm
The npm package blind-pairing receives a total of 328 weekly downloads. As such, blind-pairing popularity was classified as not popular.
We found that blind-pairing 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.

Product
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.

Security News
Chrome 144 introduces the Temporal API, a modern approach to date and time handling designed to fix long-standing issues with JavaScript’s Date object.

Research
Five coordinated Chrome extensions enable session hijacking and block security controls across enterprise HR and ERP platforms.