npm.io
2.1.0 • Published 1 year ago

@ton/crypto-primitives

Licence
MIT
Version
2.1.0
Deps
1
Size
24 kB
Vulns
0
Weekly
0
Stars
4

TON crypto primitives

Cross-platform crypto primitives for building apps for TON blockchain. For internal implementation of @ton/crypto.

Version npm

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 buffer
Browser 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