Skip to main content
Signer service SDK is a typescript SDK which can be used to call the Signer service API.

Installation

To install the SDK use the command
npm i @truthstampai/signer-service-sdk

Using the Signer service SDK

One of the ways to import and initialise the SDK is:
import { signerservicesdk } from '@truthstampai/signer-service-sdk';

Initialise the SDK with your API key.
signerservicesdk.init('my-secret-api-key'); // Replace with your actual API key
For using the createProof function, file (digital asset) and description can be passed as parameters:
const proof = await signerservicesdk.createProof(file, description);
For using the verifyProof function, proof obtained from createProof function can be passed as parameter:
const proofResult = await signerservicesdk.verifyProof(proofData);