Repository navigation
docs(dip2): list DIP-35 special transactions - #6
Merged
PastaPastaPasta merged 1 commit intoNov 16, 2026
Conversation
Co-Authored-By: Claude Code <[email protected]>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
PastaPastaPasta
merged commit Nov 16, 2026
96efef9
into
PastaPastaPasta:dip-pasta-shared-masternode-collateral
2 checks passed
PastaPastaPasta
added a commit
that referenced
this pull request
Nov 22, 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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Testing
git diff --checkRequested by thephez via PastaClaw.
Source: dashpay#187 (comment)
Related PR: dashpay#198
🤖 Generated with Claude Code