swarmhash

0.1.1 • Public • Published

swarmhash

Build Status

This library can be used to calculate Ethereum Swarm hashes of data blobs.

Usage

The only input it supports is a Buffer and will return a Buffer containing the 256 bit hash.

Example:

const swarmhash = require('swarmhash')
 
swarmhash(Buffer.from('Hello World')).toString('hex') // d85117d40c1b74239bf0b0c4f8201e2be7d85c36efbbddc77fb9b58ed3964287

License

MIT License

Copyright (C) 2016 Alex Beregszaszi

Readme

Keywords

Package Sidebar

Install

npm i swarmhash

Weekly Downloads

9

Version

0.1.1

License

MIT

Unpacked Size

4.89 kB

Total Files

6

Last publish

Collaborators

  • axic