feat: 接入天河链存证接口

This commit is contained in:
Nixevol
2026-07-06 18:25:55 +08:00
parent 3efc1ecd88
commit 07114b759d
26 changed files with 412 additions and 236 deletions
@@ -45,7 +45,12 @@ export class AttestationService {
};
const dataHash = this.blockchain.hashData(summary);
const proof = await this.prisma.blockchainProof.create({
data: { traceCodeId, dataHash, status: ProofStatus.PENDING },
data: {
traceCodeId,
dataHash,
status: ProofStatus.PENDING,
rawResponse: { requestMeta: summary },
},
});
await this.queue.add('onchain', { proofId: proof.id });
return proof;