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

DIP: aj-stamped-denoms to make Denoms Self-Spendable #131

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

coolaj86
Copy link

@coolaj86 coolaj86 commented Jun 30, 2023

Preview

https://github.com/dashhive/DIPs/blob/aj-stamped-denominations/dip-aj-stamped-denominations.md

In Short

Makes denominations spendable.
(and spendable multiple times without de-mixing with XPub Send)

The current denomination system donates all non-denominable DASH and provides very small, often non-useful stamp values for fees.

This proposes to carry a higher stamp fee value that is useful for at least one send, and even for multiple sends (in the case that the funds are not de-mixed).

Input Denom Current Denom + Stamp Proposed Denom + Stamp
5.0 - -
0.001 9x 100001 9x 103200
0.01 9x 1000010 9x 1003200
0.1 9x 10000100 9x 10003200
1.0 4x 100001000 4x 100003000
4 self-transactable coins 31 self-transactable coins
27 non-transactable coins 0 non-transactable coins
1 mixed transaction 15+ mixed transactions
98833 DASH dusted 160 DASH dusted

Current denom stamping:

5.000 =>
    9x 0.00 10000 1
    9x 0.0 10000 10
    9x 0. 10000 100
    4x 1.0000 1000
  • Spendable Dash: 4.999
  • Fee Stamps per Denom: < 1
  • Dash Wasted: (0.00049900 + 0.00050010) - 1077 (0.019%)

Proposed denom stamping:

5.000 =>
    9x 0.001 03200
    9x 0.010 03200
    9x 0.100 03200
    4x 1.000 03000
  • Spendable Dash: 4.999
  • Fee Stamps per Denom: 15+
  • Dash Wasted: 0.00000160 (0.000%)

Stamps vs Denominations

This is about the STAMPING of denominations, not the denominations themselves. It applies to ALL denomination schemes.

For example, it can also be applied to a less data-leaky scheme using doubles, wholes, and halves:

5.000 =>
    2x 0.002 09000
    1x 0.005 09000
    2x 0.020 09000
    1x 0.050 09000
    2x 0.200 09000
    1x 0.500 08800
    2x 2.000 08800

@coolaj86 coolaj86 changed the title DIP: aj-stamped-denoms DIP: aj-stamped-denoms to make Denoms Self-Spendable Jun 30, 2023
@kxcd
Copy link

kxcd commented Jun 30, 2023

In the example you gave, the Dash is not 'wasted', when we denominate 5 Dash, we wind up with 0.00095001 Dash in change, this is kept in the wallet to pay for collateral fees which cost 0.0001 Dash. Also, using the optimised denomination you propose, may better spend the funds, leaving just 160Duffs spare, however, note that those 160 Duff would not even be enough to cover the transaction fee of the denominate transaction.

Mixing is not a value add to the Dash network, but rather a profit centre. The fees paid during mixing are shared in proportion with the miners and the masternodes, there simply is no concept of Dash being wasted, it is used to support the network.

@coolaj86
Copy link
Author

coolaj86 commented Jun 30, 2023

160 duff is donated in with the fees.
(though that particular calculation was inappropriately rounded, so it's more like 147 or 173 - I'd have to update and run it again)

My example is wrong about the change then. I misunderstood. I can change that.

We'll have to define "profit". It pays for the cost of electricity and virtualized hardware and storage for the masternode network to run and has excess?

This is part of a series of DIPs that can be accepted independently, but work in concert.

It's necessary to have stamp values high enough to self pay in order for XPub Send (Cash-Like Send) to be viable. #132 is also necessary.

@coolaj86
Copy link
Author

coolaj86 commented Jun 30, 2023

To be clear:

10003200 => 10003000 => 10002800 => 10002600, and so forth.
(though doing so would require XPub send, otherwise it would get de-mixed on the first go)

You can transact one of those coins at least 15 times.

That's using a typical example of receiving whole dash from pay and then mixing it. If you were to mix change you've received or a taxed payment, then it would be different. It could be worse, but not better. You could calculate probably 50% of that on average - so on average a coin would have enough change to spend it 7 times.

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.

2 participants