This commit is contained in:
2026-05-10 18:25:58 +01:00
parent 165af509ef
commit e4f4992a1b
31 changed files with 2708 additions and 495 deletions

View File

@@ -48,6 +48,37 @@ export interface BlockchainTransactionView {
explorerUrl: string | null;
}
/**
* Cryptographic certificate for a registered contract.
* Contains metadata, blockchain proof, and a digital signature.
* Can be downloaded and verified by third parties.
*/
export interface CryptographicCertificate {
// Document metadata
contractId: string;
contractTitle: string | null;
contractFileName: string;
documentHash: string;
// Blockchain proof
txHash: string;
blockNumber: number;
blockTimestamp: string; // ISO string
network: string;
contractAddress: string;
// Certificate metadata
certificateId: string; // Unique certificate identifier
issuedAt: string; // ISO string - when the certificate was generated
issuer: string; // Ethereum address that issued the certificate (server wallet)
// Digital signature (ECDSA)
signature: string; // Signed message in hex format (0x...)
// Version for future compatibility
version: "1.0";
}
/**
* Stats displayed at the top of the blockchain explorer page.
*/