/** * @license * Copyright (c) Peculiar Ventures, LLC. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import { AlgorithmIdentifier } from '@peculiar/asn1-x509'; export interface IMTCProofDetails { start: number; end: number; subtreeSize: number; isLandmarkRelative: boolean; inclusionProof: string[]; signatures: { cosignerId: string; signature: string; }[]; } export interface ISignature { algorithm: string; value: BufferSource; params?: { algorithm: string; value: BufferSource; }[]; mtcProof?: IMTCProofDetails; mtcProofError?: string; } export interface ISignatureJSON { algorithm: string; /** Signature value, hex. Empty string when the value is empty. */ value: string; /** Component signatures of a composite signature. */ parts?: { algorithm: string; value: string; }[]; mtcProof?: IMTCProofDetails; mtcProofError?: string; } /** Decodes a signature value, including composite signatures and MTC proofs. */ export declare function parseSignature(signatureAlgorithm: AlgorithmIdentifier, signatureValue: ArrayBuffer): ISignature; export declare function signatureToJSON(signature: ISignature): ISignatureJSON;