Skip to main content

ResQ.Blockchain.EvidenceRecord

EvidenceRecord(string, string, string, long, string) Constructor

Represents evidence metadata linked to IPFS storage.
public EvidenceRecord(string IncidentId, string IpfsCid, string ContentType, long SizeBytes, string Hash);

Parameters

IncidentId System.String ID of the incident this evidence belongs to. IpfsCid System.String IPFS Content Identifier for the evidence file. ContentType System.String MIME type of the evidence (e.g., “image/jpeg”, “video/mp4”). SizeBytes System.Int64 Size of the evidence file in bytes. Hash System.String Cryptographic hash of the evidence content for verification.

Example

var evidence = new EvidenceRecord(
    IncidentId: "inc-001",
    IpfsCid: "Qmabc123...",
    ContentType: "image/jpeg",
    SizeBytes: 1024567,
    Hash: "sha256:..."
);

var result = await neoClient.RecordEvidenceAsync(evidence);

Remarks

Evidence records link incidents to their associated evidence stored on IPFS. The hash field provides a content verification mechanism to ensure evidence integrity when retrieved from IPFS.