Package Exports
- @ton/crypto-primitives
- @ton/crypto-primitives/dist/browser.js
- @ton/crypto-primitives/dist/native.js
- @ton/crypto-primitives/dist/node.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@ton/crypto-primitives) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
TON crypto primitives
Cross-platform crypto primitives for building apps for TON blockchain. For internal implementation of @ton/crypto.
Features
- 🦺 Crypto primitives: SHA-256, SHA-512, PBKDF2-SHA-256, HMAC-SHA-512
- 🚀 Promise-based API
- 🏎 Built on top of Buffer (polyfill required in browsers)
- 🍰 No reimplemented crypto
Installation
yarn add @ton/crypto-primitives bufferBrowser polyfill
// Add before using library
require("buffer");React Native
To make it work on react native expo-crypto module is required:
yarn install expo-crypto
License
MIT