Closed mkoura closed 1 year ago
@mkoura Could you clarify for us the use case of this one, please.
cc: @Jimbo4350
It is the same for timelocking scripts, which may be a more realistic use case. E.g. { "type": "after", "slot": 320800 }
Although, that would probably still be used in combination with some signature witnesses. Even so, this isn't blocking any action, just forcing you to construct a slightly larger transaction than necessary.
@LudvikGalois In this case we want --witness-file
to also accept SimpleScripts (not plutus scripts because those are specially added to the tx in the build
and build-raw
commands). We can abuse the readFileScriptInAnyLang
function, however we should error if the user tries to include a plutus script.
Internal
Area Other
Summary It is not possible to sign/witness transaction for txin script where "type": "atLeast", "required": 0 without needing any skey.
Script
See corresponding unit test for ledger - https://github.com/input-output-hk/cardano-ledger/blob/587de4528a8a65bc97bef6a5f91a19283de61580/eras/shelley-ma/test-suite/test/Test/Cardano/Ledger/Mary/Examples/MultiAssets.hs#L184-L192
Expected behavior It should be possible to send the script with no signatures for the output.
System info (please complete the following information):
65422ff373f2f88a563afa746a9a16d211ffdc7c