Skip to content

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

Open
robwoodgate wants to merge 1 commit into
mainfrom
nut03-05-unit-consistency
Open

NUT-03/05: state unit consistency normatively#406
robwoodgate wants to merge 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.
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.

1 participant