1
0
This repository has been archived on 2023-11-30. You can view files and clone it, but cannot push or open issues or pull requests.
dtux__serveur-vote-lalis/include/condorcet/Documentation/Election Class/public Election--getChecksum.md
2022-09-21 14:01:45 +02:00

693 B

public Election::getChecksum

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 0.14)

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

Return value:

(string) SHA-2 256 bits Hexadecimal


Examples and explanation