UNPKG

@jmcanterafonseca-iota/anchoring-channels

Version:

Powered by IOTA Streams, Anchor Channels is an easy to be used library that allows to anchor messages to the Tangle.

32 lines (31 loc) 1.13 kB
import { IJsonVerificationRequest } from "./models/IJsonVerificationRequest"; import { IVerificationRequest } from "./models/IVerificationRequest"; export declare class IotaVerifier { /** * Verifies a Ed25519 signature corresponding to a string message * * @param request The verification request * * @returns true or false depending on the verification result * */ static verify(request: IVerificationRequest): Promise<boolean>; /** * Verifies a plain JSON document containing a Linked Data Signature * * @param request Verification request * * @returns true or false depending on the verification result */ static verifyJson(request: IJsonVerificationRequest): Promise<boolean>; /** * Verifies a JSON-LD document containing a Linked Data Signature * * @param request Verification request * * @returns true or false depending on the verification result */ static verifyJsonLd(request: IJsonVerificationRequest): Promise<boolean>; private static verificationMethod; private static verifySignature; }