Socket
Book a DemoInstallSign in
Socket

@animo-id/credo-ts-bbs-signatures

Package Overview
Dependencies
Maintainers
0
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@animo-id/credo-ts-bbs-signatures

Credo BBS+ Module</b

0.5.13
latest
Source
npmnpm
Version published
Weekly downloads
49
Maintainers
0
Weekly downloads
 
Created
Source


Credo Logo

Credo BBS+ Module

License typescript @credo-ts/bbs-signatures version


Credo BBS Module provides an optional addon to Credo to use BBS signatures in W3C VC exchange.

Installation

# or npm/yarn
pnpm add @credo-ts/bbs-signatures

React Native

When using Credo inside the React Native environment, temporarily, a dependency for creating keys, signing and verifying, with bbs keys must be swapped. Inside your package.json the following must be added. This is only needed for React Native environments

yarn

+   "resolutions": {
+     "@mattrglobal/bbs-signatures": "@animo-id/react-native-bbs-signatures@^0.1.0",
+   },
    "dependencies": {
      ...
+     "@animo-id/react-native-bbs-signatures": "^0.1.0",
    }

npm

+   "overrides": {
+     "@mattrglobal/bbs-signatures": "@animo-id/react-native-bbs-signatures@^0.1.0",
+   },
    "dependencies": {
      ...
+     "@animo-id/react-native-bbs-signatures": "^0.1.0",
    }

pnpm

+   "pnpm": {
+       overrides": {
+          "@mattrglobal/bbs-signatures": "npm:@animo-id/react-native-bbs-signatures@^0.1.0",
+       }
+   },
    "dependencies": {
      ...
+     "@animo-id/react-native-bbs-signatures": "^0.1.0",
    }

The resolution field says that any instance of @mattrglobal/bbs-signatures in any child dependency must be swapped with @animo-id/react-native-bbs-signatures.

The added dependency is required for autolinking and should be the same as the one used in the resolution.

React Native Bbs Signature has some quirks with setting it up correctly. If any errors occur while using this library, please refer to their README for the installation guide.

Issue with node-bbs-signatures

Right now some platforms will see an "error" when installing the @credo-ts/bbs-signatures package. This is because the BBS signatures library that we use under the hood is built for Linux x86 and MacOS x86 (and not Windows and MacOS arm). This means that it will show that it could not download the binary. This is not an error for developers, the library that fails is node-bbs-signatures and is an optional dependency for performance improvements. It will fallback to a (slower) wasm build.

FAQs

Package last updated on 28 Jan 2025

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.