Implement a minimal interface for reporting spent ZKAPs to a spending service.
This includes a minimal in-memory implemenation which can be used by tests, and adds the appropriate calls to the new interface to the storage server implemenation.
Showing
- setup.cfg 1 addition, 0 deletionssetup.cfg
- src/_zkapauthorizer/_plugin.py 12 additions, 2 deletionssrc/_zkapauthorizer/_plugin.py
- src/_zkapauthorizer/_storage_server.py 36 additions, 12 deletionssrc/_zkapauthorizer/_storage_server.py
- src/_zkapauthorizer/server/__init__.py 13 additions, 0 deletionssrc/_zkapauthorizer/server/__init__.py
- src/_zkapauthorizer/server/spending.py 69 additions, 0 deletionssrc/_zkapauthorizer/server/spending.py
- src/_zkapauthorizer/tests/matchers.py 22 additions, 0 deletionssrc/_zkapauthorizer/tests/matchers.py
- src/_zkapauthorizer/tests/test_storage_protocol.py 46 additions, 2 deletionssrc/_zkapauthorizer/tests/test_storage_protocol.py
- src/_zkapauthorizer/tests/test_storage_server.py 25 additions, 7 deletionssrc/_zkapauthorizer/tests/test_storage_server.py
Loading
Please register or sign in to comment