Documentation
¶
Overview ¶
Package store is a storrage backend for vote-decrypt that uses the file system.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store implements the decrypt.Store interface by writing the data to files.
If only one instance of the decrypt service is running, this is concurrency save. If more then one process is running, it depends on the features of the filesystem.
For each poll, two files are created. `POLLID_key` that contains the private key for the poll and `POLLID_hash` the contains the hash of the first stop request.
TODO: Think about timing attacks when files do not exist or have wrong content.
func (*Store) LoadKey ¶
LoadKey returns the private key from the store.
If the poll is unknown return (nil, nil)