Silent Shard SDK Installation
1. Configure your package manager
-
Obtain a NPM token from Silence Laboratories team.
-
Configure your package manager to use the Silence Laboratories NPM registry.
For npm
and yarn v1
users:
- Create a
.npmrc
file in the root of your project and add the following line:
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
For yarn v2
users:
- Create a
.yarnrc.yml
file in the root of your project and add the following line:
npmScopes:
"silencelaboratories":
npmAlwaysAuth: true
npmRegistryServer: "https://registry.npmjs.org"
npmAuthToken: "${NPM_TOKEN}"
- Add the npm token as an environment variable, e.g. in a terminal session run:
export NPM_TOKEN=your-npm-token
2. Install the library
# Using npm
npm i @silencelaboratories/silent-shard-sdk@1.3.1-next.9 @silencelaboratories/dkls-sdk@1.3.0-next.1 @silencelaboratories/schnorr-sdk@1.3.0-next.1
# or using yarn
yarn add @silencelaboratories/silent-shard-sdk@1.3.1-next.9 @silencelaboratories/dkls-sdk@1.3.0-next.1 @silencelaboratories/schnorr-sdk@1.3.0-next.1
3. Create pre build
npx expo prebuild --clean