Skip to content

feat(rs-dpp): backport of index_definitions.unique validation#802

Merged
antouhou merged 1 commit into
v0.24-devfrom
feat-index-unique-validation
Mar 20, 2023
Merged

feat(rs-dpp): backport of index_definitions.unique validation#802
antouhou merged 1 commit into
v0.24-devfrom
feat-index-unique-validation

Conversation

@antouhou

Copy link
Copy Markdown
Contributor

Issue being fixed or feature implemented

Backport of the index unique validation from v24 into rs-dpp

What was done?

Added one additional validation to the DataContractValidator

How Has This Been Tested?

Breaking Changes

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

@antouhou
antouhou requested a review from shumkov as a code owner February 23, 2023 09:24

@shumkov shumkov left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@antouhou
antouhou merged commit de580a3 into v0.24-dev Mar 20, 2023
@antouhou
antouhou deleted the feat-index-unique-validation branch March 20, 2023 06:40
shumkov added a commit that referenced this pull request Jun 19, 2026
…ork() removal

Updates all 8 rust-dashcore workspace deps 981e97f1 -> ceee4a9b40 (dev HEAD), which
picks up #813 (DashPay account-index derivation path) and #814 (revert of the temporary
#808 Core 23 nested-masternode-address SML changes), so platform keeps the existing
flat-field masternode shape and no consensus change is needed.

The bump also crosses #802 (removed Address::network(), replaced Network with AddressPrefix
because an address's prefix is ambiguous across testnet/devnet and legacy-regtest). Migrate
the four call sites:
- wasm-sdk validate_address: addr.is_valid_for_network(net) — a bool, exactly what it
  computed and now correct for the shared testnet/devnet prefix.
- platform-wallet derivation_path_for_derived_address: the path only distinguishes mainnet
  (coin 5') from everything else (1'), so probe is_valid_for_network(Mainnet).
- platform-wallet-ffi address rendering (2 sites): an address_display_network helper probes
  mainnet/testnet/regtest, decisive for the bech32m platform-payment addresses rendered here
  (mainnet ds / testnet+devnet tb / regtest dsrt).

Migration tracked in #3939. Full workspace --all-targets compiles.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

3 participants