Skip to content

fix: requests are not passing from sdk to rs-drive-abci - #1042

Merged
QuantumExplorer merged 3 commits into
v0.25-devfrom
fix/sdk-logic-for-refined-dpp
May 8, 2023
Merged

QuantumExplorer merged 3 commits into
v0.25-devfrom
fix/sdk-logic-for-refined-dpp

Conversation

@markin-io

@markin-io markin-io commented May 8, 2023 •

Copy link
Copy Markdown
Contributor

Issue being fixed or feature implemented

  • DAPI was crashing because of a failure to parse coinbase TX
  • wasm-dpp basic validation was not working for identity create transition

What was done?

  • Updated dashcore lib to support core v20
  • Fixed asset lock serialization in rs-dpp to pass basic validation

How Has This Been Tested?

  • Started local network (fix for coinabse tx parsing)
  • SDK unit tests (fix for basic validation)

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 requested review from antouhou and shumkov as code owners May 8, 2023 11:03
@markin-io markin-io changed the title fix: dapi fails to parse coinbase transaction fix(dapi): fails to parse coinbase transaction May 8, 2023
@markin-io markin-io changed the title fix(dapi): fails to parse coinbase transaction fix: various fixes to make identity request pass through the dapi to rs-drive-abci May 8, 2023
@markin-io
markin-io marked this pull request as draft May 8, 2023 13:13
@markin-io
markin-io force-pushed the fix/sdk-logic-for-refined-dpp branch from 351def7 to e51ee13 Compare May 8, 2023 16:54
Comment thread packages/rs-dpp/src/identity/identity.rs
@markin-io markin-io changed the title fix: various fixes to make identity request pass through the dapi to rs-drive-abci fix: fixes to pass request from sdk to rs-drive-abci May 8, 2023
@markin-io markin-io changed the title fix: fixes to pass request from sdk to rs-drive-abci fix: fixes to pass requests from sdk to rs-drive-abci May 8, 2023
@markin-io
markin-io marked this pull request as ready for review May 8, 2023 17:11
@markin-io markin-io changed the title fix: fixes to pass requests from sdk to rs-drive-abci fix: requests are not passing from sdk to rs-drive-abci May 8, 2023
@QuantumExplorer
QuantumExplorer merged commit 5c7aca5 into v0.25-dev May 8, 2023
@QuantumExplorer
QuantumExplorer deleted the fix/sdk-logic-for-refined-dpp branch May 8, 2023 17:27
PastaPastaPasta added a commit that referenced this pull request Sep 23, 2026
Bump every rust-dashcore git dependency from e4208c90 to 929a651a (dashpay/rust-dashcore dev). The breaking change in range is rust-dashcore #1042: secp256k1 0.30 -> 0.33, rand 0.9, getrandom 0.4, and the secp256k1 context argument dropped API-wide. The range also carries key-wallet fixes #1035 (DIP-15 contact pools extend as payments arrive), #1009 (provider transactions consult every fund-bearing account), #1048, and test-only #920/#1038.

Mechanical call-site migration: drop Secp256k1 contexts (derive_priv/from_priv/public_key/from_secret_key/Keypair::new take no context); secp.sign_ecdsa/recover_ecdsa/verify_ecdsa become methods on the key/signature; SecretKey::from_slice/from_byte_array become from_secret_bytes (slices go through <[u8; 32]>::try_from mapped to Error::InvalidSecretKey, the error from_slice returned); secret_bytes -> to_secret_bytes; SecretKey/SharedSecret lost AsRef<[u8]>, so use as_secret_bytes; thread_rng -> rng; StdRng::from_entropy -> from_os_rng. The secp256k1::hashes re-export is gone, so hex rendering uses the hex crate (same output).

Seeded RNG bridging (rand 0.8 caller -> secp's rand 0.9 StdRng) now fills a 32-byte seed and calls from_seed, which is what rand_core 0.6 from_rng did, so seeded keys are unchanged; drive-abci tests that feed seed_from_u64 into Keypair::new use the secp re-exported StdRng (seed_from_u64 and ChaCha12 are identical across rand_core 0.6/0.9).

rs-platform-encryption moves its own secp256k1 to 0.33.1 so only one secp256k1 is in the graph. simple-signer takes a direct rand 0.8 dep for the RngCore its callers pass. rs-dpp enables getrandom 0.3/0.4 wasm_js on wasm32-unknown-unknown, which the new transitive getrandom versions require there. Rust toolchain already at 1.98.1, matching rust-dashcore.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
PastaPastaPasta added a commit that referenced this pull request Sep 23, 2026
Bump every rust-dashcore git dependency from e4208c90 to 719de34b (dashpay/rust-dashcore dev, the merge of #1049). The breaking change in range is rust-dashcore #1042: secp256k1 0.30 -> 0.33, rand 0.9, getrandom 0.4, and the secp256k1 context argument dropped API-wide. The range also carries key-wallet fixes #1035 (DIP-15 contact pools extend as payments arrive), #1009 (provider transactions consult every fund-bearing account), #1048, and test-only #920/#1038.

Mechanical call-site migration: drop Secp256k1 contexts (derive_priv/from_priv/public_key/from_secret_key/Keypair::new take no context); secp.sign_ecdsa/recover_ecdsa/verify_ecdsa become methods on the key/signature; SecretKey::from_slice/from_byte_array become from_secret_bytes (slices go through <[u8; 32]>::try_from mapped to Error::InvalidSecretKey, the error from_slice returned); secret_bytes -> to_secret_bytes; SecretKey/SharedSecret lost AsRef<[u8]>, so use as_secret_bytes; thread_rng -> rng; StdRng::from_entropy -> from_os_rng. The secp256k1::hashes re-export is gone, so hex rendering uses the hex crate (same output).

Seeded RNG bridging (rand 0.8 caller -> secp's rand 0.9 StdRng) now fills a 32-byte seed and calls from_seed, which is what rand_core 0.6 from_rng did, so seeded keys are unchanged; drive-abci tests that feed seed_from_u64 into Keypair::new use the secp re-exported StdRng (seed_from_u64 and ChaCha12 are identical across rand_core 0.6/0.9).

rs-platform-encryption moves its own secp256k1 to 0.33.1 so only one secp256k1 is in the graph. simple-signer takes a direct rand 0.8 dep for the RngCore its callers pass. rs-dpp enables getrandom 0.3/0.4 wasm_js on wasm32-unknown-unknown, which the new transitive getrandom versions require there. Rust toolchain already at 1.98.1, matching rust-dashcore.

Co-Authored-By: Claude Opus 5.5 (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.

2 participants