Skip to content

Conversation

@teodanciu
Copy link
Contributor

@teodanciu teodanciu commented Sep 17, 2025

Omit isValid flag from the standalone transaction encoding (not affecting the block serialization)


(rendered latest proposal version)

@teodanciu teodanciu force-pushed the td/remove-tx-isValid-Flag branch from e70cf11 to d655572 Compare September 17, 2025 22:39
@teodanciu teodanciu changed the title Add initial version of CIP for Transaction serialization without `isV… Standalone transaction serialization without isValid flag Sep 17, 2025
@teodanciu teodanciu changed the title Standalone transaction serialization without isValid flag CIP-???? | Standalone transaction serialization without isValid flag Sep 17, 2025
@rphair rphair changed the title CIP-???? | Standalone transaction serialization without isValid flag CIP-???? | Remove the isValid flag from standalone transaction serialization Sep 18, 2025
Copy link
Collaborator

@rphair rphair left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks again @teodanciu @lehins - tagging Triage for introduction at next meeting (https://hackmd.io/@cip-editors/120).

@lehins @WhatisRT I think we're now seeing a greater bandwidth of Ledger CIPs for atomic changes as I think was requested in some statements I attempted to summarise in Ledger participation and bandwidth.

  • Assuming we stay with the usual (and originally recommended) process of CIPs for all Ledger changes, is there a standard list of people we can tag to confirm these PRs before what will usually be, if no objection, a summary process for candidacy & merge?
  • @Crypto2099 @Ryun1 @perturbing we should also collect names into this list with other node Ledger implementors to be sure it's evenly distributed across all node projects.

@teodanciu I've suggested a rephrase of the CIP title to:

  • use the briefest possible phrasing of the change, as appearing at the beginning of the Rationale;
  • since this CIP represents a change, like Update CIPs it's more clear to express it as an action (i.e. a verb phrase: whereas proposed standards for new objects & features are generally noun phrases).

@rphair rphair added Category: Ledger Proposals belonging to the 'Ledger' category. State: Triage Applied to new PR afer editor cleanup on GitHub, pending CIP meeting introduction. labels Sep 18, 2025
@lehins
Copy link
Contributor

lehins commented Sep 18, 2025

is there a standard list of people we can tag to confirm these PRs

I think the list of people should be decided on CIP by CIP basis, because not everyone is affected equally. For example, this CIP could use input from the Consensus team, while other ledger related CIP might need input from the Plutus team instead.
That being said, as you know always feel free to ping me for any CIP that is Ledger related. @teodanciu also expressed interest in participating in Ledger related CIPs too.

Copy link
Contributor

@lehins lehins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love it. Hopefully community will see it as a nice simplification.

@rphair
Copy link
Collaborator

rphair commented Sep 18, 2025

@lehins #1089 (comment): this CIP could use input from the Consensus team

Apologies I don't have a complete list: I'll do my best to tag Consensus authors & reviewers here; from memory plus those in this thread:

@bwbush @dnadales @nhenin @nfrisby @jasagredo @amesgen @fraser-iohk @geo2a @abailly

teodanciu and others added 2 commits September 19, 2025 15:08
@rphair rphair changed the title CIP-???? | Remove the isValid flag from standalone transaction serialization CIP-???? | Remove isValid from transactions Sep 25, 2025
@dnadales
Copy link

@rphair, thank you for the ping. @amesgen is part of the Consensus team :) I'll ask the rest of the team if there are any other remarks besides what Alex already mentioned 👍

@WhatisRT
Copy link
Contributor

The reasoning of this CIP seems sensible and it doesn't affect any specifications that we currently have, so I thumbs up from me.

@rphair
Copy link
Collaborator

rphair commented Sep 30, 2025

@teodanciu @WhatisRT we had a shift in meeting focus in favour of Leios CIP review, and also due to not having a quorum of editors present we'll have to try confirming this as Candidate again at the next meeting: https://hackmd.io/@cip-editors/121

@rphair rphair changed the title CIP-???? | Remove isValid from transactions CIP-0167? | Remove isValid from transactions Oct 14, 2025
Copy link
Collaborator

@rphair rphair left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@teodanciu the CIP meeting today was an additional confirmation that this proposal is generally well-liked all around. I believe it should proceed quickly enough toward merge but the normal process is to confirm this as a candidate before promotion to Last Check which I think will happen quickly enough (so approving as soon as CIP number is applied; I personally wouldn't be able to find any fault with this & see no expert objection).

Please also update the directory name to CIP-0167 and update your OP's "rendered latest proposal version" link accordingly 🎉

Copy link
Collaborator

@rphair rphair left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As per #1089 (review).

@rphair rphair requested review from Crypto2099 and Ryun1 October 14, 2025 19:55
@rphair rphair requested a review from perturbing October 14, 2025 19:55
@rphair rphair added State: Confirmed Candiate with CIP number (new PR) or update under review. and removed State: Triage Applied to new PR afer editor cleanup on GitHub, pending CIP meeting introduction. labels Oct 14, 2025
@rphair
Copy link
Collaborator

rphair commented Oct 28, 2025

@teodanciu somehow an incidental discussion got this off track (my mistake I think). I don't see any obstacle to what would be a relatively simple, universally agreed-upon change: so am marking Last Check which would be at our next CIP meeting in 4 weeks (since the next biweekly interval would be at the Cardano Summit). @Crypto2099 @Ryun1 @perturbing if there is consensus to merge this in the meantime I will handle the extra paperwork. 😎 cc @lehins

@rphair rphair added State: Last Check Review favourable with disputes resolved; staged for merging. and removed State: Confirmed Candiate with CIP number (new PR) or update under review. labels Oct 28, 2025
@colll78
Copy link
Contributor

colll78 commented Nov 20, 2025

This must be done very carefully because it has the potential to break a lot of bridges and light client protocols. A mithril bridge proves inclusion of a transaction in a block, if the transaction body as present in the block does not include the validity flag, then there is no way for such a bridge to determine whether the transaction succeeded or if the collateral was taken.

@rphair
Copy link
Collaborator

rphair commented Nov 20, 2025

@colll78 the editors will definitely ensure #1089 (comment) is addressed before merging this & take any response from @lehins @teodanciu into account about how we might define "carefully" in the CIP itself.

@lehins
Copy link
Contributor

lehins commented Nov 20, 2025

This must be done very carefully because it has the potential to break a lot of bridges and light client protocols. A mithril bridge proves inclusion of a transaction in a block, if the transaction body as present in the block does not include the validity flag, then there is no way for such a bridge to determine whether the transaction succeeded or if the collateral was taken.

isValid flag will still be present in the block. It is very important that it is retained, precisely because the block producer that includes transactions in the block sets that flag. This CIP is about removing isValid flag for transactions that are being submitted into the mempool. It is totally sound to do that because today that flag is completely ignored by the node.

@lehins
Copy link
Contributor

lehins commented Nov 21, 2025

@colll78 the editors will definitely ensure #1089 (comment)

@colll78 Does my explanation above clarifies your concern? Please let me know if it doesn't and I'll be happy to discuss it more. We have this statement in the CIP, please let me know how we can make it clearer:

This would not affect the serialization of the transactions within blocks, since isValid flag is already stored separately from the transaction

@colll78
Copy link
Contributor

colll78 commented Nov 21, 2025

@colll78 the editors will definitely ensure #1089 (comment)

@colll78 Does my explanation above clarifies your concern? Please let me know if it doesn't and I'll be happy to discuss it more. We have this statement in the CIP, please let me know how we can make it clearer:

This would not affect the serialization of the transactions within blocks, since isValid flag is already stored separately from the transaction

Okay so it does not impact how bridges validate whether a transaction in a block succeeded or failed? If so then yes it addresses this concern.

@lehins
Copy link
Contributor

lehins commented Nov 22, 2025

Okay so it does not impact how bridges validate whether a transaction in a block succeeded or failed?

Yes, that is correct. This CIP only affects mempool submission, not block validation

@rphair
Copy link
Collaborator

rphair commented Nov 25, 2025

@teodanciu @lehins at Last Check review at the CIP meeting today all present editors were in favour, so we're just waiting for 1 or more additional editors to sign off on it before it can be merged anytime. cc @Crypto2099 @Ryun1

Copy link
Collaborator

@Ryun1 Ryun1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approving

assuming that directory rename will be done by @rphair 🙌

@rphair rphair merged commit a9f4e0e into cardano-foundation:master Dec 9, 2025
@rphair rphair removed the State: Last Check Review favourable with disputes resolved; staged for merging. label Dec 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Category: Ledger Proposals belonging to the 'Ledger' category.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants