Wondering what’s next for npm?Check out our public roadmap! »

    @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

    Install

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

    DownloadsWeekly Downloads

    8

    Version

    0.4.8-alpha.4

    License

    Apache-2.0

    Unpacked Size

    30 kB

    Total Files

    27

    Last publish

    Collaborators

    • avatar