{"_id":"@bender876487/ion-sdk-for-shibarium","name":"@bender876487/ion-sdk-for-shibarium","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.1":{"name":"@bender876487/ion-sdk-for-shibarium","version":"1.0.1","description":"TypeScript SDK for ION-FORK-FOR-SHIBARIUM","repository":"","license":"Apache-2.0","main":"dist/lib/index.js","type":"module","types":"dist/lib/index.d.ts","dependencies":{"@noble/ed25519":"^2.0.0","@noble/secp256k1":"^2.0.0","canonicalize":"^2.0.0","multiformats":"^12.0.1","multihashes":"^4.0.3","uri-js":"^4.4.1"},"devDependencies":{"@types/jasmine":"^4.3.3","@types/node":"^18.13.0","@typescript-eslint/eslint-plugin":"^5.59.11","@typescript-eslint/parser":"^5.59.11","c8":"^8.0.0","copyfiles":"2.3.0","eslint":"^8.43.0","husky":"1.3.1","istanbul-badges-readme":"^1.8.1","jasmine":"^5.0.1","jasmine-reporters":"^2.5.2","jasmine-spec-reporter":"^7.0.0","ts-node":"8.3.0","typescript":"4.8.2"},"scripts":{"build":"tsc && copyfiles \"lib/**/*.json\" dist && copyfiles \"tests/**/*.js*\" dist && copyfiles \"package.json\" dist","test":"npm run build && c8 jasmine --config=./tests/jasmine.json && npm run badge:cc","test:only":"c8 jasmine --config=./tests/jasmine.json","lint":"eslint --ext ts lib/ tests/","lint:fix":"eslint --ext ts lib/ tests/ --fix","badge:cc":"istanbul-badges-readme","badge:cc:ci":"npm run badge:cc -- --ci"},"husky":{"hooks":{"pre-commit":"npm run lint"}},"gitHead":"64cdfa3a4fd218f2a9d9377db8e67c071618f989","_id":"@bender876487/ion-sdk-for-shibarium@1.0.1","_nodeVersion":"14.21.3","_npmVersion":"6.14.18","dist":{"integrity":"sha512-sqZw/30UyLT9jHlkuj+Xw8wBxdNGG+jEnfA3SUS4TJjsMy6nozzTCHpSO59WCl1FjkNFSxcVF5LT2tGQfQBK3w==","shasum":"463cbe0669b3026122e626e000561aedd74e6228","tarball":"https://registry.npmjs.org/@bender876487/ion-sdk-for-shibarium/-/ion-sdk-for-shibarium-1.0.1.tgz","fileCount":64,"unpackedSize":87403,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDsMPwZWKMgO5JZj9Y/xaT56P8NywDqdud+RnLn48LUrQIgIAjr2MoQQ+vVkI6WFu0WFDofkdx7amMs+0LGyO4+VRI="}]},"_npmUser":{"name":"bender876487","email":"alfredrusko@yandex.com"},"directories":{},"maintainers":[{"name":"bender876487","email":"alfredrusko@yandex.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ion-sdk-for-shibarium_1.0.1_1687514310569_0.4614373961338458"},"_hasShrinkwrap":false}},"time":{"created":"2023-06-23T09:58:30.519Z","1.0.1":"2023-06-23T09:58:30.772Z","modified":"2023-06-23T09:58:30.910Z"},"maintainers":[{"name":"bender876487","email":"alfredrusko@yandex.com"}],"description":"TypeScript SDK for ION-FORK-FOR-SHIBARIUM","license":"Apache-2.0","readme":"# TypeScript/JavaScript SDK for `did:ion`\n- This SDK allows you to create `did:ion` operations that are ready to be submitted to an ION node.\n- You can also use the SDK to create long-form ION DIDs.\n- This SDK is compatible with both node.js and browser.\n\nCode Coverage\n\n![Statements](https://img.shields.io/badge/statements-100%25-brightgreen.svg?style=flat) ![Branches](https://img.shields.io/badge/branches-100%25-brightgreen.svg?style=flat) ![Functions](https://img.shields.io/badge/functions-100%25-brightgreen.svg?style=flat) ![Lines](https://img.shields.io/badge/lines-100%25-brightgreen.svg?style=flat)\n\n```\nnpm i @decentralized-identity/ion-sdk --save\n```\n\n## Additional Setup\nThis package depends on the [`@noble/ed25519`](https://github.com/paulmillr/noble-ed25519#usage) and [`@noble/secp256k1`](https://github.com/paulmillr/noble-secp256k1#usage) v2, thus additional steps are needed for some environments:\n\n```ts\n// node.js 18 and earlier, needs globalThis.crypto polyfill\nimport { webcrypto } from 'node:crypto';\n// @ts-ignore\nif (!globalThis.crypto) globalThis.crypto = webcrypto;\n\n// React Native needs crypto.getRandomValues polyfill and sha256 for `@noble/secp256k1`\nimport 'react-native-get-random-values';\nimport { hmac } from '@noble/hashes/hmac';\nimport { sha256 } from '@noble/hashes/sha256';\nsecp.etc.hmacSha256Sync = (k, ...m) => hmac(sha256, k, secp.etc.concatBytes(...m));\nsecp.etc.hmacSha256Async = (k, ...m) => Promise.resolve(secp.etc.hmacSha256Sync(k, ...m));\n\n// React Native needs crypto.getRandomValues polyfill and sha512 for `@noble/ed25519`\nimport 'react-native-get-random-values';\nimport { sha512 } from '@noble/hashes/sha512';\ned.etc.sha512Sync = (...m) => sha512(ed.etc.concatBytes(...m));\ned.etc.sha512Async = (...m) => Promise.resolve(ed.etc.sha512Sync(...m));\n```\n","readmeFilename":"README.md"}