Spending Conditions implementation is placed in nut11 instead of NUT-10 module #1705
Labels
No labels
DB & Storage
Deployment
Error Handling & Logging
Maintenance
Payment Backend
backport
backport v0.13.x
backport v0.14.x
backport v0.15.x
bindings
blocked
bug
cdk-sql
ci
cli
deps
documentation
duplicate
enhancement
good first issue
help wanted
invalid
keep-open
ldk-node-ui
migrations
mint
mutation-testing
needs rebase
needs review
new nut
nut change
question
ready
rust-version
rustfmt
stacked hold
stale
testing
wallet
weekly-report
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
cashubtc/cdk#1705
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
While reading the code of the spending conditions implementation inside the
cashucrate, I noticed that the implementation is currently located innut11/mod.rs.However, spending conditions are defined in NUT-10, not NUT-11. Because of that, it seems the implementation might be misplaced in the current module structure.
This could potentially make the codebase a bit confusing for contributors trying to understand which NUT specification each module corresponds to.
It might make more sense for this implementation to live under a
nut10module, instead ofnut11.github.com/cashubtc/cdk@4aa305ba03/crates/cashu/src/nuts/nut11/mod.rs (L318-L322)I think this was like this because we used to feature flag each nut. But I am fine with moving it if you would like to open an PR.
Sure! I'll do that.
Can you assign me to this issue?