Skip to content

Modelling confidential vs explicit transaction outputs #67

Closed

Description

@thomaseizinger

As mentioned here, this is a dedicated issue for discussing our attempt at re-modelling confidential and explicit transactions.

We assumed that a TxOut can either confidential or explicit - i.e. both the asset and the value are either confidential or explicit - but this turned out to not be true.

To be honest, I don't fully understand what a "pre-asset" confidential transaction is? Can I read up on this somewhere to get an overview of what the usecases are and what they look like on-chain?

Activity

  1. thomaseizinger commented on Jan 14, 2021

    @thomaseizinger
    ContributorAuthor

    After having worked with the model in our fork for a while, the most useful APIs turned out to be the conversion functions into_explicit and into_confidential on TxOut: https://github.com/comit-network/waves/blob/b4a4dfa746784429f4711e72928f156bc191702d/elements-fun/src/transaction.rs#L709-L735

    For these APIs to exist, we would not necessarily have had to do all the re-modelling that we did so I am thinking of contributing such functions back to rust-elements so we don't have to maintain our fork :)

    That should combine the best of both worlds:

    • being able to parse all kinds of combinations of explicit vs confidential information
    • having better support from the type system in deal with fully explicit vs fully confidential TxOuts
  2. thomaseizinger commented on Jun 18, 2021

    @thomaseizinger
    ContributorAuthor

    Resolved in #78 🎉

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

Metadata

Metadata

Assignees

No one assigned

    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