Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Decommits as tx outputs, not separate L2 requests #13

Open
GeorgeFlerovsky opened this issue Aug 9, 2024 · 0 comments
Open

Decommits as tx outputs, not separate L2 requests #13

GeorgeFlerovsky opened this issue Aug 9, 2024 · 0 comments

Comments

@GeorgeFlerovsky
Copy link
Owner

GeorgeFlerovsky commented Aug 9, 2024

If L1 and L2 utxos are distinguished by their network ID in address, then de-committing can just be a result of an L2 transaction that outputs a utxo with an L1 address.

Pros:

  • The same L2 tx can partially decommit some funds while keeping the rest on L2.

Cons:

  • More difficult to handle intermingled tx/decommit logic with minimal modification to Cardano ledger rules.

How:

  1. Validate the tx while disabling any checks of network ID in output addresses.
  2. If the tx validates, partition its outputs into those staying on L2 and those departing to L1.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant