Skip to content
/ swarmhash Public

Calculate the Swarm hash of data blobs.

License

Notifications You must be signed in to change notification settings

axic/swarmhash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

swarmhash

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

About

Calculate the Swarm hash of data blobs.

Resources

License

Stars

Watchers

Forks

Packages

No packages published