Iota Core

The Iota Core library provides a method for generating the Iota Credentials required to initiate the WebSocket data-sharing mode of the Affinidi Iota Framework.

Install Dependency

Package: affinidi_tdk_iota_core

pip install affinidi_tdk_iota_core

You can check the latest version of this module on the PyPi repository or view the source code at the GitHub repository. Python library for iota-core is transpiled from the TypeScript version using JSII.

Classes and Methods

Iota

Provides methods related to Affinidi Iota Framework to generate credentials to sign the request token.

limited_token_to_iota_credentials

A static method that fetches the Iota Credentials by passing an Iota JWT Token derived from the AuthProvider.

Parameters

Token [String]

JSON Web Token (iotaJwt) generated from the authProvider.createIotaToken().

Example

import affinidi_tdk_iota_core
import affinidi_tdk_auth_provider

# Create Iota Token from AuthProvider Package
iotaToken = authProvider.create_iota_token("<IOTA_CONFIGURATION_ID>", "<LOGGED_IN_USER_DID>");

iota_credentials = await affinidi_tdk_iota_core.Iota.limited_token_to_iota_credentials(iotaToken.iota_jwt)