This release brings two new protocol spec updates to nutshell, NUT-19 and NUT-20 (thank you @lollerfirst). It also includes a new HTTP compression middleware (thank you @ok300) and several bug fixes.
Note
Don't forget to run poetry install
if you update nutshell from the GitHub repository.
NUT-19: Cached Response
The nutshell mint now supports NUT-19 cached responses using Redis. The mint will replay successful mint, melt, and swap responses from its caching middleware. Enable these settings in your .env to cache responses in Redis:
MINT_REDIS_CACHE_ENABLED=TRUE
MINT_REDIS_CACHE_URL="redis://localhost:6379"
A new file in /docker/docker-compose.yml
can be used to start a redis server using docker compose up
.
NUT-20: Signature on Mint Quote
NUT-20 allows users to create mint quotes that can only be minted if a valid signature is provided by the creator of the mint quote.
What's Changed
- Add MPP methods key to info endpoint by @callebtc in #672
- parse env example by @callebtc in #677
- recommend openssl for key generation by @callebtc in #678
- Mint: Catch websocket disconnect errors by @callebtc in #674
- fix: NUT-15 setting remove mpp boolean by @callebtc in #673
- Add HTTP compression middleware by @ok300 in #676
- NUT-19: Cached Requests and Responses by @lollerfirst in #624
- NUT-20 (signatures on quotes) for mint and wallet side by @lollerfirst in #670
- Add period at the end of the phrase by @whileunless in #681
- Bump version to 0.16.4 by @callebtc in #685
- Add NUT-19 example for caching responses by @callebtc in #686
New Contributors
- @ok300 made their first contribution in #676
- @whileunless made their first contribution in #681
Full Changelog: 0.16.3...0.16.4