Socket
Book a DemoInstallSign in
Socket

hyperswarm-capability

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hyperswarm-capability

Produce a stream coupled capability for a key

latest
Source
npmnpm
Version
1.0.3
Version published
Weekly downloads
1.5K
31.38%
Maintainers
1
Weekly downloads
 
Created
Source

hyperswarm-capability

Produce a stream coupled capability for a key

npm install hyperswarm-capability

Usage

const HyperswarmCapability = require('hyperswarm-capability')

const c = new HyperswarmCapability()
const key = Buffer.from('the key you want to use a shared secret')

const cap = c.generate(stream, key)

// send to other person

if (otherC.verify(stream, key, cap)) {
  // ok the stream has proven they know the key
}

License

Apache-2.0

FAQs

Package last updated on 08 Sep 2025

Did you know?

Socket

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.

Install

Related posts