Common

Affinidi TDK common libraries that provides utility functions.

Install Dependency

Package: affinidi_tdk_common

pip install affinidi_tdk_common

Check the latest version on the PyPI repository or view the source on GitHub. The Python package for common is transpiled from the TypeScript version using JSII.

Classes and Methods

VaultUtils

Provides utility functions for Affinidi Vault requests.

Generates the Affinidi Iota Framework share link to initiate a request to Affinidi Vault.

Parameters

request str Required
Signed request token generated from prepareRequest of the Iota Browser library.
client_id str Required
The client_id from the signed request token.

Example

from affinidi_tdk_common import VaultUtils

vault_share_link = VaultUtils.build_share_link(request, client_id)

Generates the Credential Issuance claim link to claim the credential from Affinidi Vault.

Parameters

credentialOfferUri str Required
Credential Offer URI returned from start_issuance of the Credential Issuance client.

Example

from affinidi_tdk_common import VaultUtils

vault_claim_link = VaultUtils.build_claim_link(credential_offer_uri)