Overview

Prerequisites and environment setup to interact with Affinidi TDK.

The Affinidi Trust Development Kit (TDK) provides clients that represent each available Affinidi service, such as Login Configurations and Credential Issuance. These clients expose service endpoints as methods that enable developers to easily call these services from their applications.

Prepare your development environment and create your first integration with the Affinidi Trust Network.

Prerequisites

Before you start working with Affinidi TDK, set up the following prerequisites. These prerequisites are required if you are new to the Affinidi TDK.

Install Affinidi CLI

Install Affinidi CLI to create Personal Access Token (PAT) to authenticate and generate authorisation token to call service endpoints with Affinidi TDK.

npm install -g @affinidi/cli

Set up development environment

Click on the language to set up your development environment and the link to the published package repository.

Install NodeJS on your machine. We recommend installing the Long-Term Support (LTS) version.

The published modules are available from the NPM repository.

Install Python 3.7 or later including pip and virtualenv on your machine.

The published modules are available from the PyPi repository.

Install PHP 7.4 or later including composer on your machine.

The published modules are available from the Packagist repository.

Install Java 1.8 or later including Maven on your machine.

The published modules are available from the Maven repository.

Create a Project

To create a project, simply login to Affinidi Portal or Affinidi CLI using your Affinidi Vault account.

On your first login, it will create a default project that you can use to create a Personal Access Token (PAT) and generate a Authorisation Token to call the Affinidi services.

Supported languages

The Affinidi TDK provides different modules available on each supported language and the type of application you are building.

Clients

Clients offer different classes and methods to access Affinidi Elements services like Credential Issuance and Credential Verification.

All clients are supported.

All clients are supported.

All clients are supported.

All clients are supported.

Packages

Packages contain commonly used utilities/helpers that are self-contained and composable.

All packages are supported.

All packages are supported.

All packages are supported.

All packages are supported.

Libraries

Libraries provide high-level abstractions that combine logic and data to perform necessary business logic functionalities.

All libraries are supported.

Only the IotaCore library is supported.

PHP

Not supported

Java

Not supported.

What’s next

  Explore Affinidi Elements to integrate on your application

  Learn more about the consent-driven data sharing framework