Skip to content

Change AnyWitness to ScriptWitness #1081

Closed

Description

@Jimbo4350

In the refactoring of TxBodyContent types like TxMintValue wrap AnyWitness. This is semantically wrong as only script witnesses can mint multiassets. After the initial refactoring is merged we must correct the type definitions to only accept script witnesses.

Note this currently does not cause problems because key witnesses are filtered out eventually.

Activity

  1. self-assigned this
    on Jan 20, 2026
  2. Jimbo4350 commented on Mar 9, 2026

    @Jimbo4350
    ContributorAuthor

    Fixed by #1093 which changes TxMintValue to use AnyScriptWitness instead of AnyWitness. All other AnyWitness usages in TxBodyContent (tx inputs, withdrawals, certificates, voting, proposals) are semantically correct since those fields legitimately support both key and script witnesses.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions