Skip to content

Readme update - add summary table - #6

Merged
nmarley merged 4 commits into
dashpay:masterfrom
thephez:readme_update
Jul 18, 2017
Merged

nmarley merged 4 commits into
dashpay:masterfrom
thephez:readme_update

Conversation

@thephez

@thephez thephez commented Jul 14, 2017

Copy link
Copy Markdown
Collaborator

Thought this might be helpful as more DIPs are added in the future...

@nmarley

nmarley commented Jul 14, 2017

Copy link
Copy Markdown
Contributor

Thanks for the update -- markdown is actually the preferred format for DIPs, as specified in the README and I think the README should be in this format also. Mediawiki is notoriously difficult to parse and excessively ugly (IMO).

Is there a reason that Markdown can't be used to generate the DIPs table?

@thephez

thephez commented Jul 14, 2017

Copy link
Copy Markdown
Collaborator Author

No, there isn't. I'd been looking at BIPs recently and just copied the format. There are 2 options for doing it in markdown - either directly with markdown or with an HTML table in the markdown. I'm not a big fan of either of those really, but made a quick example to show what they look like - https://raw.githubusercontent.com/thephez/dips/bde548184537751fbb4e67c3cd0adbb675d7a8ce/Table-example.md.

I think the embedded HTML is more readable, but may not meet the markdown requirement. Also, I inadvertently pushed the example so I'll have clean that up either way.

@nmarley

nmarley commented Jul 17, 2017

Copy link
Copy Markdown
Contributor

Thanks for the examples! I think adding the table like this is the cleanest and sticks w/markdown as a bonus:

Number | Layer | Title | Owner | Type | Status
--- | --- | --- | --- | --- | ---
[1](dip-0001.md) | Consensus (hard fork) | Initial Scaling of the Network | Darren Tapp | Standard | Proposed

@thephez

thephez commented Jul 18, 2017

Copy link
Copy Markdown
Collaborator Author

Sure. Will my last update work for you? I removed that example and switched back to markdown for the whole document.

@nmarley

nmarley commented Jul 18, 2017

Copy link
Copy Markdown
Contributor

Yes, I believe that will work! Thanks!

@nmarley
nmarley merged commit 2c4ee1e into dashpay:master Jul 18, 2017
@nmarley nmarley changed the title Readme update - convert to mediawiki and add summary table Readme update - add summary table Jul 18, 2017
@thephez
thephez deleted the readme_update branch July 20, 2017 17:13
thephez referenced this pull request in thephez/dips Jul 20, 2017
Add summary table in BIP repo style
jhodges10 pushed a commit to jhodges10/dips that referenced this pull request Sep 22, 2018
Add summary table in BIP repo style
thephez added a commit that referenced this pull request Nov 17, 2026
* docs: add Decentralized Masternode Shares DIP

Pre-DIP (alias dip-pasta-shared-masternode-collateral per BIP2 naming) specifying trustless shared masternode collateral: 2-8 participants fund one masternode atomically, consensus splits owner rewards by contribution, and a covenant-enforced dissolution transaction (ProDisTx) is the only way collateral can move. Builds on DIP-0003 and extends DIP-0026 provider transaction version 4.

Co-Authored-By: Claude Fable 5 <[email protected]>

* docs: align shares DIP with the reference implementation

- Commit the signature count into SharedDisHash so the unilateral/unanimous
  mode cannot be malleated by dropping or adding signatures after signing.
- Remove the non-normative replace-by-higher-fee relay suggestion; Dash relay
  has no replacement mechanism, so the first ProDisTx for a collateral wins.
- Remove operatorReward from the ProUpSharedRegTx payload: the operator reward
  is fixed at registration, matching the DIP-0003 ProUpRegTx model.
- Specify that a validated ProDisTx removes its masternode in the
  collateral-spend phase of list construction, after the block's other
  provider transactions apply, so a same-masternode update and dissolution are
  valid together in one block in either order.
- Rewrite the filtering section: the registration matches on every share
  refund script, reward script and owner key; the lifecycle transactions are
  matched by proTxHash (plus ProUpShareTx's new reward script), consistent
  with the DIP-0003 treatment of ProUpRegTx and ProUpRevTx, since they do not
  carry the share table and stateless filters perform no list lookup.

Co-Authored-By: Claude Fable 5 <[email protected]>

* docs: track v3/v4 provider version merge and same-block dissolution rule

Dash Core folded the unreleased ProTx version 4 (MultiPayout) into
version 3 (extended addresses) since both are introduced by the same
deployment, so the shared-collateral fields now extend the version 3
payload; update every version reference accordingly.

The reference implementation also dropped support for registering and
dissolving a shared masternode within one block: a ProDisTx is now
validated against the previous block's masternode list in blocks exactly
as in the mempool, which removes the need for a second block-context
validation path. Update the enforcement rules and test vectors to match.
A standby dissolution simply becomes valid one block after registration.

Co-Authored-By: Claude Fable 5 <[email protected]>

* docs: commit input sequences into the registration consent digest

BIP68 gives input sequence numbers consensus meaning on version 2 and
later transactions, so a sequence rewrite between consent signing and
funding-input signing could impose a months-long relative timelock on a
fully consented registration without invalidating any consent signature.
Hash the sequences into SharedRegConsentHash, matching what
SharedDisHash already does.

Co-Authored-By: Claude Fable 5 <[email protected]>

* docs: address decentralized shares review feedback

* docs: cap unilateral dissolution fees and penalty overpayment

The minimum-based output rules left two unbounded paths by which value could leave the actor's share: the transaction fee and voluntary penalty overpayment. A single stolen share owner key could sign a unilateral ProDisTx that pays the victim's entire share to miners as fee, or as bonus concentrated on a colluding participant, contradicting the guarantee that owner-key compromise can never cost principal. Cap the fee at a fixed constant (MAX_DIS_FEE, 0.01 DASH) in both modes and cap the unilateral bonus sum at the configured earlyPenalty. Both ceilings are height-independent, so monotone validity is preserved and early-period standbys paying the full penalty stay valid forever. Worst-case loss under key compromise is now earlyPenalty + MAX_DIS_FEE.

Co-Authored-By: Claude Fable 5 <[email protected]>

* docs: pin digest serialization and payload hash conventions

The two digests were defined in prose, leaving byte-level choices open that would fork independent implementations: whether the domain tags are hashed as bare bytes or as length-prefixed strings, whether the shares field includes the sharesCount byte, and what 'netInfo and Platform fields' covers for a type-0 payload. Pin all three, note why collateralOutpoint is deliberately absent, and state the signed-hash convention for ProUpShareTx and ProUpSharedRegTx (signature fields omitted entirely, per DIP-0003 practice), including why sigCount is uncommitted for type 12 but committed for ProDisTx.

Co-Authored-By: Claude Fable 5 <[email protected]>

* docs: make zeroed shared fields normative for non-shared payloads

The requirement that a sharesCount = 0 payload carry no join signatures and zeroed penalty fields was only a descriptive parenthetical; no listed validation rule rejected a non-shared payload with stray non-zero values, so implementations could disagree on block validity. State the rule normatively and add it to the test list. Also rewords the section to stop describing version 3 as unreleased, which would go stale on release (review feedback).

Co-Authored-By: Claude Fable 5 <[email protected]>

* docs: extend payee-reuse rules to registrar voting-key updates

Registration rule 10 and ProUpShareTx both prevent a share script from paying the voting key, but the collision has a third entry point the spec did not cover: keeping the scripts fixed and moving the voting key onto an existing payee via ProUpSharedRegTx. The reference implementation already rejects this; state the rule so independent implementations agree.

Co-Authored-By: Claude Fable 5 <[email protected]>

* docs: pin same-block validation context for share updates

The spec fixed same-block semantics only for ProDisTx, leaving two block-validity-observable orderings to implementer inference: whether an update may follow its masternode's registration in the same block (yes, updates validate against the evolving in-block list) and whether a registration may reuse an owner key freed by a same-block dissolution (no, removal takes effect in the collateral-spend phase).

Co-Authored-By: Claude Fable 5 <[email protected]>

* docs: add wallet guidance for dissolution lock times

The dissolution digest commits nLockTime and the input sequence but consensus does not restrict them, and BIP68 applies to version-3 transactions, so a co-signer's wallet could embed a lock the other signers fail to notice. Keep time locks available to participants who want them, scope the monotone-validity claim to final transactions, and require wallets to verify the lock fields before signing.

Co-Authored-By: Claude Fable 5 <[email protected]>

* docs: drop release-time framing from the version rationale

Review feedback: statements that version 3 is unreleased go stale the moment it ships. The deploy-together requirement stands on its own.

Co-Authored-By: Claude Fable 5 <[email protected]>

* docs: align shared masternode DIP with prior-block validation

* docs: disallow empty reward scripts in share updates

* docs: align shared masternode DIP with the reference implementation

Reconcile the remaining differences found by comparing the DIP against
dashpay/dash#7437 at 23a51f009d:

- Registration rule 8: a nonzero earlyPenalty with earlyPeriodBlocks == 0 is
  invalid. It is never required, but it would still bound unilateral bonuses,
  so it would only serve as a drain ceiling for a stolen share owner key. Add
  the rationale and a test case.
- ProUpShareTx and ProUpSharedRegTx payload tables: the signature fields are
  omitted entirely from the signed hash, not serialized as empty, matching the
  prose that already said so.
- Define outputsHash for SharedRegConsentHash: DIP-0003 only defines
  inputsHash.
- ProUpSharedRegTx pubKeyOperator is always the basic (non-legacy) BLS
  encoding; shared masternodes only exist after the v24 activation that
  retires the legacy scheme.
- Mempool guidance: also evict a pending ProUpShareTx or ProUpSharedRegTx
  whose confirmed counterpart makes it violate voting-key/payee separation.

* docs(shared-mn): sync with Dash Core v24.0.0

Document the evo_shares gate for shared Evo registrations, the Evo
platformNodeID in the consent digest, field widths, the null share key
rule, coinbase output multiplicity, relay policy for template outputs,
and the code name of the dissolution fee ceiling. Rework the template
destination list and answer the InstantSend question.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* docs(shared-mn): retitle the ProUpShareTx section

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* docs(shared-mn): v24 follows evo_shares without signalling it

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* docs(dip-35): assign DIP number 35 to Decentralized Masternode Shares

Rename dip-pasta-shared-masternode-collateral.md to dip-0035.md, set the
DIP header number, and add the README index row.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* docs(dip-35): add full ProRegTx v3 field table and define digest concatenation

List every field of the version 3 ProRegTx payload, including the DIP-0026
payout list and the share fields, define || in the consent and dissolution
digests as concatenation of field serializations, and describe the sigCount
commitment as preventing mode conversion rather than malleation.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* docs(dip2): add decentralized masternode share transactions (#6)

Co-authored-by: PastaClaw <[email protected]>
Co-authored-by: Claude Code <[email protected]>

* Apply batched suggestions from code review

Co-authored-by: thephez <[email protected]>

---------

Co-authored-by: Claude Fable 5 <[email protected]>
Co-authored-by: Lil Claw <[email protected]>
Co-authored-by: PastaClaw <[email protected]>
Co-authored-by: thephez <[email protected]>
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