Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@toruslabs/torus.js
Advanced tools
A JS utility library (w/ typescript bindings!) to make calls to the Torus network
The Torus network assumes that n/4 of nodes may be malicious, and n/2 + 1 of the nodes are required for key reconstruction. Given these threshold assumptions, all API calls to the Torus nodes need to be checked for consistency while still allowing for early exits in optimistic scenarios where the first n/2 + 1 responses are from honest nodes.
Also, in order to prevent front-running by nodes, a commit-reveal process is also necessary for share retrieval.
This library handles these checks and allows you to query the Torus network easily through these APIs:
Promises
Add @toruslabs/torus.js
to your project:
Needs to be used in conjuction with @toruslabs/fetch-node-details
import FetchNodeDetails from '@toruslabs/fetch-node-details'
import TorusJs from '@toruslabs/torus.js'
const fetchNodeDetails = new FetchNodeDetails()
const TorusJs = new TorusJs()
const verifier = 'google' // any verifier
const verifierId = 'hello@tor.us' // any verifier id
const { torusNodeEndpoints, torusNodePub } = await fetchNodeDetails.getNodeDetails()
const publicAddress = await torus.getPublicAddress(torusNodeEndpoints, torusNodePub, { verifier, verifierId })
FAQs
Handle communication with torus nodes
The npm package @toruslabs/torus.js receives a total of 954 weekly downloads. As such, @toruslabs/torus.js popularity was classified as not popular.
We found that @toruslabs/torus.js demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.