
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
@web3-storage/data-segment
Advanced tools
Implementation of [FRC-0058](https://github.com/filecoin-project/FIPs/blob/master/FRCs/frc-0058.md) verifiable aggregation scheme
Implementation of the FRC-0058 verifiable aggregation scheme.
import { Piece, MIN_PAYLOAD_SIZE } from "@web3-storage/data-segment"
// input must be >= 65 bytes
const bytes = new Uint8Array(MIN_PAYLOAD_SIZE)
const piece = Piece.fromPayload(bytes)
// bafkzcibbai3tdo4zvruj6zxo6wlt4suu3imi6to4vzmaojh4n475mdp5jcbtg
const cid = piece.link.toSting()
Started as fork of js-fil-utils modernizing it to use ES modules and web crypto APIs in place of node APIs.
However, js-fil-utils produces different results from the more widely used go implementation which is why it got some heavy lifting inspired by go-data-segment and go-fil-commp-hashhash libraries.
FAQs
Implementation of [FRC-0058](https://github.com/filecoin-project/FIPs/blob/master/FRCs/frc-0058.md) verifiable aggregation scheme
We found that @web3-storage/data-segment demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 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
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.