@truthstampai/signer-service-sdk
v1.0.15
Published
signer service API wrapper functions
Downloads
31
Readme
Signer-Service-SDK
This package wraps all the API calls in signer service and provides Create and Verify proof.
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);