Skip to content

fix: identifier deserialization doesn't work for bincode#885

Merged
shumkov merged 1 commit into
v0.24-devfrom
fix/identifier-deserialization
Apr 4, 2023
Merged

fix: identifier deserialization doesn't work for bincode#885
shumkov merged 1 commit into
v0.24-devfrom
fix/identifier-deserialization

Conversation

@shumkov

@shumkov shumkov commented Apr 4, 2023

Copy link
Copy Markdown
Collaborator

Issue being fixed or feature implemented

Identifier deserialization doesn't work for bincode

What was done?

  • switched to byte visitor (thanks to @QuantumExplorer )
  • removed unused Identifier::from_json_object
  • added constructors to some of wasm consensus errors for testing

How Has This Been Tested?

With tests

Breaking Changes

None

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

@shumkov shumkov added this to the v0.24.0 milestone Apr 4, 2023
@shumkov shumkov requested a review from antouhou as a code owner April 4, 2023 13:59
@shumkov shumkov merged commit f3a8a58 into v0.24-dev Apr 4, 2023
@shumkov shumkov deleted the fix/identifier-deserialization branch April 4, 2023 14:02
@markin-io markin-io mentioned this pull request Apr 26, 2023
5 tasks
QuantumExplorer added a commit that referenced this pull request Jul 14, 2026
…hip, node id, restore & lifecycle fixes

Bumps the pin for rust-dashcore #882 (operator gap-limit extension),
#884 (platform node id = Tenderdash SHA256[0..20], fixing our #883)
and #885 (dedicated PlatformNodeId newtype). Addresses the review
blockers on the masternode feature:

- Ownership maps are rebuilt from the managed provider pools: operator
  scans through the pool's high-water mark (not a hardcoded 20-window)
  so #882/restored beyond-gap keys match; platform node ownership
  reads the persisted EdDSA batch with node ids recomputed under #884
  (the lifecycle is seedless, so seed-derivation never fired).
- Platform-node key batch is threaded restore→FFI→pool as typed EdDSA
  entries; MasternodeSync never downgrades a true ownership flag on a
  transient absent signal.
- Address-pool restore keeps prederived typed BLS/EdDSA keys instead of
  clobbering them with the ECDSA-shaped FFI row.
- Claim button gated off (withdrawal is still a stub); wallet deletion
  purges PersistentMasternode; list_masternodes writes empty outputs
  before fallible lookups.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
shumkov added a commit that referenced this pull request Jul 14, 2026
…y-invitations

Both sides had bumped rust-dashcore past the PlatformNodeId newtype
(#885): v4.1-dev's #4120 pinned 38c689d9 (a descendant of this branch's
ac8828c9, adding #889 canonical byte order + #891 tx-record positions),
so the dependency block resolves to v4.1-dev's newer rev — git's
auto-merge had duplicated the whole [workspace.dependencies] table, so
it was reconciled by hand back to a single block. peers.rs and
core_wallet_types.rs take v4.1-dev's variants of the same
PlatformNodeId adaptations both sides had made independently.

persistence.rs: #4120 extracted the load-side pool-restore loop into
restore_core_address_pools() with funds + provider-key routing, but the
extraction was based on v4.1-dev's copy and so dropped this branch's
asset-lock funding-account arms (identity registration / top-up /
invitation / address top-up) — the voucher-key-reuse restore fix. The
merge takes the helper and re-adds those six arms (with the security
rationale comment); the FFIPersister durability attestation from the
round-5 fix is preserved.

Post-merge: workspace check + clippy --all-features + fmt clean;
platform-wallet 460 and platform-wallet-ffi 169 tests green (both
suites now include the base's new provider-key restore tests).

Co-Authored-By: Claude Fable 5 <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.

2 participants