Common
Supported Languages
Package: @affinidi-tdk/common
npm install @affinidi-tdk/common --save
Package: affinidi_tdk_common
pip install affinidi_tdk_common
Package: affinidi-tdk/affinidi-tdk-php
composer require affinidi-tdk/affinidi-tdk-php
Classes and Methods
VaultUtils
Provides utility functions for Affinidi Vault requests.
buildShareLink
Generates the Affinidi Iota Framework share link to initiate request to Affinidi Vault.
Parameters
request [String]
The signed request token generated from the prepareRequest
of the Iota Browser library.
client_id [String]
The client_id from the signed request token.
Module Imports
import { VaultUtils } from '@affinidi-tdk/common'
from affinidi_tdk_common import VaultUtils
require_once 'vendor/autoload.php';
use AffinidiTdk\Common\Helpers\VaultUtils;
Sample Codes
const vaultShareLink = VaultUtils.buildShareLink(
request,
client_id,
)
vault_share_link = VaultUtils.build_share_link(request, client_id)
$shareLink = VaultUtils::buildShareLink(request, client_id);
buildClaimLink
Generates the Credential Issuance claim link to claim the credential from the Affinidi Vault.
Parameters
credentialOfferUri [String]
The Credential Offer URI returned from the startIssuance
of the Crendential Issuance client.
Module Imports
import { VaultUtils } from '@affinidi-tdk/common'
from affinidi_tdk_common import VaultUtils
require_once 'vendor/autoload.php';
use AffinidiTdk\Common\Helpers\VaultUtils;
Sample Codes
const vaultClaimLink = VaultUtils.buildClaimLink(
credentialOfferUri
)
vault_claim_link = VaultUtils.build_claim_link(credential_offer_uri)
$claimLink = VaultUtils::buildClaimLink(credentialOfferUri);
Glad to hear it! Please tell us how we can improve more.
Sorry to hear that. Please tell us how we can improve.
Thank you for sharing your feedback so we can improve your experience.