UNPKG

scorechain-sdk

Version:

SDK for the Scorechain API

12 lines 841 B
import { AxiosError, AxiosResponse } from "axios"; /** * @description Scorechain provide a proof of authenticity conducted using JWT and asymetrical encryption of the payload. * The following function will help you with veryfying this proof of authenticity. */ export declare function proofOfAuthenticityVerifier(data: Record<string, unknown>, signature: string, publicKey: string, headerServerTimestamp: string): string; /** * @description Scorechain provide a proof of authenticity conducted using JWT and asymetrical encryption of the payload. * The following function is an adapter from the last function specificially for query realised with axios. */ export declare function proofOfAuthenticityVerifierAdapterForAxios(axiosCallResponse: AxiosResponse | AxiosError): void; //# sourceMappingURL=proofOfAuthenticityVerifier.d.ts.map