Skip to content

NUT-03/05: state unit consistency normatively - #406

Merged
callebtc merged 1 commit into
mainfrom
nut03-05-unit-consistency
Sep 15, 2026
Merged

callebtc merged 1 commit into
mainfrom
nut03-05-unit-consistency

Conversation

@robwoodgate

Copy link
Copy Markdown
Collaborator

Error codes 11009/11010 (inputs/outputs of multiple units, inputs and outputs not of same unit) already imply that a transaction cannot mix currency units, and both nutshell and cdk enforce it, but neither NUT-03 nor NUT-05 states the rule in prose. This adds one normative sentence to each.

Surfaced by #404, where the reasoning for not committing to the output keyset id relies on this invariant.

Error codes 11009 and 11010 already imply that a transaction cannot
mix currency units, but neither NUT said so in prose. Implementations
enforce it; write it down.
@robwoodgate

Copy link
Copy Markdown
Collaborator Author

@ye0man - just needs an approving review

@ye0man ye0man left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK

@callebtc
callebtc merged commit 8a2a2d2 into main Sep 15, 2026
2 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in nuts Sep 15, 2026
@robwoodgate
robwoodgate deleted the nut03-05-unit-consistency branch September 15, 2026 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants