mirror of
https://github.com/semaphore-protocol/semaphore.git
synced 2026-01-09 14:48:12 -05:00
Semaphore utils
A library to provide utility functions to the other Semaphore packages.
🛠 Install
npm or yarn
Install the @semaphore-protocol/utils package with npm:
npm i @semaphore-protocol/utils
or yarn:
yarn add @semaphore-protocol/utils
📜 Usage
For more information on the functions and modules provided by @semaphore-protocol/utils, please refer to the TypeDoc documentation.
// You can import functions/parameters from the main bundle.
import { supportedNetworks, decodeMessage } from "@semaphore-protocol/utils"
// Or by using conditional exports.
import supportedNetworks from "@semaphore-protocol/utils/supported-networks"
import decodeMessage from "@semaphore-protocol/utils/decode-message"