import { ContextService } from "./ContextService.mjs"; import { KeyService } from "./KeyService.mjs"; import { AgentContext } from "@credo-ts/core"; //#region src/services/DataIntegrityService.d.ts /** * DataIntegrityService * * Handles signing and verification of credentials using the eddsa-rdfc-2022 cryptosuite. * This produces DataIntegrityProof proofs compatible with Credly and other OBv3 issuers. */ declare class DataIntegrityService { private readonly contextService; private readonly keyService; private readonly eddsaRdfc2022; constructor(contextService: ContextService, keyService: KeyService); /** * Sign a document using eddsa-rdfc-2022 cryptosuite * * Produces a DataIntegrityProof with: * - type: "DataIntegrityProof" * - cryptosuite: "eddsa-rdfc-2022" * - RDFC-1.0 canonicalization * - Ed25519 signature * * Uses the Credo wallet for signing (KMS-backed keys) */ sign(agentContext: AgentContext, document: Record, keyHint: { id: string; controller: string; }): Promise>; /** * Verify a signed document with DataIntegrityProof * * Supports verification of eddsa-rdfc-2022 proofs by: * 1. Resolving the public key from the verificationMethod DID * 2. Using RDFC-1.0 canonicalization to recreate the signed hash * 3. Verifying the Ed25519 signature */ verify(document: Record): Promise<{ verified: boolean; error?: string; }>; /** * Get the default cryptosuite identifier */ getDefaultCryptosuite(): string; /** * Resolve public key from a verification method ID * * This fetches the DID document and extracts the publicKeyMultibase * from the matching verification method. */ private resolvePublicKey; } //#endregion export { DataIntegrityService }; //# sourceMappingURL=DataIntegrityService.d.mts.map