Skip to content

fix(go): omit vout for confidential seals instead of phantom vout 0 - #4

Closed
feafel wants to merge 1 commit into
UTEXO-Protocol:mainfrom
feafel:fix/omit-vout-confidential-seals
Closed

feafel wants to merge 1 commit into
UTEXO-Protocol:mainfrom
feafel:fix/omit-vout-confidential-seals

Conversation

@feafel

@feafel feafel commented Oct 11, 2026

Copy link
Copy Markdown

Rust emits confidential seals without vout, but the Go Seal decoded the absent field as uint32 0 and re-emitted vout:0 — inviting consumers to mistake it for txout 0.

Makes Vout a pointer with omitempty, updates the fixture assertion, and adds a round-trip test pinning that confidential seals decode with nil vout and marshal without the key.

Note: no Go toolchain in this env, so go test could not run locally — requesting CI.

Rust emits confidential seals without vout, but the Go Seal decoded the
absent field as uint32 0 and re-emitted vout:0 - inviting consumers to
mistake it for txout 0. Make Vout *uint32 omitempty and update the
fixture assertion; add a round-trip test pinning the absence.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants