namespace PKHeX.Core;
///
/// Unencrypted metadata about the entity to check if the data is not corrupt.
///
public interface ISanityChecksum
{
///
/// Used to store flags about decryption state and / or integrity of the data range.
///
/// Zero when encrypted. Dumped decrypted data does not manipulate this property, and keeps it zero.
ushort Sanity { get; set; }
///
/// Calculated checksum of the encrypted region, used to check if the data has been manipulated externally.
///
///
/// Can detect if the data was modified via cheats / programs, as well as cosmic ray bit-flips.
/// Anything with a bad checksum will be flagged in the as a bad egg.
///
ushort Checksum { get; set; }
}