Skip to content

feat(dapi): update coinbase payload accroding to changes in Core v20 - #1035

Closed
jawid-h wants to merge 108 commits into
v0.25-devfrom
chore/update-dashcore-lib
Closed

jawid-h wants to merge 108 commits into
v0.25-devfrom
chore/update-dashcore-lib

Conversation

@jawid-h

@jawid-h jawid-h commented May 5, 2023

Copy link
Copy Markdown
Contributor

Issue being fixed or feature implemented

Updating coinbase TX payload according to Core v20

What was done?

  • updated daschore-lib dep

How Has This Been Tested?

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

Igor Markin and others added 30 commits February 7, 2023 12:50
…and (#869)

Co-authored-by: Ivan Shumkov <ivan@shumkov.ru>
Co-authored-by: markin.io <markin.io210@gmail.com>
Co-authored-by: shuplenkov <konstantin.shuplenkov@dash.org>
Co-authored-by: Ivan Shumkov <ivan@shumkov.ru>
Co-authored-by: Ivan Shumkov <ivan@shumkov.ru>
Co-authored-by: Ivan Shumkov <ivan@shumkov.ru>
@jawid-h
jawid-h requested review from antouhou and shumkov as code owners May 5, 2023 15:02
@shuplenkov shuplenkov added this to the v0.24.0 milestone May 5, 2023
shuplenkov
shuplenkov previously approved these changes May 5, 2023
@jawid-h jawid-h changed the title feat: update coinbase payload accroding to changes in Core v20 feat(dapi): update coinbase payload accroding to changes in Core v20 May 5, 2023
@QuantumExplorer

QuantumExplorer commented May 7, 2023 •

Copy link
Copy Markdown
Member

Do we also need the fix in rust @jawid-h ?

@QuantumExplorer
QuantumExplorer changed the base branch from v0.24-dev to v0.25-dev May 8, 2023 00:40
@QuantumExplorer
QuantumExplorer dismissed shuplenkov’s stale review May 8, 2023 00:40

The base branch was changed.

@QuantumExplorer
QuantumExplorer changed the base branch from v0.25-dev to v0.24-dev May 8, 2023 00:41
@shumkov
shumkov changed the base branch from v0.24-dev to master May 10, 2023 04:07
@shumkov shumkov modified the milestones: v0.24.0, v0.24.x May 10, 2023
@shumkov
shumkov changed the base branch from master to v0.25-dev May 10, 2023 07:03
@shumkov shumkov modified the milestones: v0.24.x, v0.25.0 May 10, 2023
@shumkov

shumkov commented May 10, 2023

Copy link
Copy Markdown
Collaborator

@jawid-h could you please base this PR on v0.25-dev

@jawid-h jawid-h closed this May 25, 2023
@shumkov
shumkov deleted the chore/update-dashcore-lib branch August 25, 2024 08:51
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.

8 participants