
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
@chainsafe/pubkey-index-map
Advanced tools
Small napi-rs shim with an interface similar to `Map` but only for length 48 Uint8Arrays for keys and unsigned 32 bit numbers for values.
Small napi-rs shim with an interface similar to Map<Uint8Array, number>
but only for length 48 Uint8Arrays for keys and unsigned 32 bit numbers for values.
import {PubkeyIndexMap} from "@chainsafe/pubkey-index-map"
// instantiate a new map
let map = new PubkeyIndexMap()
const pubkey: Uint8Array = ...;
const index: number = ...;
// Add a pubkey, index to the map
map.set(pubkey, index)
// Get an index from the map
map.get(pubkey) === index
// Delete a pubkey from the map
map.delete(pubkey)
// Clear the map
map.clear()
// Check the size of the map
map.size === 0
MIT
FAQs
Small napi-rs shim with an interface similar to `Map` but only for length 48 Uint8Arrays for keys and unsigned 32 bit numbers for values.
The npm package @chainsafe/pubkey-index-map receives a total of 2,035 weekly downloads. As such, @chainsafe/pubkey-index-map popularity was classified as popular.
We found that @chainsafe/pubkey-index-map demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.