Skip to content
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

tx: add support for computing an elements transaction discount #456

Merged
merged 1 commit into from
Aug 16, 2024

Conversation

jgriffiths
Copy link
Contributor

@jgriffiths jgriffiths commented Aug 13, 2024

The discount is computed as the difference between the actual tx weight and the weight if the tx had only non-confidential outputs, i.e. it makes confidential txs cost the same as non-confidential ones.

See https://github.com/ElementsProject/ELIPs/blob/main/elip-0200.mediawiki for context.

As specified in ELIP 0200.

The discount is computed as the difference between the actual tx weight
and the weight if the tx had only non-confidential outputs, i.e. it
makes confidential txs cost the same as non-confidential ones.
@jgriffiths jgriffiths merged commit d51f5bf into master Aug 16, 2024
4 checks passed
@jgriffiths jgriffiths deleted the elements_discount branch August 16, 2024 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant