refactor: store id as bytes #95
No reviewers
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!95
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "id_as_bytes"
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?
@ -17,12 +18,16 @@ use crate::nuts::nut00::CurrencyUnit;use crate::util::hex;Is there any scenario where KeySetVersion would be multiple bytes? It seems like that would be a breaking incompatible change down the line.
@ -17,12 +18,16 @@ use crate::nuts::nut00::CurrencyUnit;use crate::util::hex;It is defined in NUT-02 as a version byte. So could change to
to_byte(&self) -> u8?@ -17,12 +18,16 @@ use crate::nuts::nut00::CurrencyUnit;use crate::util::hex;Yes, I think returning (and parsing) a single byte makes more sense.