identus-logo

Checks Coverage Status Quality Gate Status OpenSSF Best Practices OpenSSF Scorecard

GitHub release NPM Downloads Discord

Identus TypeScript SDK

Identus is a self-sovereign identity (SSI) platform and service suite for verifiable data and digital identity. Built on Cardano, as a distributed ledger, it offers core infrastructure for issuing DIDs (Decentralized identifiers) and verifiable credentials, alongside tools and frameworks to help expand your ecosystem. The complete platform is separated into multiple repositories:

We also have SDKs for other platforms:

SDK Overview

Getting started

We highly recommend you check out the docs :world_map:

Requirements

You will need the following:

Install

NOTE: The package was renamed from @hyperledger/identus-edge-agent-sdk to @hyperledger/identus-sdk. Modify the scripts if you ready to use the new package accordingly.

npm i @hyperledger/identus-sdk

or

yarn add @hyperledger/identus-sdk

Building from source

Please make sure that all the requirements are met, then run the following commands:

sh externals/run.sh -x update # To fetch and initialize anoncreds and didcomm submodules
yarn build

Testing

In order to run the unitary tests tests simply run yarn test or with coverage:

yarn coverage

Testing e2e

Requires you to have Cloud Agent and Mediator running.

To run the tests from root level, simply:

./integration-tests/e2e-tests/run.sh

Read more

If you have any issues while building you can try building from docker (this runs exactly the same build):

docker build -t identus-sdk-ts:latest "."
docker run  -v $(pwd)/build:/app/build identus-sdk-ts:latest