NUT-29: Fix batch minting signature message separator #375
No reviewers
Labels
No labels
breaking change
bug
documentation
enhancement
needs discussion
needs implementation
new nut
ready
wallet-only
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forgejo-admin/nuts!375
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "a1denvalu3/fix-nut-29-batch-minting"
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?
Summary
msg_to_signfor NUT-29 batch minting to include proper colon separators between the quote ID and the blinded messages (e.g.quote_id:B_0:B_1).tests/29-tests.mdto reflect the new msg_to_sign and signature validation rule.Length as a separator may be better as it precludes use of the separator and assures injectivity - eg:
might be safer?
As an addition, we should do the same for NUT-20 message aggregation due to the variable B_ lengths between SECP and BLS.
Although we want to minimise MintInfo usage, perhaps a
nuts['20'].sig_versions: ["v0","v1"]or similar would help wallets resolve the "which message to sign" issue. Default if not supplied = legacy.EDIT: The proposed
versionparam for quotes would also resolve the ambiguity around message-to-sign constructionView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.