Skip to content

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

Open
coolaj86 wants to merge 1 commit into
dashpay:masterfrom
dashhive:aj-stamped-denominations
Open

DIP: aj-stamped-denoms to make Denoms Self-Spendable#131
coolaj86 wants to merge 1 commit into
dashpay:masterfrom
dashhive:aj-stamped-denominations

Conversation

@coolaj86

@coolaj86coolaj86 commented Jun 30, 2023

Copy link
Copy Markdown

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).

InputDenomCurrent Denom + StampProposed Denom + Stamp
5.0--
0.0019x 1000019x 103200
0.019x 10000109x 1003200
0.19x 100001009x 10003200
1.04x 1000010004x 100003000
4 self-transactable coins31 self-transactable coins
27 non-transactable coins0 non-transactable coins
1 mixed transaction15+ mixed transactions
98833 DASH dusted160 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
coolaj86force-pushed the aj-stamped-denominations branch from d7b6c29 to 040f102CompareJune 30, 2023 21:37
@coolaj86coolaj86 changed the title DIP: aj-stamped-denomsDIP: aj-stamped-denoms to make Denoms Self-SpendableJun 30, 2023
@kxcd

kxcd commented Jun 30, 2023

Copy link
Copy Markdown

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

coolaj86 commented Jun 30, 2023

Copy link
Copy Markdown
Author

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

coolaj86 commented Jun 30, 2023

Copy link
Copy Markdown
Author

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 freeto 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

@coolaj86@kxcd