@sensio/op-sn-image-metadata-hash
TypeScript icon, indicating that this package has built-in type declarations

0.4.8-alpha.4 • Public • Published

@sensio/op-sn-image-metadata-hash

Blockchain Version bafy2bzaceczzm4kzeqfqnk4onhpnipiskfqcxtssm7t54dmrzso5un6eaukya

Description

Hash of full unchanged metadata buffer (or similar). Without raw pixels. The hashing is done via multihash using the hashing key to create a hash. Figure out how to do it with the ops that are not children, like use snCid

Links and Repo

Install

# install latest version
yarn add @sensio/op-sn-image-metadata-hash

# or specific version
yarn add @sensio/op-sn-image-metadata-hash@0.1.0

Usage

import snImageMetadataHash from '@sensio/op-sn-image-metadata-hash'

const dataAsUintArray = new U8intArray(7)
const dataAsBuffer = Buffer.from(7)
await snImageMetadataHash([
  { data: dataAsUintArray, decode: () => dataAsBuffer }
])

Contributing

PRs accepted.

License

Longer version is in LICENSE file

Apache-2.0 © Sensio Group

Package Sidebar

Install

npm i @sensio/op-sn-image-metadata-hash

Weekly Downloads

1

Version

0.4.8-alpha.4

License

Apache-2.0

Unpacked Size

30 kB

Total Files

27

Last publish

Collaborators

  • woss