Skip to main content

ResQ.Blockchain

EvidenceRecord Class

Represents evidence metadata linked to IPFS storage.
public record EvidenceRecord : System.IEquatable<ResQ.Blockchain.EvidenceRecord>
Inheritance System.Object → EvidenceRecord Implements System.IEquatable<EvidenceRecord>

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.
Constructors
EvidenceRecord(string, string, string, long, string)Represents evidence metadata linked to IPFS storage.
Properties
ContentTypeMIME type of the evidence (e.g., “image/jpeg”, “video/mp4”).
HashCryptographic hash of the evidence content for verification.
IncidentIdID of the incident this evidence belongs to.
IpfsCidIPFS Content Identifier for the evidence file.
SizeBytesSize of the evidence file in bytes.