Skip to content

Commit 376f999

Browse files
committed
Remove done and no-plan-to-do TODOs
1 parent 014fabc commit 376f999

2 files changed

Lines changed: 2 additions & 38 deletions

File tree

TODO

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@ TODO: Make dske.yaml the default configuration file, and add a --config option t
44

55
TODO: Cleanup Shamir's Secret Sharing (SSS) code (no back-and-forth conversion to RawShare)
66

7-
TODO: Better error response if authentication key is bad (and return to pool if allocated)
8-
- Bad block uuid
9-
- Start and end of range
10-
- Already allocated
11-
- Etc.
12-
137
TODO: Move code coverage data files to subdirectory
148

159
TODO: Stop all nodes after each test (to make sure they are stopped if test case fails)
@@ -18,23 +12,11 @@ TODO: Add a test cases with a netcat (nc) listener squatting the port
1812

1913
TODO: Make sure key has unique key UUID
2014

21-
TODO: Key initiator: Select N peer hub (initially: all peer hubs)
22-
23-
TODO: Allow a client to register itself again (after a restart). Done; just need to test.
24-
25-
TODO: Add statistics management API and topology command to query it.
26-
27-
TODO: More unit test cases to get code coverage up
28-
2915
TODO: Add Sphinx documentation
3016
Use https://github.com/tox-dev/sphinx-autodoc-typehints
3117

3218
TODO: Cleanup share after all clients have retrieved it, or after timeout.
3319

34-
TODO: Request new PSRD blocks when they run low (have a threshold)
35-
36-
TODO: Better way to avoid circular imports that then current # type: ignore
37-
3820
TODO: Make the swagger docs also work off-line
3921

4022
TODO: Type annotations everywhere
@@ -49,18 +31,11 @@ TODO: Put .out files in a sub-directory
4931

5032
TODO: OpenAPI (Swagger) documentation should show proper type for request and response data
5133

52-
TODO: Error if get-key-with-key-ids if the API is invoked on client which is not actually one of the
53-
slaves for that key.
54-
5534
TODO: Use data (instead of value) in Fragment for consistency. Also in documentation (including
5635
figures)
5736

5837
TODO: Avoid usage: __main__.py in --help output for client / hub
5938

60-
TODO: Add site map to Google Search Console
61-
62-
TODO: Consistently use httpx for client side (not requests for synchronous calls)
63-
6439
TODO: Add test case: start hub later than client (registration retry logic in client)
6540

6641
TODO: Forbid extra query parameters for API calls
@@ -72,12 +47,6 @@ TODO: Fix crash in shamir code when key size 8 is used (don't allow too small ke
7247

7348
TODO: Time-out shares on hubs and remove them if they have not been retrieved after the time-out
7449

75-
TODO: When I ask for a 20,000 bytes key, it fails (as expected). But the attempted allocation for
76-
the encryption key of each share is only 2,500 bytes which seems wrong:
77-
5 hubs x 2,500 bytes per share = 12,500 bytes (I expected at least 20,000)
78-
Note: it's because key size is in bits and pool size is in bytes. Add size_in_bits where
79-
appropriate.
80-
8150
TODO: Have an option to use PSRD data as the key instead of a random number generator.
8251
Explain pros and cons of each approach (forward secrecy if PSRD is compromised) in docs.
8352

@@ -90,11 +59,6 @@ TODO: Testcase for invalid signature
9059
- Signature is incorrect
9160
- Make sure bytes taken from pool are returned (to defend against DOS attack)
9261

93-
TODO: Do we need the owner field in class Block? We known the owner by virtue of which pool
94-
it is in.
95-
96-
TODO: If signature validation fails, return fragment to pool
97-
98-
TODO: Test case for this
62+
TODO: Test case for: if signature validation fails, return fragment to pool
9963

10064
TODO: Error message if --client or --hub does not exist in topology

manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ def etsi_qkd(self):
312312
# N/A Hub name
313313
#
314314
# In the code related to ETSI QKD 014, we use the ETSI terminology.
315-
315+
#
316316
master_sae_id = self._args.master_sae_id
317317
slave_sae_id = self._args.slave_sae_id
318318
master_kme_node = self.find_kme_node_for_sae_id(master_sae_id)

0 commit comments

Comments
 (0)