@sensio/op-sn-image-raw-pixels-hash
v0.4.8-alpha.4
Published
Blockchain Version **bafy2bzacecgmp4enyoywse6enuoqgfpffojhrn7kovryv775xa7mhv6f34qju**
Downloads
2
Readme
@sensio/op-sn-image-raw-pixels-hash
Blockchain Version bafy2bzacecgmp4enyoywse6enuoqgfpffojhrn7kovryv775xa7mhv6f34qju
Description
Calculate content id of the raw pixels
Links and Repo
- npm: https://www.npmjs.com/package/@sensio/op-sn-image-raw-pixels-hash
- repo: repo folder
- support: Discord server #public-support channel
Install
# install latest version
yarn add @sensio/op-sn-image-raw-pixels-hash
# or specific version
yarn add @sensio/[email protected]
Usage
import snImageRawPixelsHash from '@sensio/op-sn-image-raw-pixels-hash'
const dataAsUintArray = new U8intArray(7)
const dataAsBuffer = Buffer.from(7)
await snImageRawPixelsHash([
{ data: dataAsUintArray, decode: () => dataAsBuffer }
])
Contributing
PRs accepted.
License
Longer version is in LICENSE file
Apache-2.0 © Sensio Group