Abstimm-ID Daemon - Dienst zum Erstellen von Abstimm-IDs (https://git.netzbegruenung.de/NB-Public/abstimm-id)
php-public | ||
config.ini | ||
create-table.sql | ||
functions.php | ||
generate_hashes.sh | ||
LICENSE | ||
README.md |
Abstimm-ID Daemon
Abstimm-ID Daemon - Dienst zum Erstellen und Abfragen von Abstimm-IDs (https://git.netzbegruenung.de/NB-Public/abstimm-id).
Daemon for retrieving Argon2 hashes for user pseudonymisation in vote result lists.
API definition
Get vote ID
REQUEST
Request Headers - endpoint requires SSL client certificate
GET /get_ids HTTP/1.1
Host: abstimmidd.netzbegruenung.de
Content-Type: application/json
Request Body
{
"event_token": String, // Secret event token to identify event
"round": Number, // nth vote round
"user_names": [ // User names for which the Hash should be retrieved
String,
[...] // repeat for all users for which the hash is needed
]
}
RESPONSE
[
{
"round": Number, // nth vote round
"user_name": String, // name of a user
"hash": String // Argon2 hash of user with round in Salt
},
[...] // repeats for all users listed in request
]