Skip to content

fix nut-29 test vector, clarify concatenation rules.#362

Open
robwoodgate wants to merge 1 commit intocashubtc:mainfrom
robwoodgate:nut29-tests
Open

fix nut-29 test vector, clarify concatenation rules.#362
robwoodgate wants to merge 1 commit intocashubtc:mainfrom
robwoodgate:nut29-tests

Conversation

@robwoodgate
Copy link
Copy Markdown
Contributor

@robwoodgate robwoodgate commented Apr 9, 2026

The NUT-29 test vector was not correctly using NUT-20 message-to-sign rules.

This PR fixes the test vector, clarifies the rules, and adds the intermediate steps for verification (eg message hash)

Note for reviewers:

I confirmed that cashu-ts and cdk both were doing NUT-29 message aggregation correctly. It was only the test vector which was incorrect.

@github-project-automation github-project-automation bot moved this to Backlog in nuts Apr 9, 2026
@thesimplekid
Copy link
Copy Markdown
Collaborator

I confirmed that cashu-ts and cdk both were doing NUT-29 message aggregation correctly. It was only the test vector which was incorrect.

Do they already use these test vectors then or we need to add them probably?

@robwoodgate
Copy link
Copy Markdown
Contributor Author

robwoodgate commented Apr 9, 2026

I confirmed that cashu-ts and cdk both were doing NUT-29 message aggregation correctly. It was only the test vector which was incorrect.

Do they already use these test vectors then or we need to add them probably?

Cashu-ts uses the specific NUT-29 vector (how I found out it was wrong), cdk uses other tests, but not that vector specifically

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

2 participants