-
Notifications
You must be signed in to change notification settings - Fork 727
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] - cardano-cli transaction assemble
- not possible to assemble Tx with no signatures
#3835
Comments
@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. |
@LudvikGalois In this case we want |
It's possible to write a script which requires no signatures, for example ``` { "scripts": [ { "keyHash": "df243ee05bbe556970c9f8b48088b90549b8c9e41a3380fdede62d16", "type": "sig" }, { "keyHash": "452c6cc84a5430b4ff720d5692e0ce7f4d37b1f78a3bea99fdbab240", "type": "sig" }, { "keyHash": "9b925a6b6462e0c7c48fc69a06d1e72d03da30655fd5af40e988140e", "type": "sig" } ], "type": "atLeast", "required": 0 } ``` As such, it should be supported by the CLI to assemble a transaction with no witnesses. Fixes: #3835
It's possible to write a script which requires no signatures, for example ``` { "scripts": [ { "keyHash": "df243ee05bbe556970c9f8b48088b90549b8c9e41a3380fdede62d16", "type": "sig" }, { "keyHash": "452c6cc84a5430b4ff720d5692e0ce7f4d37b1f78a3bea99fdbab240", "type": "sig" }, { "keyHash": "9b925a6b6462e0c7c48fc69a06d1e72d03da30655fd5af40e988140e", "type": "sig" } ], "type": "atLeast", "required": 0 } ``` As such, it should be supported by the CLI to assemble a transaction with no witnesses. Fixes: #3835
It's possible to write a script which requires no signatures, for example ``` { "scripts": [ { "keyHash": "df243ee05bbe556970c9f8b48088b90549b8c9e41a3380fdede62d16", "type": "sig" }, { "keyHash": "452c6cc84a5430b4ff720d5692e0ce7f4d37b1f78a3bea99fdbab240", "type": "sig" }, { "keyHash": "9b925a6b6462e0c7c48fc69a06d1e72d03da30655fd5af40e988140e", "type": "sig" } ], "type": "atLeast", "required": 0 } ``` As such, it should be supported by the CLI to assemble a transaction with no witnesses. Both the assemble and sign commands have been updated to support this. Fixes: #3835
It's possible to write a script which requires no signatures, for example ``` { "scripts": [ { "keyHash": "df243ee05bbe556970c9f8b48088b90549b8c9e41a3380fdede62d16", "type": "sig" }, { "keyHash": "452c6cc84a5430b4ff720d5692e0ce7f4d37b1f78a3bea99fdbab240", "type": "sig" }, { "keyHash": "9b925a6b6462e0c7c48fc69a06d1e72d03da30655fd5af40e988140e", "type": "sig" } ], "type": "atLeast", "required": 0 } ``` As such, it should be supported by the CLI to assemble a transaction with no witnesses. Both the assemble and sign commands have been updated to support this. Fixes: #3835
It's possible to write a script which requires no signatures, for example ``` { "scripts": [ { "keyHash": "df243ee05bbe556970c9f8b48088b90549b8c9e41a3380fdede62d16", "type": "sig" }, { "keyHash": "452c6cc84a5430b4ff720d5692e0ce7f4d37b1f78a3bea99fdbab240", "type": "sig" }, { "keyHash": "9b925a6b6462e0c7c48fc69a06d1e72d03da30655fd5af40e988140e", "type": "sig" } ], "type": "atLeast", "required": 0 } ``` As such, it should be supported by the CLI to assemble a transaction with no witnesses. Both the assemble and sign commands have been updated to support this. Fixes: #3835
It's possible to write a script which requires no signatures, for example ``` { "scripts": [ { "keyHash": "df243ee05bbe556970c9f8b48088b90549b8c9e41a3380fdede62d16", "type": "sig" }, { "keyHash": "452c6cc84a5430b4ff720d5692e0ce7f4d37b1f78a3bea99fdbab240", "type": "sig" }, { "keyHash": "9b925a6b6462e0c7c48fc69a06d1e72d03da30655fd5af40e988140e", "type": "sig" } ], "type": "atLeast", "required": 0 } ``` As such, it should be supported by the CLI to assemble a transaction with no witnesses. Both the assemble and sign commands have been updated to support this. Fixes: #3835
It's possible to write a script which requires no signatures, for example ``` { "scripts": [ { "keyHash": "df243ee05bbe556970c9f8b48088b90549b8c9e41a3380fdede62d16", "type": "sig" }, { "keyHash": "452c6cc84a5430b4ff720d5692e0ce7f4d37b1f78a3bea99fdbab240", "type": "sig" }, { "keyHash": "9b925a6b6462e0c7c48fc69a06d1e72d03da30655fd5af40e988140e", "type": "sig" } ], "type": "atLeast", "required": 0 } ``` As such, it should be supported by the CLI to assemble a transaction with no witnesses. Both the assemble and sign commands have been updated to support this. Fixes: #3835
It's possible to write a script which requires no signatures, for example ``` { "scripts": [ { "keyHash": "df243ee05bbe556970c9f8b48088b90549b8c9e41a3380fdede62d16", "type": "sig" }, { "keyHash": "452c6cc84a5430b4ff720d5692e0ce7f4d37b1f78a3bea99fdbab240", "type": "sig" }, { "keyHash": "9b925a6b6462e0c7c48fc69a06d1e72d03da30655fd5af40e988140e", "type": "sig" } ], "type": "atLeast", "required": 0 } ``` As such, it should be supported by the CLI to assemble a transaction with no witnesses. Both the assemble and sign commands have been updated to support this. Fixes: #3835
It's possible to write a script which requires no signatures, for example ``` { "scripts": [ { "keyHash": "df243ee05bbe556970c9f8b48088b90549b8c9e41a3380fdede62d16", "type": "sig" }, { "keyHash": "452c6cc84a5430b4ff720d5692e0ce7f4d37b1f78a3bea99fdbab240", "type": "sig" }, { "keyHash": "9b925a6b6462e0c7c48fc69a06d1e72d03da30655fd5af40e988140e", "type": "sig" } ], "type": "atLeast", "required": 0 } ``` As such, it should be supported by the CLI to assemble a transaction with no witnesses. Both the assemble and sign commands have been updated to support this. Fixes: #3835
It's possible to write a script which requires no signatures, for example ``` { "scripts": [ { "keyHash": "df243ee05bbe556970c9f8b48088b90549b8c9e41a3380fdede62d16", "type": "sig" }, { "keyHash": "452c6cc84a5430b4ff720d5692e0ce7f4d37b1f78a3bea99fdbab240", "type": "sig" }, { "keyHash": "9b925a6b6462e0c7c48fc69a06d1e72d03da30655fd5af40e988140e", "type": "sig" } ], "type": "atLeast", "required": 0 } ``` As such, it should be supported by the CLI to assemble a transaction with no witnesses. Both the assemble and sign commands have been updated to support this. Fixes: #3835
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
The text was updated successfully, but these errors were encountered: