Skip to content

fix(dpp): wasm build - #1307

Merged
QuantumExplorer merged 4 commits into
feat/versioningV3from
fix/wasm-dpp/build
Aug 11, 2023
Merged

QuantumExplorer merged 4 commits into
feat/versioningV3from
fix/wasm-dpp/build

Conversation

@markin-io

Copy link
Copy Markdown
Contributor

Issue being fixed or feature implemented

What was done?

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

@markin-io markin-io changed the title fix(wasm-dpp): build fix(dpp): wasm build Aug 11, 2023
@markin-io
markin-io marked this pull request as ready for review August 11, 2023 13:11
@QuantumExplorer
QuantumExplorer merged commit 0d28015 into feat/versioningV3 Aug 11, 2023
@QuantumExplorer
QuantumExplorer deleted the fix/wasm-dpp/build branch August 11, 2023 13:18
xdustinface added a commit that referenced this pull request Nov 5, 2026
Moves every rust-dashcore pin from `7329126e` to `a319c0a3`, the current `dev` of dashpay/rust-dashcore. It includes dashpay/rust-dashcore#776 (FFI crates removed) and `TxIn::claimed_p2pkh_address`. Base SDK moves to 89828032.

Adapted:
- #1266: seeds and phrases come back as `Zeroizing` buffers and are borrowed, not copied
- #1250: `AppEncryption` uses `application_encryption_path`, `AppEncryptionLegacy` the `_without_rotation` variant, so derived keys and paths are byte-identical
- #902: `PeersUpdated` no longer lists addresses, so `PeerTracker` builds the connected set from `PeerConnected` / `PeerDisconnected`
- #1223: devnet LLMQ size and threshold are `u16`, and larger values are now refused
- #1189: `dash-spv`'s `sync` module is private, so imports use the public re-exports
- #1223: the Base SDK's `LlmqParams` keeps the DKG fields flat as `u16`, so the verified context provider and the `refresh_checkpoints` example read `dkg_interval` and widen both counts to `u32`, giving the same fetch window and depth
- #1320: hash newtypes no longer have `engine` or `from_engine`, so the ChainLock request id in `drive-abci` and the ProUpServTx payload hash in `platform-wallet` hash through `sha256d::Hash` and wrap the result, which gives the same bytes
- #1320: upstream hash types no longer index into bytes or have `from_slice`, so callers read `as_byte_array` and use the newtypes' own `from_slice` and `all_zeros`
- #1320: the newtypes' conversions are inherent functions, so the `Hash` trait imports that only served them go, and `rs-dapi` drops `dash-spv`, whose only use was that import

dash-spv applies the `/name:version/` form and the 256-byte bound to the user agent again (#1311), so `platform_wallet_manager_spv_start` passes the configured user agent through.

Behaviour that changes upstream: an existing SPV store resyncs its masternode lists once, because #1227 changed the snapshot format. The default user agent becomes `/dash-spv:<version>/`. #1273 (payload written only from version 3) and #1269 (`OP_CODESEPARATOR` in the legacy sighash) do not affect transactions Platform builds or verifies. #400 (SegWit and Taproot removed), #1288 (`bitcoin_units` re-exports), #1289 (dependency maintenance), #1318 (`bitcoinconsensus` removed), #1307 (partial merkle trees bounded by Dash's block size) and #1258 (masternode sync kept live on bad or missing diffs) need no change in Platform.
xdustinface added a commit that referenced this pull request Nov 5, 2026
Moves every rust-dashcore pin from `7329126e` to `a319c0a3`, the current `dev` of dashpay/rust-dashcore. It includes dashpay/rust-dashcore#776 (FFI crates removed) and `TxIn::claimed_p2pkh_address`. Base SDK moves to 89828032.

Adapted:
- #1266: seeds and phrases come back as `Zeroizing` buffers and are borrowed, not copied
- #1250: `AppEncryption` uses `application_encryption_path`, `AppEncryptionLegacy` the `_without_rotation` variant, so derived keys and paths are byte-identical
- #902: `PeersUpdated` no longer lists addresses, so `PeerTracker` builds the connected set from `PeerConnected` / `PeerDisconnected`
- #1223: devnet LLMQ size and threshold are `u16`, and larger values are now refused
- #1189: `dash-spv`'s `sync` module is private, so imports use the public re-exports
- #1223: the Base SDK's `LlmqParams` keeps the DKG fields flat as `u16`, so the verified context provider and the `refresh_checkpoints` example read `dkg_interval` and widen both counts to `u32`, giving the same fetch window and depth
- #1320: hash newtypes no longer have `engine` or `from_engine`, so the ChainLock request id in `drive-abci` and the ProUpServTx payload hash in `platform-wallet` hash through `sha256d::Hash` and wrap the result, which gives the same bytes
- #1320: upstream hash types no longer index into bytes or have `from_slice`, so callers read `as_byte_array` and use the newtypes' own `from_slice` and `all_zeros`
- #1320: the newtypes' conversions are inherent functions, so the `Hash` trait imports that only served them go, and `rs-dapi` drops `dash-spv`, whose only use was that import

dash-spv applies the `/name:version/` form and the 256-byte bound to the user agent again (#1311), so `platform_wallet_manager_spv_start` passes the configured user agent through.

Behaviour that changes upstream: an existing SPV store resyncs its masternode lists once, because #1227 changed the snapshot format. The default user agent becomes `/dash-spv:<version>/`. #1273 (payload written only from version 3) and #1269 (`OP_CODESEPARATOR` in the legacy sighash) do not affect transactions Platform builds or verifies. #400 (SegWit and Taproot removed), #1288 (`bitcoin_units` re-exports), #1289 (dependency maintenance), #1318 (`bitcoinconsensus` removed), #1307 (partial merkle trees bounded by Dash's block size) and #1258 (masternode sync kept live on bad or missing diffs) need no change in Platform.
xdustinface added a commit that referenced this pull request Nov 5, 2026
Moves every rust-dashcore pin from `7329126e` to `a319c0a3`, the current `dev` of dashpay/rust-dashcore. It includes dashpay/rust-dashcore#776 (FFI crates removed) and `TxIn::claimed_p2pkh_address`. Base SDK moves to 89828032.

Adapted:
- #1266: seeds and phrases come back as `Zeroizing` buffers and are borrowed, not copied
- #1250: `AppEncryption` uses `application_encryption_path`, `AppEncryptionLegacy` the `_without_rotation` variant, so derived keys and paths are byte-identical
- #902: `PeersUpdated` no longer lists addresses, so `PeerTracker` builds the connected set from `PeerConnected` / `PeerDisconnected`
- #1223: devnet LLMQ size and threshold are `u16`, and larger values are now refused
- #1189: `dash-spv`'s `sync` module is private, so imports use the public re-exports
- #1223: the Base SDK's `LlmqParams` keeps the DKG fields flat as `u16`, so the verified context provider and the `refresh_checkpoints` example read `dkg_interval` and widen both counts to `u32`, giving the same fetch window and depth
- #1320: hash newtypes no longer have `engine` or `from_engine`, so the ChainLock request id in `drive-abci` and the ProUpServTx payload hash in `platform-wallet` hash through `sha256d::Hash` and wrap the result, which gives the same bytes
- #1320: upstream hash types no longer index into bytes or have `from_slice`, so callers read `as_byte_array` and use the newtypes' own `from_slice` and `all_zeros`
- #1320: the newtypes' conversions are inherent functions, so the `Hash` trait imports that only served them go, and `rs-dapi` drops `dash-spv`, whose only use was that import

dash-spv applies the `/name:version/` form and the 256-byte bound to the user agent again (#1311), so `platform_wallet_manager_spv_start` passes the configured user agent through.

Behaviour that changes upstream: an existing SPV store resyncs its masternode lists once, because #1227 changed the snapshot format. The default user agent becomes `/dash-spv:<version>/`. #1273 (payload written only from version 3) and #1269 (`OP_CODESEPARATOR` in the legacy sighash) do not affect transactions Platform builds or verifies. #400 (SegWit and Taproot removed), #1288 (`bitcoin_units` re-exports), #1289 (dependency maintenance), #1318 (`bitcoinconsensus` removed), #1307 (partial merkle trees bounded by Dash's block size) and #1258 (masternode sync kept live on bad or missing diffs) need no change in Platform.
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