Repository navigation
Dash Platform v5.1.0
Executive Summary
Dash Platform 5.1 introduces protocol version 15, which brings private data and masternode governance to Platform and moves contracts and document history to new storage forms:
- Private document types, whose encrypted entries are paid from the shielded pool. DashPay v3 uses them for private contact requests.
- Decision proposals: yes/no questions and multiple choice proposals that masternodes and evonodes vote on.
- Keep-history documents that can be deleted and erased, with their history kept across the upgrade.
- DPNS v3, which checks name registration with schema keywords and lets an owner delete or tombstone a name.
- Native validation and compiled contracts, stricter and faster, and document sums kept in 128 bits where they need it.
- Dash Core v24 and Tenderdash 2.0: version 2 asset unlocks, operator payouts that follow Core, and faster recovery from an offline block proposer.
Wallets gain private DashPay contact requests, per-contact shielded addresses and shielded tips, and the SDKs can verify Core quorum proof chains (DIP 175). Dashmate moves nodes to Dash Core 24 and Tenderdash 2.0, and is published to Dash's signed apt repository.
The new protocol rules take effect only once the network activates protocol version 15 (see Upgrading).
Key Improvements and Capabilities
1. Private Documents and DashPay
Platform 5.1 lets a contract keep documents that only their recipients can read. The client encrypts each entry, the shielded pool pays for it, and the chain never reads it. All of it is protocol version 15 behaviour.
1.1 Private Document Types
A document type may declare private: { "entrySize": n }. Its documents are fixed-size encrypted entries.
| Rule | Detail |
|---|---|
| Entry size | entrySize is at most 4,096 bytes |
| Keywords | no index, history, transfer, trade, cost, rule or reference; documents are neither mutable nor deletable; no system field; no elected moderation |
| Contract updates | the declaration cannot be added, removed or changed, and properties are added only after the existing ones |
| References | no reference may name a private type (40150; InvalidContractStructure for a findBy, inList, countOf or sumOf naming one in the same contract) |
| Batch | every document transition on a private type is refused (10425) |
Drive keeps the entries in a private document store in place of the primary-key tree. Document queries refuse a private type; the new provable getPrivateDocumentEntries reads a page of its store from a position. The SDKs seal and open entries in a standard envelope and refuse a private type too small for the payload.
1.2 Private Document Entries (type 29)
PrivateDocumentCreateFromShieldedPool (state transition type 29) appends 1 to 16 entries of one size to a private type's store. It carries an Orchard spend bundle whose value balance is exactly the fee, and no identity or platform signature; its sighash binds the contract, the type name and every entry. The fee is the bundle's shielded fee plus, per entry, its bytes and 32 overhead bytes at the storage rate and a flat 10,000,000 credits.
| Code | Refused when |
|---|---|
| 10426 | no entry, or more than 16 |
| 10427 | an entry is empty, over the size limit, or not the first entry's size |
| 10428 | two entries are the same bytes |
| 40151 | the document type is not private |
| 40152 | the entries are not the type's entrySize |
These refusals are unpaid.
1.3 DashPay Contract v3
The activation block re-stores DashPay as contract v3. Documents written under v1 and v2 read back unchanged.
- The checks its data triggers made are schema keywords now. A contact request's
toUserIdmust refer to an existing identity other than the writer (refersTo,distinctFrom).encryptedPublicKeyandencryptedAccountLabeldeclareencryptedFor(ecdh-secp256k1-aes256-cbc) and must be an IV plus whole AES blocks (10420). A profile's DIP-33 payment addresses must start with0x00or0x01(10422). - A contact request may carry
encryptedShieldedAddress: the sender's shielded payment address for this contact, encrypted to 64 or 80 bytes. privateContactRequestis a private type of 589-byte entries: a contact request that only its recipient can read, holding the account reference, the DIP-15 compact extended public key and an optional account label, auto-accept proof and shielded address.
1.4 In the Wallet
- The platform wallet sends, receives and accepts private contact requests. A request is sealed to the recipient's DashPay key and paid from the wallet's shielded notes, so nothing on chain names either identity. A contact whose requests went privately is never sent a public one.
- Every contact request carries a shielded address derived for that one contact, and every identity gets its own shielded account, checked against the seed.
- Shielded tips pay a DashPay contact or username at the shielded address its profile publishes. The wallet decides the amount, the recipient, the paying account and whether a tip may be sent; the Swift and Kotlin SDKs wrap it.
- A DashPay profile update can set, change or remove its payment addresses.
- Private contact requests are supported in the Rust, Swift, Kotlin and WASM SDKs.
2. Masternode Governance
Platform 5.1 lets anyone put a question to the masternodes and evonodes through the new decision proposals system contract (3iNyoNwjCTkb7XS3RHyWUtLx7pgC6AFAEQNNDHzxqngF). The results are signaling only: nothing on Platform acts on them. All of it is protocol version 15 behaviour.
2.1 Yes/No Proposals
Creating a proposal opens a masternode yes/no vote poll on it. Its rule is part of the proposal and never changes:
| Property | Rule |
|---|---|
passPercent |
50 to 80. The proposal passes when yes is strictly more than this percent of yes plus no |
minimumTurnoutPercent |
0 to 50. The least yes plus no voting power, as a percent of the masternode list's total voting power when the poll closes (a masternode votes with 1, an evonode with 4; PoSe-banned masternodes are left out) |
endDate |
one to four weeks after the block that opens the poll |
| Fund | 0.5 Dash from the proposer prefunds the votes; what they leave is released as processing fees when the poll ends |
The owner may edit the title, description and url for a day after creating the proposal, or for a fifth of its run if that is shorter, and every version is kept. A vote names its poll by id. The provable getYesNoVotePollState and getMasternodeYesNoVote queries read a poll and a masternode's answer.
2.2 Multiple Choice Proposals
- A
multipleChoiceProposalpays a flat 0.2 Dash processing fee on top of its gas and opens no vote itself. What is being decided is described at aurl, in a document of a contract whose moderators the masternodes elect (so the description can be taken down), or both. - Its
choicedocuments contend in one masternode vote among documents: each choice is a contender of its own. Anyone may enter choices for an open proposal; only its owner may for one that is not open. Each choice pays the contested document fund (0.1 Dash, doubling at 250 choices and again every 50 more). - Masternodes vote for a choice, abstain, or lock (none of the choices). When the vote ends, two weeks after the first choice on mainnet, the choice with the most votes is stored and the others are removed. A tie goes to the earliest choice.
- The vote among documents is a new contested index
resolution: 2that any contract can declare: each document entered for the index values is a contender, so one identity may enter several.
2.3 Clients
Yes/no and multiple choice proposals are available in rs-sdk, wasm-sdk, js-evo-sdk, rs-sdk-ffi, Swift and Kotlin. The example apps sign masternode votes with a stored voting key, load a shared masternode (one without an owner identity) for voting through its voter identity, and check a voting key against Platform when it is loaded.
3. Documents and Data Contracts
Protocol version 15 changes how documents and contracts are stored and checked. Clients need a 5.1 SDK to read the new forms (see App developers).
3.1 Document History and Its Lifecycle (protocol 15)
At activation, the retained revisions of every keep-history document move to per-type history trees. The primary entry references the current revision, proofs authenticate history pages, and keep-history index references shrink from 44 to 42 bytes.
| Keyword | Effect |
|---|---|
canBeDeleted: true |
Now allowed with documentsKeepHistory. A delete removes the current pointer and the index entries, keeps the revisions and writes a lifecycle record |
canBeErased: true |
The retained revisions of a deleted document may be purged. Requires documentsKeepHistory and canBeDeleted, and is fixed once registered |
- An erase is a new document transition. It removes at most 100 revisions, newest first. The owner's first erase authorizes the erasure; after that any identity may submit the remaining ones. Removing a revision refunds whoever paid for it.
- A keep-history type registered earlier whose
canBeDeletedis true, including by default, becomes deletable without a contract update;canBeErasedstays false. - A keep-history type may not carry a contested index.
getDocumentHistoryrequest version 1 reads the new layout; version 0, which 5.0.x sends, is retired. A single-document lookup can ask for a document as it was at a block time.
3.2 Native Validation and Compiled Contracts (protocol 15)
- Documents are checked against a typed validation schema in Platform's own code instead of the
jsonschemacrate, with the same verdicts and error codes except that0.0and-0.0are one value in a unique list, aformat: regexvalue is checked for its syntax only, and anenumviolation lists a bounded number of allowed values. - Schemas are checked natively at registration. An index property name is at most 255 bytes, a schema naming a key twice is refused, arrays are held to the maximum depth, and a
$refis read as an RFC 6901 pointer. - Drive stores a contract it creates or updates in contract format version 2, with its document types compiled, and reads it back without parsing its schemas. The compiled bytes, about 1.8 times as many, are paid by the byte, and a compiled contract takes at most 1 MiB (10282). The 65,000-byte limit still applies to the format version 1 bytes. A contract stored earlier is re-stored compiled at its next update or token configuration update.
3.3 Document Sums in 128 Bits (protocol 15)
- A document type whose summed property is not declared within ±2^27 keeps its sums in trees with a 128-bit total; types within ±2^27 keep their 64-bit trees. The activation converts the trees of types registered earlier.
- Registration and update refuse a summed property whose values may pass ±2^27, unless it declares a
minimumof 0 or more on a type that keeps the property's total (documentsSummableordocumentsAverageable). A write that would take such a type past what its sums hold is refused (DocumentSumOverflowError, 40154). Summing a property listed as transient is refused. - Proved sum and average queries return the whole sum:
i128in Rust,Int128in Swift, decimal strings over the FFI. An unproven read refuses a sum past 64 bits.
3.4 References Whose Target the Document Names (protocol 15)
A permanentDocument or moderatedDocument refersTo may read its contractId and documentType from the referring document ("$self.<property>"), with documentTypeRequirements that the named type must meet:
| Option | Detail |
|---|---|
type |
one kind, or both (["permanentDocument", "moderatedDocument"]) |
| Slots | up to 4 named slots, each a property the named type must have (name, type, maxBytes, distinctFrom, when) |
require |
anyOf / allOf over slot names; every slot when absent |
when |
a condition on the named type ($kind, $property, its moderator abilities), at most 16 nodes, strings at most 256 characters |
Judging the named type is billed at 100 credits per comparison. A type that does not meet the requirements is refused (40153). Multiple choice proposals use this for their description document.
3.5 Other Contract Rules (protocol 15)
| Rule | Effect |
|---|---|
| Nested objects | An object's members follow the update rules of the type's own properties: they keep their order and requiredness, and members are added only after them, at consecutive positions |
| Patterns | At most 32 patterns per contract, 4 KiB together, 256 bytes each and 128 KiB compiled; patterns compile when first used |
| Decoding | Decoded data size is bounded; a typed array element pinned to zero bytes is refused |
| Byte arrays | A byte array or identifier written as a list holding an integer that is not a byte is refused |
| Contested indexes | Must be decided by their index values and keyed by top-level properties |
| Counts and sums | countOf and sumOf filters match byte array keys, and can match a key by any element of a typed array |
generatedFrom |
sys.tokens.decimals generates a token's decimals from the token an identifier property names |
| Contract cache | A cached contract is served only to a reader at the protocol version that parsed it |
4. DPNS v3
The activation block re-stores DPNS as contract v3. Name registration is checked with schema keywords instead of a data trigger. All of it is protocol version 15 behaviour.
4.1 Name Registration
normalizedLabelandnormalizedParentDomainNameare generated withhomographSafeASCII; a different value sent is refused (10424).- A name create must find the creator's own
preorderof the name from an earlier block, and consumes it (not found: 40120, too young: 40142). - A preorder carries no salt. It is unique per owner and name and lives one hour (
ttl3600), so it refunds nothing when consumed. A name holds at most 1,000 preorders; one past that is refused (10422). - Outside a contest the earliest valid preorder wins: a create is refused while another identity holds an earlier valid preorder of the name (40149). A contested name is open to every identity holding its own valid preorder, and the masternode vote decides.
- A new name's identity record must be its owner (10422).
- Every preorder made before the upgrade is deleted at activation, without a refund.
4.2 Deleting and Tombstoning Names
- A name's owner may delete it, which frees the name for anybody. A contested name cannot be deleted, only tombstoned.
- Creating a
tombstonedeletes the creator's owndomainof that name. Nobody can replace, delete or transfer a tombstone, and a tombstoned name cannot be registered again (10422). - The JavaScript SDK, the Kotlin SDK and the platform wallet can delete and tombstone names.
5. Core v24, Masternodes and Consensus
Protocol version 15 records when Dash Core v24 activates, follows Core's masternode list more closely and switches Tenderdash to consensus version 2.
5.1 Core Fork Record and Version 2 Asset Unlocks (protocol 15)
- In a block that moves the chain-locked Core height, Drive asks Core whether Core v24 is active there, and records the first height it sees it active once in state.
- Once that is recorded, a pooled withdrawal uses asset unlock payload version 2. Its txid leaves out the requested height, quorum hash and signature, so a withdrawal re-signed after it expires keeps its txid and Core can InstantSend-lock it before it is mined. Withdrawals pooled earlier, and dust withdrawals, stay version 1.
5.2 Masternode List (protocol 15)
- Operator payouts follow Core's masternode list diffs. When a diff prints an operator key change without a payout, Drive reads the payout with
protx info. The operator identity's TRANSFER keys are reconciled with the payout. - The activation block reconciles every stored operator payout and operator identity with Core's full masternode list.
- A masternode that returns to a voting address it used before gets that identity's voting key back.
- A chain lock signed by quorums Platform does not hold yet is left to Core, and Core's
verifychainlockchecks every chain lock left to it.
5.3 Tenderdash Consensus Version 2 (protocol 15)
- The activation block raises Tenderdash's consensus version from 1 to 2, which turns on proposer liveness and round skipping: an idle proposer sends signed heartbeats, and validators that stop hearing them hand the round to the next proposer with a round skip certificate. The heartbeat and silence timeouts are 1 s and 5 s.
- Only Tenderdash 2.0 or later follows a chain at consensus version 2.
- Validators that sign through a socket or gRPC remote signer send no heartbeats, so their idle rounds are skipped after the silence timeout.
- The consensus evidence policy is installed with a zero byte budget.
6. Fees, Tokens and Keys
All of it applies from protocol version 15.
6.1 Tokens
| Change | Behaviour |
|---|---|
| Tradeable tokens | Decoded but not admitted: the token marketplace starts with protocol version 16. A contract with a tradeable token, or an update making a token tradeable, is refused as not active (10603). A tradeable token must be transferable (10281) |
| Token pools paid from the credit pool | The token bundle of types 26 to 28 also binds the fee bundle's commitment into its sighash. A transition signed for protocol 14 is refused |
| Read-only contracts | A token configuration update on a read-only contract is refused (40001) |
6.2 Fees and Storage
- A storage refund is priced at the storage rate of the epoch that stored the bytes. Every fee schedule so far has the same rate, so no refund changes; reading an earlier epoch's record adds to the processing fee.
- When a batch names a new owner, the new owner owns the stored bytes afterwards: a transfer or purchase moves them, and a gas sponsor who pays is named as the owner of what it writes.
- A batch's fee estimate no longer depends on the order of its operations. Estimates change for some transitions; the fee a transition pays does not.
- A
consumedeletes the document its lookup read, one document read fewer.
6.3 Identities and Keys
- A key with a budget or an expiry cannot sign a data contract create or update (20018).
- An identity update whose added key fails its proof of possession is refused without a fee and without using the identity's nonce.
- An identity create's identity id is checked in basic structure, before the asset lock proof.
- An ECDSA signature checked by recovering its key must be in low-S form under a compressed-key header.
- A chain asset lock proof is no longer held to the 100-input cap; an instant proof still is.
7. Queries and Proof Verification
7.1 New Queries
| Query | Purpose |
|---|---|
getBlocks |
Up to 10 consecutive Platform blocks with each transaction's result. Optional proof against the committing quorum's signature. The gateway allows 30 requests per hour per IP |
getOwnerTransactionsInBlock |
One identity's state transitions in a block, optionally proved |
getRecentStateTransitionStatus |
A node's view of a recent state transition: committed with its height and code, pending, or unknown |
getPrivateDocumentEntries |
A page of a private type's store, provable (protocol 15) |
getYesNoVotePollState, getMasternodeYesNoVote |
A yes/no poll and a masternode's answer, provable (protocol 15) |
The Rust SDK verifies the block proofs, and Sdk::state_transition_outcome proves from the nullifiers or nonces a transition would use whether it can still execute.
7.2 Quorum Keys
- The new
dash-core-proofcrate verifies Core v24 quorum proof chains (DIP 175): from a trusted checkpoint it authenticates a Platform quorum key through ChainLock certificates. wasm-sdk and evo-sdk can opt into a context provider built on it, so a browser can authenticate quorum keys instead of taking them on trust. The embedded checkpoints are refreshed with every release. - The Swift and Kotlin SDKs build the adaptive context provider by default in Auto mode: once SPV has synced, proofs are verified with SPV's quorum keys, and with the trusted quorum service's for any key SPV cannot serve.
- The platform wallet hands out only quorum keys that SPV has verified.
7.3 Protocol Compatibility
- Every verified answer tells a 5.1 SDK which protocol version signed it. When one names a version the build does not know,
Sdk::protocol_version_info()reportsnewer_protocol_available. A fresh answer the SDK cannot read then no longer bans its node: the request moves to another node, and fails with a configuration error saying the SDK has to be updated when every attempt ends that way. - An SDK without a pinned version starts at protocol version 14 on every network.
- Document requests that no node can answer are refused before they are sent, instead of banning nodes.
- A request version that a protocol upgrade retired is refused with
INVALID_ARGUMENT, so no node is banned for it.
8. Additional Improvements
8.1 Protocol Version 15
Platform 5.1 activates protocol version 15, which gates every consensus change listed above behind one version boundary. Its first block:
- Reconciles the stored operator payouts and operator identities with Core's full masternode list at the last committed chain-locked height.
- Re-stores DPNS as contract v3: rebuilds the
preordertype, deleting every earlier preorder without a refund, and adds thetombstonetype. - Re-stores DashPay as contract v3 and creates the
privateContactRequeststore. - Creates the trees for yes/no vote polls and registers the decision proposals system contract.
- Moves the history of keep-history documents to per-type history trees.
- Converts the sum trees of document types that keep their sums in 128 bits.
- Raises Tenderdash's consensus version to 2 and installs the evidence policy with a zero byte budget.
8.2 SDK and Platform Wallet
- JS/WASM SDK (
js-evo-sdk):- DPNS name delete and tombstone, decision proposals, and private contact requests (wasm-sdk).
- An opt-in quorum context provider that verifies Core quorum proof chains.
documents.historyreturns{ entries, lifecycle }on every network, and its paging changed (see the upgrade guide).
- Rust SDK:
- Reads document history on networks below and at protocol version 15.
- Routes DAPI connections through a SOCKS5 proxy, and no longer panics on IPv6 endpoints.
- DashPay profile and invitation flows moved into rs-sdk.
- C++:
dash-sdk-cxx, a binding ofdash-sdkfor Dash Core's DashPay GUI. - Swift SDK: the adaptive context provider by default, SPV started off the main thread, private contact requests, shielded tips, decision proposals and DPNS contests, and the App Store schema 4.0.0 frozen.
- Kotlin SDK: the adaptive context provider by default, private contact requests, shielded tips, masternode voting keys including shared masternodes, partial Platform address withdrawals, and funding a third party's Platform address from an asset lock.
- Platform Wallet:
- Private contact requests, per-contact shielded addresses, a shielded account per identity, and shielded tips.
- DashPay profile payment addresses and DPNS name delete and tombstone.
- Rust chooses the signing key for document replace, delete, transfer, set price and purchase.
- A Core balance drain with shielded recovery that survives a restart, and shielded operations that stay consistent around a wallet Clear.
- Example apps (iOS and Android): a block browser with state transition status, withdrawal status, contract moderation and fee pots, private document types, token shielded pools, more shielded pool actions (buy a token, shield the whole Core balance, top up an identity), identity key budgets and expiry, DashPay payment addresses, and masternode votes.
8.3 Hardening
- Signatures: ECDSA signatures verified by key recovery must be in low-S form, and an identity update's added keys must pass their proofs of possession (protocol 15).
- Chain locks: valid chain locks signed by quorums Platform does not hold yet are accepted, and Core checks every chain lock Platform leaves to it (protocol 15).
- Decoding and schemas: decoded data size is bounded, client decoding budgets scale with the bytes received, contract patterns are bounded, and long
enums are checked with bounded work. - Contests: index values sent in different forms name one vote poll, and a contest whose winner cannot be awarded its document is left open with its votes and funds (protocol 15).
- Fee estimates: order-independent batch estimates, summable index entries estimated with their sum items, and check tx admission and fee fixes.
- Contract cache: a contract parsed under one protocol version is never served to a reader at another.
- Shielded transitions: token pool transitions paid from the credit pool bind their fee bundle, and DAPI meters them in its shielded proof failure budget.
- Dashmate:
doctor reportleaves container environment values and command lines out of the archive and masks configured passwords and keys in every file it collects. A gateway TLS private key that an older version left readable is restricted. - Storage moves to GroveDB 7.0.0 and rust-dashcore to v0.46.1, both pinned by release tag.
8.4 Dashmate
- Dash Core 24 (
dashpay/dashd:24) by default. Configs on a Core 23 image ofdashpay/dashdmove to it (see Dash Core 24). - Tenderdash 2.0, followed through the
2.0image tag so 2.0.x patch releases arrive without a dashmate release. The migration fixes the P2P values Tenderdash 2.0 refuses. - Dash's signed apt repository,
https://apt.services.dash.org/dashmate. The deb installs the repository's source file, its signing keyring and a pin that limits the repository to dashmate, so a host installed from it updates withapt. Thestablesuite carries final releases,testingadds betas and release candidates, anddevadds dev builds. - Releases carry a
SHA256SUMSfile that either of two maintainers signs, and Debian package versions now sort the way apt expects (5.1.0-1above5.1.0~rc.2-1). - DKG-safe stops work on Core 24 and use complete DKG membership.
stop --safeshows what it waits for and an estimate of how long, andgroup restart --safenow waits. - Core's RPC whitelist for Drive gains
protxinfo. - An older dashmate, such as a helper container still running after the package was upgraded, no longer overwrites a config that a newer dashmate has migrated; it reports the refusal instead.
- Fixes: ZeroSSL configuration loads in force mode, the default config or group is printed when a command is called without an argument,
ssl obtainwaits for the previous container to be removed, and quorum-server seeds are refreshed. - The update guide describes updating a Debian package installation, and a major update no longer tells operators to reset Platform.
8.5 Test Coverage
18 test PRs and 35 CI PRs were merged during this cycle. They add:
- frozen historical BLS, GroveDB checkpoint, transaction signing, DashPay encryption and FFI node ID vectors;
- strategy tests guarding chain lock, masternode list replay and version table invariants;
- pins for the bytes protocol version 15 stores contracts in, for both contract fetch generations and for the check tx reservation split.
Before the release candidates, the iOS and Android example apps went through a full test pass on a devnet upgraded from protocol version 14 to 15, and the JavaScript SDK through a 5.1 testnet compatibility check.
Upgrading
Evonode operators
All evonodes must upgrade. Once the network activates protocol version 15, only Tenderdash 2.0 or later can follow the chain, and a node still running dashmate 5.0.x runs Tenderdash 1.8.
On Debian and Ubuntu, dashmate is now published to Dash's signed apt repository. 5.1.0 is the first release in its stable suite, which it reaches once a maintainer has signed the release's checksums. dashmate packages before 5.1.0-rc.2 do not add the repository, so a host that installed a 5.0.x deb adds it once. These commands install the repository's signing key only if its sha256 matches, write the source file and end with sudo apt update; they install no package:
(
set -e
keyring=$(mktemp)
trap 'rm -f "$keyring"' EXIT
curl --proto '=https' -fsSL https://apt.services.dash.org/dashmate/dashmate-archive-keyring.gpg -o "$keyring"
echo "08006df56f24e282f19012a29e539dad431654abefefd697832ac61918b01230 $keyring" | sha256sum -c -
sudo install -d -m 0755 /etc/apt/keyrings
sudo install -m 0644 "$keyring" /etc/apt/keyrings/dashmate-archive-keyring.gpg
sudo tee /etc/apt/sources.list.d/dashmate.sources > /dev/null <<'EOF'
Types: deb
URIs: https://apt.services.dash.org/dashmate
Suites: stable
Components: main
Architectures: amd64 arm64
Signed-By: /etc/apt/keyrings/dashmate-archive-keyring.gpg
EOF
sudo apt update
)Download the new package while the node is still running, so a failed download never leaves the node stopped:
DASHMATE_VERSION=""
if sudo apt update --error-on=any; then
DASHMATE_INSTALLED="$(dpkg-query -W -f='${Version}' dashmate)"
DASHMATE_CANDIDATE="$(LC_ALL=C apt-cache policy dashmate | awk '$1 == "Candidate:" { print $2 }')"
if [ -n "$DASHMATE_INSTALLED" ] && [ -n "$DASHMATE_CANDIDATE" ] \
&& dpkg --compare-versions "$DASHMATE_CANDIDATE" gt "$DASHMATE_INSTALLED"; then
if sudo apt install --only-upgrade --download-only "dashmate=$DASHMATE_CANDIDATE"; then
DASHMATE_VERSION="$DASHMATE_CANDIDATE"
echo "Downloaded dashmate $DASHMATE_VERSION"
else
echo "Could not download dashmate $DASHMATE_CANDIDATE. Leave the node running and try again later." >&2
fi
else
echo "Nothing to update: apt offers no dashmate newer than ${DASHMATE_INSTALLED:-the installed one}. Leave the node running."
fi
else
echo "apt update failed. Leave the node running, fix the error and try again." >&2
fiThen, in the same shell:
dashmate stop # stops the whole node, Core included
sudo apt install --only-upgrade --no-download "dashmate=$DASHMATE_VERSION" # or: npm install -g dashmate
dashmate --version # must show 5.1.0
dashmate update
dashmate start- Run
dashmate stoponly after the download step printedDownloaded. If it printedNothing to update, leave the node running. - If a step after
dashmate stopfails, rundashmate startto bring the node back on the version it has, then fix the problem and start over. - On a masternode, stop outside a DKG the node takes part in:
dashmate stop --safewaits until stopping is safe. - Instead of adding the repository first, you can download the deb and its
SHA256SUMSfrom the assets below, and install it afterdashmate stop; it adds the repository too. With NPM, runnpm install -g dashmateafterdashmate stop. The update guide and installation guide describe every path.
Core must restart for this upgrade. Do not use dashmate restart --platform: it leaves Core running. Core moves to Core 24, and Core loads its RPC whitelist only when it restarts. From protocol version 15, Drive reads protx info for operator key changes; without protxinfo on the whitelist, Core refuses the call and the block fails on that node.
This update needs no Platform reset. dashmate migrates existing configs automatically: Core moves to Core 24 (see Dash Core 24), Tenderdash moves to 2.0, and Core's RPC whitelist for Drive gains protxinfo. Tenderdash 2.0 refuses to start with some P2P settings that 1.8 accepted. The migration resets maxPacketMsgPayloadSize 0 to the network default and caps maxOutgoingConnections at maxConnections, but leaves allowlistOnly without any peers for the operator to fix.
Protocol version 15 activation
- Evonodes signal protocol version 15 by proposing blocks with 5.1.
- At each epoch change, Platform counts the evonodes that proposed on 5.1 during the epoch that ended. Once that reaches 67% of active evonodes, protocol version 15 is scheduled for the next epoch change. A mainnet epoch lasts about 9 days. Testnet activates first.
- The first block of protocol version 15 reads Core's masternode list, so a node whose Core cannot answer cannot execute that block. Keep Core running and synced through the activation.
- After protocol version 15 is scheduled, do not go back to 5.0.x.
Dash Core 24
Platform 5.1 needs Dash Core 24. A node still on Core 23 stops following the chain once Core's v24 deployment activates.
- dashmate's migration moves mainnet and testnet configs, and the
localpreset, from any Core 23 image ofdashpay/dashdtodashpay/dashd:24. Any other image is kept. dashmate warns when its tag names a Core before 24 or no version, or when a digest pins it; switch withdashmate config set core.docker.image dashpay/dashd:24 --config=<name>. - Existing local networks (
local_*) and devnets keep Core 23, because Core 24 discards the sporks Core 23 stored. - A config last written by dashmate 5.1.0-dev.1 that pins a Core 23 image other than
dashpay/dashd:23has to be switched by hand. - The first Core 24 start migrates the address, spent, timestamp and insight indexes, which can take 20 to 40 minutes or more. On a node with these indexes, do this first start outside a DKG of the node.
- Core 24 refuses to start with an invalid
-debugcategory, or with-rescanor-minsporkkeysincore.docker.commandArgs. - Once Core 24 features activate, going back to
dashpay/dashd:23is not possible.
App developers
Wallets and apps must update to a 5.1 SDK before protocol version 15 activates on the network they use. A 5.0.x client can no longer read DPNS, DashPay, contracts created at protocol version 15, document history or 128-bit sums once it activates. Testnet activates first. See Updating Apps for Protocol Version 15.
A 5.1 SDK reads networks at protocol version 14 and 15, so an app can ship the update ahead of the activation. Several SDK, wallet and FFI APIs changed, including the types of document sums and the shape of JavaScript document history; see the guide above and the changelog for breaking changes.
What's Changed
Features
Private Documents & DashPay
- feat(platform)!: dashpay contract v3 declares the checks of its data triggers by @QuantumExplorer in #4933
- feat(platform)!: private document types, declared with the
privatekeyword (PV15) by @QuantumExplorer in #5689 - feat(drive)!: create the store of a private document type, and refuse document queries on one (PV15) by @QuantumExplorer in #5703
- feat(platform): read and prove the entries of a private document type's store (getPrivateDocumentEntries, PV15) by @QuantumExplorer in #5708
- feat(platform)!: append private document entries paid from the shielded pool (PV15) by @QuantumExplorer in #5799
- feat(platform)!: dashpay contract v3 declares private contact requests (PV15) by @QuantumExplorer in #5804
- feat(sdk): refuse a private document type too small for its payload by @QuantumExplorer in #5805
- feat(sdk): seal and open private document entries in the standard envelope by @QuantumExplorer in #5806
- feat(platform)!: a private type's update may only add properties after its existing ones (PV15) by @QuantumExplorer in #5807
- feat(sdk): send, scan and read DashPay private contact requests by @QuantumExplorer in #5809
- feat(wasm-sdk): seal and scan DashPay private contact requests by @QuantumExplorer in #5811
- feat(platform)!: dashpay contact requests carry an encrypted shielded address (PV15) by @QuantumExplorer in #5892
- feat: per-contact shielded address index and a payment reference memo kind by @QuantumExplorer in #5893
- feat(sdk)!: a DashPay profile update can set or remove its payment addresses by @QuantumExplorer in #5970
Masternode Governance
- feat(platform)!: yes/no masternode vote poll kind with supermajority and minimum voting power by @QuantumExplorer in #4899
- feat(platform): yes/no vote poll state and masternode answer queries by @QuantumExplorer in #5651
- feat(platform)!: yes/no votes name their poll by id, and polls carry a typed purpose (PV15) by @QuantumExplorer in #5680
- feat(platform)!: decision proposals open masternode yes/no polls (PV15) by @QuantumExplorer in #5684
- feat(sdk): decision proposal helpers in rs-sdk, wasm-sdk and js-evo-sdk by @QuantumExplorer in #5700
- feat(sdk): decision proposals in rs-sdk-ffi, Swift and Kotlin by @QuantumExplorer in #5704
- feat(platform)!: multiple choice decision proposals, voted on as a contest among documents (PV15) by @QuantumExplorer in #5848
- feat(platform)!: multiple choice proposals take their description from a moderated text (PV15) by @QuantumExplorer in #5851
- feat(contract)!: describe a multiple choice proposal by a document, a url or both (PV15) by @QuantumExplorer in #5895
- feat(platform)!: charge a processing fee for a multiple choice proposal (PV15) by @QuantumExplorer in #5897
- feat(sdk): multiple choice decision proposals in rs-sdk, wasm-sdk and js-evo-sdk by @QuantumExplorer in #5903
- feat(sdk): multiple choice decision proposals in the Swift and Kotlin SDKs by @QuantumExplorer in #5919
Documents & Data Contracts
- feat(drive)!: preserve composite document history across protocol activation by @shumkov in #4652
- feat(platform)!: delete and erase lifecycle for keep-history documents by @shumkov in #4657
- feat(sdk): expose the document erase and history lifecycle on mobile and FFI by @shumkov in #4660
- feat(dpp): contract corpus test and typed validation schema for document types by @QuantumExplorer in #5486
- feat(dpp)!: validate documents natively at protocol version 15 by @QuantumExplorer in #5533
- feat(dpp)!: check document schemas natively at registration from protocol version 15 by @QuantumExplorer in #5538
- feat(dpp)!: stored contract format with compiled document types by @QuantumExplorer in #5578
- feat(drive)!: store contracts compiled from protocol version 15 by @QuantumExplorer in #5579
- feat(platform)!: generatedFrom sys.tokens.decimals generates a token's decimals (PV15) by @QuantumExplorer in #5604
- feat(platform)!: document references whose target the document names (PV15) by @QuantumExplorer in #5849
- feat(platform)!: either-kind targets and slot conditions for document-named references (PV15) by @QuantumExplorer in #5850
- feat(platform)!: an object's members follow the update rules of the type's own properties (PV15) by @shumkov in #5983
- feat(platform)!: keep document sums in 128 bits when the summed property passes 2^27 (PV15) by @QuantumExplorer in #5987
- feat(dpp)!: count documents matching any element of a typed array by @QuantumExplorer in #5995
- feat: support document sums past 64 bits end to end on mobile by @QuantumExplorer in #6095
DPNS
- feat(platform)!: dpns contract v3 checks name registration with schema keywords (PV15) by @QuantumExplorer in #5337
- feat(platform)!: delete or tombstone a DPNS name (PV15) by @QuantumExplorer in #5994
- feat(sdk): delete and tombstone DPNS names from JavaScript by @QuantumExplorer in #5998
Core v24, Masternodes & Consensus
- feat(drive-abci)!: emit version 2 asset unlocks once Core V24 is active (PV15) by @shumkov in #5634
- feat(drive-abci)!: record Core fork activation in state (PV15) by @shumkov in #5681
- feat(platform)!: activate Tenderdash consensus version 2 with protocol version 15 by @Claudius-Maginificent in #5941
Fees & Tokens
- feat(platform)!: tradeable tokens (PV15) by @QuantumExplorer in #5524
- feat(platform)!: token marketplace escrow trees and token market contract (PV15) by @QuantumExplorer in #5526
- feat(platform): price storage refunds at the storing epoch's rate and drop the fee history map by @QuantumExplorer in #5798
- feat(platform)!: token pool transitions paid from the credit pool bind their fee bundle (PV15) by @shumkov in #5969
Platform Wallet
- feat(platform-wallet): reserve DashPay payout addresses without Core funding by @PastaPastaPasta in #4623
- feat(platform-wallet): invitation claim status for the invitee, idempotent claim by @romchornyi in #4997
- feat(platform-wallet): delete an index-only document by its values by @romchornyi in #5419
- feat(platform-wallet)!: sign a DashPay contact payment before broadcasting it by @romchornyi in #5465
- feat(platform-wallet)!: report a freshly built asset lock's outpoint to the caller by @romchornyi in #5476
- feat(platform-wallet): derive application encryption keys with the DIP-13 rotation level by @PastaPastaPasta in #5649
- feat(platform-wallet): expose the BIP-44 account 0 xpub by @xdustinface in #5756
- feat(platform-wallet): persist the Orchard recipient of a shielded asset-lock funding by @llbartekll in #5762
- feat(platform-wallet): send, receive and accept DashPay private contact requests by @QuantumExplorer in #5810
- feat(platform-wallet): fresh shielded addresses and an own-address check by @romchornyi in #5888
- feat(platform-wallet)!: contact requests carry the sender's per-contact shielded address by @QuantumExplorer in #5901
- feat(platform-wallet)!: private contact requests derive the sender's per-contact shielded address by @QuantumExplorer in #5902
- feat(platform-wallet): a dedicated shielded account for each identity, proved with the seed by @QuantumExplorer in #5905
- feat(platform-wallet): store and commit a record in one backend step by @QuantumExplorer in #5955
- feat(platform-wallet)!: apps show the shielded balance the wallet announces, without identity accounts by @QuantumExplorer in #5968
- feat(platform-wallet): delete or tombstone a DPNS name from the wallet and the iOS app by @QuantumExplorer in #6055
- feat(platform-wallet)!: a DashPay profile carries its payment addresses through the wallet, FFI and Swift by @QuantumExplorer in #6124
- feat(platform-wallet): shielded tips to a DashPay username, decided by the wallet by @QuantumExplorer in #6191
SDK (JS / WASM / Rust)
- feat(sdk): add dash-sdk-cxx, a C++ binding of dash-sdk for Dash Core by @PastaPastaPasta in #4633
- feat(sdk)!: key limits, DIP-14 sub-feature derivation and decode-any-kind for DashPay Connect by @PastaPastaPasta in #4844
- feat(sdk): route DAPI connections through a SOCKS5 proxy by @PastaPastaPasta in #5160
- feat(sdk)!: read how many times a masternode has voted on a contested resource by @Claudius-Maginificent in #5312
- feat(sdk): move DashPay profile create, update and fetch into rs-sdk by @PastaPastaPasta in #5470
- feat(sdk): move the DashPay invitation link codec and claim into rs-sdk by @PastaPastaPasta in #5471
- feat(sdk): verify Core quorum proof chains (DIP 175) by @PastaPastaPasta in #5521
- feat(sdk): add opt-in verified HTTP context provider by @PastaPastaPasta in #5523
- feat(sdk)!: decide from the version tables which networks serve a document query by @shumkov in #5636
- feat(sdk): refresh the embedded quorum-proof checkpoints on every release by @PastaPastaPasta in #5669
- feat(sdk)!: let wasm-sdk and evo-sdk opt into the verified quorum context provider by @PastaPastaPasta in #5721
- feat(dapi): add getOwnerTransactionsInBlock and getBlocks queries by @QuantumExplorer in #5815
- feat(sdk): prove a state transition's outcome, and add getRecentStateTransitionStatus by @QuantumExplorer in #5823
- feat(sdk): verify the block proofs of getBlocks and getOwnerTransactionsInBlock by @QuantumExplorer in #5834
- feat(sdk): back SPV up with the trusted quorum service in Auto mode by @shumkov in #5882
- feat(sdk): add Swift, JNI and Kotlin wrappers for shielded tips by @QuantumExplorer in #6192
Swift SDK / iOS Example App
- feat(swift-sdk): use SPV-synced quorums for Platform proof verification by @QuantumExplorer in #3417
- feat(swift-sdk): read a contract group's owner with a proof by @PastaPastaPasta in #5421
- feat(sdk): expose cached verified protocol version to Swift by @llbartekll in #5511
- feat: fetch an identity's public keys without reloading the managed identity by @romchornyi in #5715
- feat(swift-sdk): expose when each DPNS contender submitted its request by @romchornyi in #5718
- feat(swift-sdk): send, receive and accept DashPay private contact requests by @QuantumExplorer in #5812
- feat(swift-sdk): default SDK to the adaptive context provider in Auto mode by @shumkov in #5883
- feat(swift-example-app): shield the whole Core balance (Max) and recover it after a restart by @QuantumExplorer in #6050
- feat: shield from an identity and top up an identity from the shielded pool in SwiftExampleApp by @QuantumExplorer in #6051
- feat: read the entries of any private document type in the Swift example app by @QuantumExplorer in #6052
- feat(swift-example-app): update a data contract from its detail screen, with a Rust preview of the changes by @QuantumExplorer in #6053
- feat: raise an identity key's budget or expiry from SwiftExampleApp by @QuantumExplorer in #6054
- feat(sdk): read contract moderation and fee pots in the Swift SDK and example app by @QuantumExplorer in #6056
- feat: sign SwiftExampleApp masternode votes with a stored voting key through the signer by @QuantumExplorer in #6057
- feat: check a masternode voting key against Platform when it is loaded by @QuantumExplorer in #6086
- feat(swift-example-app): show a wallet's Platform address balance history, and list the address-sync queries in the catalog by @QuantumExplorer in #6088
- feat: show where an identity's withdrawals to Core stand in SwiftExampleApp by @QuantumExplorer in #6089
- feat(swift-example-app): buy a token from the shielded pool (type 28) by @QuantumExplorer in #6090
- feat(swift-example-app): browse blocks and check a state transition's status by hash by @QuantumExplorer in #6091
- feat!: set, change and remove DashPay profile payment addresses in SwiftExampleApp by @QuantumExplorer in #6094
- feat(swift-example-app): show a wallet's tokens in token shielded pools by @QuantumExplorer in #6116
- feat: claim a contract's fee pots from SwiftExampleApp (type 25) by @QuantumExplorer in #6125
- feat(swift-example-app): create an entry of any private document type from the shielded pool (type 29) by @QuantumExplorer in #6130
- feat(swift-example-app)!: send tokens within a token shielded pool (type 26) by @QuantumExplorer in #6132
- feat(swift-example-app)!: unshield tokens from a token shielded pool to an identity (type 27) by @QuantumExplorer in #6133
- feat: moderate contract users and documents from SwiftExampleApp (type 24) by @QuantumExplorer in #6134
- feat: load a masternode without an owner identity (a shared masternode) for voting in SwiftExampleApp by @QuantumExplorer in #6145
- feat(swift-example-app): shielded tips to a DashPay contact or username by @QuantumExplorer in #6198
Kotlin SDK / Android Example App
- feat(kotlin-sdk): bind fund_from_asset_lock_external (Core → third-party Platform address) by @HashEngineering in #5797
- feat(kotlin-sdk): send, receive and accept DashPay private contact requests by @QuantumExplorer in #5813
- feat(kotlin-sdk): partial-amount platform-address withdrawal by @HashEngineering in #5830
- feat(kotlin-sdk): bridge the adaptive context provider and build it by default by @shumkov in #5884
- feat: sign KotlinExampleApp masternode votes with a stored voting key through the signer by @QuantumExplorer in #6087
- feat: show where an identity's withdrawals to Core stand in KotlinExampleApp by @QuantumExplorer in #6118
- feat: delete or tombstone a DPNS name from the Kotlin SDK and KotlinExampleApp by @QuantumExplorer in #6119
- feat: reveal a core address's private key behind device authentication in KotlinExampleApp by @QuantumExplorer in #6120
- feat: browse blocks and check a state transition's status by hash in KotlinExampleApp by @QuantumExplorer in #6121
- feat: shield the whole Core balance (Max) in KotlinExampleApp and recover it after a restart by @QuantumExplorer in #6122
- feat: read contract moderation lists, removal records, team actions and fee pots in KotlinExampleApp by @QuantumExplorer in #6123
- feat: remove an identity from the KotlinExampleApp device, live wallet first, rows before keys by @QuantumExplorer in #6126
- feat: review a data contract update through the wallet's preview before broadcasting it in KotlinExampleApp by @QuantumExplorer in #6127
- feat: read the entries of any private document type in KotlinExampleApp by @QuantumExplorer in #6128
- feat: show a wallet's Platform address balance history in KotlinExampleApp, and list the address-sync queries in the catalog by @QuantumExplorer in #6129
- feat: buy a token from the shielded pool (type 28) in KotlinExampleApp by @QuantumExplorer in #6131
- feat: set, change and remove DashPay profile payment addresses in KotlinExampleApp by @QuantumExplorer in #6146
- feat: shield from an identity and top up an identity from the shielded pool in KotlinExampleApp by @QuantumExplorer in #6147
- feat: raise an identity key's budget or expiry from KotlinExampleApp by @QuantumExplorer in #6148
- feat(kotlin-sdk): check a masternode voting key against Platform when it is loaded by @QuantumExplorer in #6149
- feat(kotlin-sdk): load a shared masternode for voting through its voter identity by @QuantumExplorer in #6150
- feat(kotlin-example-app): send DashPay contact requests privately from Add Contact by @QuantumExplorer in #6168
- feat: create an entry of any private document type from the shielded pool in KotlinExampleApp (type 29) by @QuantumExplorer in #6169
- feat(kotlin-sdk): keep the shielded recipient of an asset lock across restarts by @QuantumExplorer in #6170
- feat: show, send and unshield shielded pool tokens in KotlinExampleApp by @QuantumExplorer in #6173
- feat(kotlin-example-app): send shielded tips to a DashPay username by @QuantumExplorer in #6197
Drive & Drive-ABCI
- feat(platform): introduce protocol version 15 by @QuantumExplorer in #5043
- feat(drive-abci)!: check the IdentityCreate identity id in basic structure (PV15) by @shumkov in #5770
Dashmate
- feat(dashmate): show what a DKG-safe stop waits for and how long by @shumkov in #5843
- feat(dashmate): ship the apt repository's source file and keyring in the deb by @shumkov in #6267
Other Features
- feat(contract): let listed admins record QA test runs by @QuantumExplorer in #6097
Bug Fixes
SDK (JS / WASM / Rust)
- fix(sdk): honor explicit regtest addresses in the JS DAPI client by @PastaPastaPasta in #5291
- fix(rs-sdk-ffi): return the proved identities contract keys by @romchornyi in #5491
- fix(sdk): preserve uncertain submission outcomes through shared broadcast by @llbartekll in #5556
- fix(sdk): retry address nonce skew on another node by @Claudius-Maginificent in #5562
- fix(sdk): query compacted address balances when the recent proof has no boundary by @Claudius-Maginificent in #5572
- fix(sdk)!: report active group config update proposals as success by @Claudius-Maginificent in #5584
- fix(sdk): restore JS DAPI client node discovery after Core V24 by @PastaPastaPasta in #5609
- fix(sdk): send wasm DAPI requests to a single-slash path by @PastaPastaPasta in #5611
- fix(sdk): let wasm-sdk build without its default features by @PastaPastaPasta in #5612
- fix(sdk)!: refuse document requests no node can answer instead of banning nodes by @shumkov in #5635
- fix(sdk): check document windows and ranked indexes before sending by @shumkov in #5638
- fix(sdk): pass the platform version in the address nonce broadcast tests by @romchornyi in #5667
- fix(sdk): stop header sync errors from crashing the process or hiding their cause by @PastaPastaPasta in #5697
- fix(sdk): validate SPV header difficulty exactly as Dash Core does by @PastaPastaPasta in #5699
- fix(sdk): follow chain reorgs in SPV header sync and keep its memory bounded by @PastaPastaPasta in #5701
- fix(sdk): verify quorum proofs without blocking the executor by @PastaPastaPasta in #5720
- fix(sdk): refuse a vote recovery whose proved vote differs from the submitted one by @shumkov in #5755
- fix(sdk): stop banning nodes for proofs the SDK's context provider cannot verify by @shumkov in #5769
- fix(sdk): ban a node that fails a block query, but not one that is busy by @QuantumExplorer in #5839
- fix(sdk): retry an InstantSend asset lock proof refused for too many inputs with a ChainLock proof by @shumkov in #5845
- fix(sdk): mobile yes/no proposal writes survive a cancelled caller and a released wallet by @QuantumExplorer in #5935
- fix(sdk): read document history on a network below protocol version 15 by @QuantumExplorer in #6022
- fix(sdk)!: pass contested index text values starting with 0x as text by @QuantumExplorer in #6034
- fix: stop banning nodes when the client is older than the network, and document the protocol version 15 app update by @QuantumExplorer in #6043
- fix(sdk): say a node may have received an unconfirmed transition, and mark its cause as the last error by @QuantumExplorer in #6044
- fix(sdk): start an unpinned SDK at protocol version 14 on every network by @QuantumExplorer in #6046
- fix(platform): size client decoded-value budgets proportionally to encoded bytes by @QuantumExplorer in #6115
- fix(sdk): three JS SDK fixes from the 5.1 testnet compatibility check by @shumkov in #6156
- fix(sdk): let decision proposals end one or four weeks from now by @QuantumExplorer in #6223
- fix(sdk): leave the proposal's note off a group action co-sign by @QuantumExplorer in #6252
DPP (Dash Platform Protocol)
- fix(dpp): cut long platform value text on a character boundary when displaying it by @PastaPastaPasta in #5434
- fix(dpp)!: refuse a document type schema naming a key twice (PV15) by @QuantumExplorer in #5702
- fix(dpp)!: refuse a contest keyed by a nested or system property (PV15) by @QuantumExplorer in #5761
- fix(dpp)!: hold only instant asset lock proofs to the input cap (PV15) by @shumkov in #5825
- fix(dpp)!: native document validation rules at protocol version 15 by @shumkov in #5871
- fix(dpp): hold arrays to the maximum schema depth in validate_max_depth v2 by @shumkov in #5881
- fix(dpp): read a refersTo as dynamic only where protocol version 14 cannot read it by @shumkov in #5887
- fix(dpp)!: compile document-schema patterns when first used by @shumkov in #5891
- fix(dpp): bound the work document validation does for a long enum at protocol version 15 by @QuantumExplorer in #5945
- fix(dpp)!: refuse updating a contract whose stored schema repeats a key (PV15) by @QuantumExplorer in #5947
- fix(dpp)!: refuse a byte array of integers that are not bytes from protocol version 15 by @QuantumExplorer in #5964
Drive & Drive-ABCI
- fix(platform): point PLATFORM_V15 at query versions V2 after v4.2 merge by @PastaPastaPasta in #5212
- fix(drive-abci)!: leave chain locks signed by quorums Platform does not hold to Core (PV15) by @shumkov in #5454
- fix(drive-abci): apply masternode list diffs as v0 and v1 always have by @shumkov in #5455
- fix!: set zero consensus evidence budget at protocol 15 by @lklimek in #5489
- fix(drive-abci)!: refuse IdentityUpdate added key proof failures without charging the identity (PV15) by @shumkov in #5494
- fix(platform)!: refuse a token config update on a read-only contract (PV15) by @QuantumExplorer in #5632
- fix(platform): read back compiled contracts without compiling their contested regexes by @QuantumExplorer in #5678
- fix(drive)!: estimate a batch's fee the same whatever its operations' order (PV15) by @QuantumExplorer in #5688
- fix(drive): prove decision proposal creates as plain documents, found by a new strategy test by @QuantumExplorer in #5696
- fix(platform)!: decide a contest by its index values (PV15) by @QuantumExplorer in #5744
- fix(drive-abci)!: re-enable the voter key of the address a masternode returns to (PV15) by @shumkov in #5768
- fix(drive-abci)!: follow operator payout changes and repair operator keys at protocol 15 by @shumkov in #5775
- fix(drive): drop the argument #5798 removed from add_document_for_contract in a proof plan test by @QuantumExplorer in #5821
- fix(platform)!: hand stored bytes to the owner a document update names (PV15) by @QuantumExplorer in #5829
- fix(drive): verify a single document that may be contested (PV15) by @QuantumExplorer in #5835
- fix(drive): look up a single document at a block time (PV15) by @QuantumExplorer in #5838
- fix(drive-abci): stop key-adding identity updates from taking the shielded proof verifier by @shumkov in #5854
- fix(drive)!: estimate summable index entries with their sum items, and other PV15 fee estimate follow-ups by @shumkov in #5858
- fix(platform)!: keys with a budget or an expiry sign no data contract create or update (PV15) by @QuantumExplorer in #5861
- fix(drive)!: write no entry in an expired time range bucket on insert (PV15) by @QuantumExplorer in #5877
- fix(platform)!: a data contract holds a bounded number of patterns of bounded compiled size (PV15) by @PastaPastaPasta in #5879
- fix(platform)!: one vote poll per contest for index values sent in different forms (PV15) by @QuantumExplorer in #5886
- fix(platform)!: refuse high-S signatures on key-recovery paths from protocol version 15 by @QuantumExplorer in #5899
- fix(platform)!: the token marketplace starts with protocol version 16, not 15 by @QuantumExplorer in #5910
- fix(platform)!: keep-history document migration and erase fixes (PV15) by @shumkov in #5915
- fix(platform)!: leave open a contest whose winner cannot be awarded (PV15) by @QuantumExplorer in #5944
- fix(platform)!: hold a document write to the total its type keeps of its summed property by @QuantumExplorer in #5956
- fix(platform)!: a contested DPNS name is open to every contender with a valid preorder (PV15) by @shumkov in #5978
- fix(platform)!: admission and fee fixes (check tx bundle) by @shumkov in #5984
- fix(drive)!: never serve a contract parsed under another protocol version from the cache by @shumkov in #5993
- fix(platform)!: refuse summed transient properties and bound pattern work before compiling (PV15) by @shumkov in #6012
- fix(platform)!: close the gaps left in nested member update rules (PV15) by @shumkov in #6013
- fix(drive-abci): refuse disabling a missing key with a consensus error at check_tx by @QuantumExplorer in #6021
- fix(platform)!: bound decoded size and refuse zero-width arrays (PV15) by @QuantumExplorer in #6092
Platform Wallet
- fix(platform-wallet): rescan DashPay contact accounts from the contact request height by @lklimek in #4740
- fix(platform-wallet): select available signing keys across identity operations by @lklimek in #4764
- fix(platform-wallet)!: drain Core balance with restart-safe shielded recovery by @llbartekll in #5396
- fix(platform-wallet)!: verify Platform proofs only against verified SPV quorum keys by @Claudius-Maginificent in #5425
- fix(platform-wallet): retry an oversized InstantSend asset-lock transition with a ChainLock proof by @romchornyi in #5460
- fix(platform-wallet): owe a chain truncation's cursor to the DashPay backfill record by @shumkov in #5484
- fix(platform-wallet): keep the cached identity in step with the chain around updates by @romchornyi in #5487
- fix(platform-wallet): stop concurrent shielded syncs from duplicating commitments by @Claudius-Maginificent in #5564
- fix(platform-wallet): reject zero-amount shielded spends before reserving notes by @Claudius-Maginificent in #5570
- fix(platform-wallet): poll the asset-lock resume FFIs on a big-stack thread by @llbartekll in #5585
- fix(platform-wallet): reopen a latched quiesce gate when a sync loop starts by @llbartekll in #5663
- fix(platform-wallet): refuse a fixed-amount asset lock over the input cap before broadcast by @llbartekll in #5712
- fix(platform-wallet): let a shielded sync pass observe cancellation by @llbartekll in #5743
- fix(platform-wallet): refuse to resume an asset lock over the input cap by @llbartekll in #5759
- fix: move mobile document erase decisions into the Rust wallet by @shumkov in #5907
- fix(platform-wallet): keep contact request holds consistent after an unconfirmed send by @QuantumExplorer in #5908
- fix(platform-wallet): trust a stored record only when no other flush dropped it by @QuantumExplorer in #5923
- fix(platform-wallet): a contact request proves the sender's shielded account itself by @QuantumExplorer in #5971
- fix(platform-wallet): poll wallet create, load and shielded bind on a big-stack thread by @QuantumExplorer in #6048
- fix(platform-wallet): fail a pending shielded spend whose note another transition spent by @QuantumExplorer in #6151
- fix(platform-wallet): stop a shielded note scan at a gap between fetched ranges by @QuantumExplorer in #6172
- fix(platform-wallet): hold the lifecycle gate and Clear admission across credit pool spends by @QuantumExplorer in #6178
- fix(platform-wallet): refuse a shielded Clear while a shielded operation runs by @QuantumExplorer in #6182
- fix(platform-wallet): keep a shielded spend failed when its snapshot result arrives after proof it did not execute by @QuantumExplorer in #6183
- fix(platform-wallet): stop reporting a shielded balance as known after a Clear that failed by @QuantumExplorer in #6186
- fix(platform-wallet): hold the Clear admission across the remaining shielded pool payments by @QuantumExplorer in #6203
- fix(platform-wallet)!: name private entry and contact request payments in shielded activity by @QuantumExplorer in #6226
- fix(platform-wallet)!: choose the signing key in Rust for document replace, delete, transfer, set price and purchase by @QuantumExplorer in #6228
- fix(platform-wallet): leave a contact's watch-only account out of per-account Core balances by @QuantumExplorer in #6246
Swift SDK / iOS Example App
- fix(swift-sdk)!: start SPV off the main thread by @llbartekll in #5512
- fix(swift-sdk): run identityGet and dpnsGetUsername off the main actor by @romchornyi in #5862
- fix(swift-sdk)!: list DPNS contests and query one contest's vote state in SwiftExampleApp by @QuantumExplorer in #6033
- fix(swift-example-app): remove an identity from the device children first, keys after the rows by @QuantumExplorer in #6084
- fix(swift-example-app): keep key signing metadata and contract bounds when refreshing an identity by @QuantumExplorer in #6085
- fix(swift-example-app): reveal account private keys behind device authentication by @QuantumExplorer in #6093
- fix(swift-example-app): fix the compile error and the three failing tests in the Swift job by @QuantumExplorer in #6101
- fix(swift-sdk): admit shielded spend wrappers as native operations by @QuantumExplorer in #6179
- fix(swift-example-app): show the moderation offer when a contract is opened from search results by @QuantumExplorer in #6224
- fix(swift-example-app): four small UI fixes from the PV15 QA pass by @QuantumExplorer in #6227
- fix(swift-example-app): show the shielded token send fee and keep Send off until it is quoted by @QuantumExplorer in #6229
- fix(swift-example-app): let the perpetual distribution's recipient claim it by @QuantumExplorer in #6245
- fix(swift-example-app): show the words on the proposal list's poll state badge by @QuantumExplorer in #6250
- fix(swift-example-app): wrap the proposal list title at accessibility text sizes by @QuantumExplorer in #6263
Kotlin SDK / Android Example App
- fix(kotlin-sdk): release contact request handles after a sync by @QuantumExplorer in #5814
- fix(kotlin-example-app): connect to a devnet by name and stop showing "null" ban reasons by @QuantumExplorer in #6023
- fix: keep each wallet's shielded accounts when an Android Clear registers it again by @QuantumExplorer in #6171
- fix(kotlin-example-app): unlock token actions and perpetual claims the contract grants by @QuantumExplorer in #6221
- fix(kotlin-sdk): watch an identity's tokens so the Tokens screen shows balances by @QuantumExplorer in #6222
- fix(kotlin-example-app)!: small UI fixes from the PV15 devnet QA pass by @QuantumExplorer in #6225
- fix(kotlin-example-app): offer Resume on a token paused from the app by @QuantumExplorer in #6251
- fix(kotlin-example-app): scroll to a private entry create's outcome instead of leaving it off screen by @QuantumExplorer in #6255
- fix!: show rewritten Room rows on open KotlinExampleApp screens and hand back the contract a token config update produced by @QuantumExplorer in #6262
DAPI & Networking
- fix(dapi): meter token pool transitions in the shielded proof failure budget by @QuantumExplorer in #5801
- fix(dapi): stream every instance of a re-signed asset unlock by @shumkov in #5832
Dashmate
- fix(dashmate)!: give Debian packages versions apt can order by @shumkov in #4282
- fix(dashmate): load ZeroSSL config in force mode by @thepastaclaw in #4298
- fix(dashmate): use complete DKG membership for safe stops by @PastaPastaPasta in #5231
- fix(dashmate): refresh quorum-server seeds and complete node identities by @PastaPastaPasta in #5290
- fix(dashmate): wait out the previous lego container's removal in ssl obtain by @QuantumExplorer in #5602
- fix(dashmate): stop the GitHub release lookup throwing and validate its version by @shumkov in #5653
- fix(dashmate): restrict a gateway TLS private key an older version left readable by @shumkov in #5654
- fix(dashmate): print the default config or group when called without an argument by @shumkov in #5655
- fix(dashmate): stop masternodes safely around DKGs on Core 24 by @shumkov in #5841
- fix(dashmate): key the protxinfo whitelist migration to 5.1.0-dev.1 by @shumkov in #5844
- fix(dashmate): move every Core 23 image of dashpay/dashd to Core 24 by @shumkov in #6209
- fix(dashmate): refuse to overwrite a config a newer dashmate migrated by @shumkov in #6301
- fix(dashmate): redact container environment and known secrets in the doctor report by @shumkov in #6316
Other Fixes
- fix: write the FFI headers to the profile directory under Cargo 1.100 by @QuantumExplorer in #5898
Refactoring
- refactor: reject legacy BLS storage formats by @lklimek in #5323
- refactor(platform-wallet): wake the SPV readiness wait on events instead of polling by @Claudius-Maginificent in #5426
- refactor!: migrate Platform cryptography to rust-dashcore dev (aca02026) by @lklimek in #5514
- refactor: share one bincode config constant by @Claudius-Maginificent in #5586
- refactor(sdk)!: move the KeyWallet helpers to platform-wallet by @xdustinface in #5727
- refactor(sdk): drop the
key-wallet-ffidependency by @xdustinface in #5728 - refactor(sdk): check document requests with Drive's own request-only planning before sending by @shumkov in #5774
- refactor(platform-wallet): own the TXO reconcile policy in the wallet by @HashEngineering in #5796
- refactor(platform-wallet): check a converted evonode address map with rust-dashcore's Core rules by @shumkov in #5817
- refactor(platform): read a consumed document through generation 0's lookup and test the PV14 consume path by @shumkov in #5874
Tests
- test(drive): track latest protocol version in grovedb structure snapshot by @PastaPastaPasta in #5154
- test(drive-abci): stop pinning the latest protocol version in the v0 shield-from-asset-lock refusal test by @PastaPastaPasta in #5298
- test(platform): freeze historical storage and signing vectors by @lklimek in #5359
- test(platform-wallet-storage): require unique, contiguous migration versions by @Claudius-Maginificent in #5553
- test(drive-abci): assert total supply drops by the destroyed frozen amount by @Claudius-Maginificent in #5554
- test(sdk): fill the verified protocol version in identities contract keys query tests by @Claudius-Maginificent in #5571
- test(contract): expect only the first schema violation of a document at protocol version 15 by @shumkov in #5614
- test(drive-abci): pin the check_tx consensus error for an IdentityUpdate adding malformed ECDSA/BLS key data by @shumkov in #5631
- test(platform-wallet): pass the built-lock observer in the input-cap test helper by @QuantumExplorer in #5734
- test(drive-abci): activate protocol version 14 in the credit pool backfill strategy tests by @shumkov in #5735
- test(drive-abci): guard chain lock, masternode list replay and version table invariants by @shumkov in #5831
- test(dpp): pin the bytes protocol version 15 stores contracts in by @shumkov in #5880
- test(drive-abci): pin the check tx reservation split and fix its doc by @shumkov in #5990
- test(drive): pin both contract fetch generations and correct the contract cache docs by @shumkov in #5996
- test(drive-abci): remove a retired-request-version test that asserts the old status code by @QuantumExplorer in #6047
- test(swift-example-app): line up the shielded tip rows and ids with KotlinExampleApp by @QuantumExplorer in #6205
- test(swift-example-app): restore the shielded tip rows and ids KotlinExampleApp mirrors by @QuantumExplorer in #6207
- test(kotlin-example-app): expect the exact fee on a fee-only shielded activity row by @QuantumExplorer in #6244
Performance
- perf(swift-sdk): batch address-pool persistence lookups into chunked fetches by @PastaPastaPasta in #4392
- perf(platform)!: delete a consumed document from what its lookup read (PV15) by @QuantumExplorer in #5360
Documentation
- docs: require checking Rust changes against the coding conventions by @Claudius-Maginificent in #5474
- docs: make layer-ownership catch implementation details leaking to clients by @Claudius-Maginificent in #5642
- docs: describe how drive-abci reads Dash Core and records Core fork activations by @shumkov in #5754
- docs(platform): note that fee version numbers must stay contiguous by @QuantumExplorer in #5765
- docs: describe asset unlock payload version 2 as a Core fork record consumer by @shumkov in #5772
- docs(dashmate): describe how a DKG-safe stop decides by @shumkov in #5878
- docs: define when a protocol version counts as shipped by @shumkov in #5911
- docs: an unreleased generation is edited in place, not copied to a new vN by @PastaPastaPasta in #5973
- docs(swift-example-app): add test plan rows for DashPay private contact requests by @QuantumExplorer in #6117
- docs(dashmate): describe updating a Debian package installation by @shumkov in #6210
- docs(sdk): say that document replace, transfer, purchase and setPrice take the next revision by @QuantumExplorer in #6220
- docs(dashmate): drop the Platform reset from major updates by @shumkov in #6315
- docs(dashmate): install and update the deb from Dash's apt repository by @shumkov in #6338
- docs(dashmate): keep updating components when no new dashmate package exists by @shumkov in #6344
Build & Dependencies
- chore(platform)!: update rust-dashcore (incl secp256k1 0.33) by @lklimek in #5307
- build: make the workspace lockfile vendorable again by @PastaPastaPasta in #5473
- chore(platform)!: update rust-dashcore to dev 280b3f2c by @shumkov in #5493
- build: fix the stale dash-core-proof version that fails every --locked build on v5.1-dev by @PastaPastaPasta in #5650
- chore(platform)!: update rust-dashcore to dev 7329126e by @xdustinface in #5726
- chore(platform)!: update rust-dashcore past the FFI removal by @xdustinface in #5729
- build!: upgrade Tenderdash to v2.0.0-dev.2 by @Claudius-Maginificent in #5836
- chore(dashmate): run Dash Core 24 by default by @shumkov in #5842
- chore(platform): pin
rust-dashcoreat thev0.46.0release by @xdustinface in #5914 - chore(platform)!: pin GroveDB at develop 89dc7351 by @QuantumExplorer in #5942
- build(dashmate): upgrade Tenderdash to v2.0.0-dev.3 by @Claudius-Maginificent in #5972
- chore(platform)!: pin GroveDB at develop 22f163c2 by @QuantumExplorer in #5975
- chore(platform): pin GroveDB at develop 2cfc1ce1 by @QuantumExplorer in #6001
- chore(platform): update
rust-dashcoretov0.46.1by @xdustinface in #6153 - chore(platform): bump GroveDB to 7.0.0 by @QuantumExplorer in #6219
- build(dashmate): upgrade Tenderdash to the 2.0 release line by @Claudius-Maginificent in #6331
- chore: pin GroveDB and rust-dashcore by release tag by @QuantumExplorer in #6332
CI / CD
- ci: re-pin PR Hygiene so the sweep reaches every pull request by @shumkov in #4771
- ci: re-pin PR Hygiene so its runs queue instead of cancelling by @shumkov in #4774
- ci: re-pin PR Hygiene to read each pull request once by @shumkov in #4779
- ci: wake PR Hygiene only for a comment that can change the answer by @shumkov in #4783
- ci: re-pin PR Hygiene to clone this repository only on its sweep by @shumkov in #4786
- ci: re-pin PR Hygiene to require a green build before asking a human by @shumkov in #4796
- ci: re-pin PR Hygiene so it can verify access granted by the organisation by @shumkov in #4805
- ci: PR Hygiene is the merge gate; CODEOWNERS carries no rules by @shumkov in #4840
- ci: re-pin PR Hygiene for state labels and /skip-bots by @shumkov in #4862
- ci: re-pin PR Hygiene for the checklist in the description by @shumkov in #4889
- ci: re-pin PR Hygiene so a bot line says everything about that bot by @shumkov in #4892
- ci: re-pin PR Hygiene to ask a flaky read once more by @shumkov in #4895
- ci: re-pin PR Hygiene for one name for the author limit by @shumkov in #4903
- ci: re-pin PR Hygiene by @shumkov in #4936
- ci: re-pin PR Hygiene by @shumkov in #4946
- ci: re-pin PR Hygiene by @shumkov in #4976
- ci: re-pin PR Hygiene by @shumkov in #4980
- ci: re-pin PR Hygiene by @shumkov in #4990
- ci: re-pin PR Hygiene by @shumkov in #5017
- ci: re-pin PR Hygiene and wake it on a hand-over by @shumkov in #5021
- ci: re-pin PR Hygiene by @shumkov in #5024
- ci: deploy isolated PR Hygiene engine on v4.3 by @infraclaw-dash in #5143
- ci: re-pin PR Hygiene engine to 3b98772 by @shumkov in #5194
- ci: run PR Hygiene's engine from master by @shumkov in #5248
- ci: run platform-wallet-storage tests named "shield" on the full workspace path by @Claudius-Maginificent in #5407
- ci: link the contract viewer on pull requests that add or change a system contract by @QuantumExplorer in #5552
- ci: run the runner-select gate on the light runner pool by @QuantumExplorer in #5747
- ci: run change detection on the light runner pool by @QuantumExplorer in #5748
- ci: lint and test JS packages in fewer jobs by @QuantumExplorer in #5757
- ci: build and rehearse Dashmate macOS packages on macos-15 by @shumkov in #5921
- ci: let PR Hygiene post its verdicts to the dashboard by @shumkov in #6039
- ci(dashmate): make dashmate releases verifiable for the apt repository by @shumkov in #6144
- ci: let QuantumExplorer sign dashmate release checksums by @shumkov in #6274
- ci(dashmate): ask the apt publisher to publish a release's debs by @shumkov in #6289
- ci(release): sign and notarize the macOS installer sooner by @shumkov in #6329
Chores & Maintenance
- chore(skills): rename review-prs to prs by @shumkov in #4788
- chore: add layer ownership skill by @lklimek in #5488
- chore(swift-sdk): freeze App Store schema 4.0.0 by @llbartekll in #5785
- chore: add the qa-fix-loop skill for device QA, fix threads and retests by @QuantumExplorer in #6279
Release Bumps
- chore(release): update changelog and bump version to 5.1.0-dev.1 by @shumkov in #5912
- chore(release): update changelog and bump version to 5.1.0-dev.2 by @QuantumExplorer in #5999
- chore(release): update changelog and bump version to 5.1.0-dev.3 by @shumkov in #6152
- chore(release): update changelog and bump version to 5.1.0-dev.4 by @QuantumExplorer in #6206
- chore(release): update changelog and bump version to 5.1.0-rc.1 by @QuantumExplorer in #6261
- chore(release): update changelog and bump version to 5.1.0-rc.2 by @shumkov in #6334
- chore(release): update changelog and bump version to 5.1.0 by @shumkov in #6345
New Contributors
No first-time contributors in this cycle.
Full Changelog: v5.0.3...v5.1.0