Use ``passes`` to authorized ``allocate_buckets``.
If enough valid passes are supplied for the amount of storage requested then allow the operation to succeed. Otherwise, fail with an error.
parent
8e5791a4
No related branches found
No related tags found
Showing
- src/_zkapauthorizer/_storage_client.py 6 additions, 1 deletionsrc/_zkapauthorizer/_storage_client.py
- src/_zkapauthorizer/_storage_server.py 14 additions, 23 deletionssrc/_zkapauthorizer/_storage_server.py
- src/_zkapauthorizer/storage_common.py 24 additions, 0 deletionssrc/_zkapauthorizer/storage_common.py
- src/_zkapauthorizer/tests/privacypass.py 55 additions, 0 deletionssrc/_zkapauthorizer/tests/privacypass.py
- src/_zkapauthorizer/tests/test_storage_protocol.py 15 additions, 14 deletionssrc/_zkapauthorizer/tests/test_storage_protocol.py
- src/_zkapauthorizer/tests/test_storage_server.py 9 additions, 58 deletionssrc/_zkapauthorizer/tests/test_storage_server.py
Loading
Please register or sign in to comment