Socket
Socket
Sign inDemoInstall

@digitalcredentials/data-integrity-rn

Package Overview
Dependencies
Maintainers
9
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@digitalcredentials/data-integrity-rn

React Native polyfill for globals required for Data Integrity and VC apps (TextEncoder, crypto.subtle, etc).


Version published
Weekly downloads
2
increased by100%
Maintainers
9
Weekly downloads
 
Created
Source

Data Integrity Polyfill for React Native (@digitalcredentials/data-integrity-rn)

Build status NPM Version

React Native polyfill for globals required for Data Integrity and VC apps (TextEncoder, crypto.subtle, etc).

Table of Contents

Background

There are several global objects such as TextEncoder and crypto that are present in Node.js and most browsers, but not in React Native.

This is a polyfill for these objects, which exports the following globals:

  • TextEncoder and TextDecoder
  • crypto and crypto.subtle (WebCryptography API)

Install

  • Node.js 20+ is recommended.

NPM

To install via NPM:

npm install @digitalcredentials/data-integrity-rn

Development

To install locally (for development):

git clone https://github.com/digitalcredentials/data-integrity-rn.git
cd data-integrity-rn
npm install

Usage

When developing for React Native and using various DCC-provided libraries such as @digitalcredentials/vc, make sure to import this polyfill before importing the DCC libraries:

import '@digitalcredentials/data-integrity-rn'
// Now you can import various libraries
import '@digitalcredentials/vc'
// ...

Contribute

PRs accepted.

If editing the Readme, please conform to the standard-readme specification.

License

MIT License © 2023 Digital Credentials Consortium.

Keywords

FAQs

Package last updated on 11 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc