Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
scatter-js
Advanced tools
This is an importable javascript library that allows web applications to directly interface with Scatter Desktop.
This is an importable javascript library that allows web applications to directly interface with Scatter Desktop.
import scatter from 'scatter-js'
//or
const scatter = require('scatter-js');
You can also just drop the scatter.min.js
bundle from the dist/
directory here right into
your html file use it from there.
<script src="path/to/scatter.min.js"></script>
Coming soon.
Setting this up is easy.
let KEY = ``;
// This should be some getter for a private pairing key.
// You'll probably want to store this in a cookie or localstorage
// or perhaps something more secure as it validates that requests
// are coming from your application
function getter(){
return new Promise(resolve => resolve(KEY));
}
// This should be some setter if you are not pre-generating a
// RSA key used for the local socket's encryption.
// If you provide a `null` key from the getter initially this
// library will generate an RSA key for you.
function setter(x){
return new Promise(resolve => resolve(KEY = x));
}
// Creates a connection to Scatter Desktop and will prompt the user
// to authorize your application from within their Scatter.
scatter.connect("TestPage", getter, setter).then(connected => {
// Use `scatter` normally now.
})
See the Developer Documentation to find out how to interact with Scatter and various blockchains.
Scatter sits on top of eosjs or web3, so learn to use those depending on which blockchain you are interfacing with.
FAQs
This is an importable javascript library that allows web applications to directly interface with Scatter Desktop.
The npm package scatter-js receives a total of 7 weekly downloads. As such, scatter-js popularity was classified as not popular.
We found that scatter-js 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
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.