Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
chained-obj
Advanced tools
Builder and parser for objects stored by Tradle on chain. Currently uses multipart to store arbitrary JSON data + attachments. These objects are later encrypted and put on-chain.
this module is used by Tradle
var ChainedObj = require('chained-obj')
var Builder = ChainedObj.Builder
var Parser = ChainedObj.Parser
var b = new Builder()
// required
.data({
some: 'json'
})
// optional
.attach([
{ name: 'headshot', path: './path/to/attachment1' },
{ name: 'passport', path: './path/to/attachment2' }
])
// optional
.signWith(key) // a key from [kiki](https://npmjs.org/package/kiki) or a key conforming to its API
.build(function (err, result) {
// result consists of the form and the multipart boundary used
// {
// form: Buffer,
// boundary: String
// }
})
var p = new Parser()
// optional
.verifyWith(key) // a key from [kiki](https://npmjs.org/package/kiki) or a key
.parse(formBuf, function (err, parsed) {
// parsed consists of the data and attachments
// {
// data: Buffer,
// attachments: [
// {
// name: String,
// path: String,
// contentType: String
// }
// ]
// }
})
FAQs
create multipart on-chain objects
We found that chained-obj 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.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
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.