Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
@multiformats/murmur3
Advanced tools
Multiformats Murmur3 implementations
$ npm i @multiformats/murmur3
MultihashHashers
s are exported from this library, they produce MultihashDigest
s. Details about these can be found in the multiformats multihash interface definitions.
import * as Block from 'multiformats/block'
import * as codec from '@ipld/dag-cbor'
import { murmur3128 as hasher } from '@multiformats/murmur3'
async function run () {
const value = { hello: 'world' }
const block = await Block.encode({ value, hasher, codec })
console.log(block.cid)
// -> CID(bafyseebn7ksk6khsn4an2lzmae6wm4qk)
}
run().catch(console.error)
The @multiformats/murmur3
package exports murmur332
and murmur3128
MultihashHasher
s. The Multicodecs table defines these multihashes.
The murmur3-32
, multicodec code 0x23
, may be imported as:
import { murmur332 } from '@multiformats/murmur3'
The murmur3-128
, multicodec code 0x22
, may be imported as:
import { murmur3128 } from '@multiformats/murmur3'
The murmur3-x64-64
(which is first 64-bits of murmur3-128
used in UnixFS directory sharding), multicodec code 0x22
, may be imported as:
import { murmur364 } from '@multiformats/murmur3'
Licensed under either of
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
FAQs
Multiformats Murmur3 implementations
The npm package @multiformats/murmur3 receives a total of 29,190 weekly downloads. As such, @multiformats/murmur3 popularity was classified as popular.
We found that @multiformats/murmur3 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 10 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
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.