Readme
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user