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

0.4.8-alpha.4 • Public • Published

@sensio/op-sn-cid

Blockchain Version bafy2bzacebvd3b7upai2av3w33dwrwqkh7w7qvbon6obi6q4evw6pqe744npu

Description

Generic CID, defaults to base32 and dag-cbor for Any kind of data.

Links and Repo

Install

# install latest version
yarn add @sensio/op-sn-cid

# or specific version
yarn add @sensio/op-sn-cid@0.3.1

Usage

import { stringToU8a } from '@polkadot/util'
import snCid from '@sensio/op-sn-cid'

await snCid([
  {
    data: stringToU8a('demo'),
    decode: () => Buffer.from('demo')
  }
])

Contributing

PRs accepted.

License

Longer version is in LICENSE file

Apache-2.0 © Sensio Group

Readme

Keywords

Package Sidebar

Install

npm i @sensio/op-sn-cid

Weekly Downloads

0

Version

0.4.8-alpha.4

License

Apache-2.0

Unpacked Size

29.2 kB

Total Files

27

Last publish

Collaborators

  • woss