public Election::getChecksum

November 22, 2025 ยท View on GitHub

Read it at the source

Description

public Election->getChecksum ( ): string

SHA-2 256 checksum of following internal data:

  • Candidates
  • Votes list & tags
  • Computed data (pairwise, algorithm cache, stats)
  • Class version (major version like 3.4)

Can be powerfull to check integrity and security of an election. Or working with serialized object.

Return value

(string) SHA-2 256 bits Hexadecimal


Tutorial