Skip to content

Implement ext_trie_verify_proof and fix ext_transaction_index param types#2272

Closed
rockbmb wants to merge 1 commit into
paritytech:mainfrom
rockbmb:bulletin-chain-support
Closed

Implement ext_trie_verify_proof and fix ext_transaction_index param types#2272
rockbmb wants to merge 1 commit into
paritytech:mainfrom
rockbmb:bulletin-chain-support

Conversation

@rockbmb

@rockbmb rockbmb commented May 29, 2026

Copy link
Copy Markdown

Summary

  • Implement ext_trie_blake2_256_verify_proof (v1, v2) and ext_trie_keccak_256_verify_proof (v1, v2) using the existing trie::proof_decode. These were stubbed with host_fn_not_implemented!(), causing panics on runtimes that verify Merkle proofs (e.g. Polkadot Bulletin's pallet-transaction-storage).

  • Fix ext_transaction_index_index_version_1 and ext_transaction_index_renew_version_1: both used expect_pointer_size_raw! (expects i64) but the actual signatures are (i32, i32, i32) and (i32, i32). The type mismatch hits unreachable!() on any runtime that indexes transactions.

@cla-bot-2021

cla-bot-2021 Bot commented May 29, 2026

Copy link
Copy Markdown

User @sisyphus-dev-ai, please sign the CLA here.

@rockbmb rockbmb changed the title Implement ext_trie_verify_proof and fix ext_transaction_index param types Implement ext_trie_verify_proof and fix ext_transaction_index param types May 29, 2026
@rockbmb
rockbmb force-pushed the bulletin-chain-support branch from 1e050fe to 88c98a2 Compare May 29, 2026 02:14
…dex param types

Implement ext_trie_keccak_256_verify_proof_version_1 and _version_2
using proof_decode, matching the blake2 variants from paritytech#2221.

Fix ext_transaction_index_index_version_1 and
ext_transaction_index_renew_version_1: both used
expect_pointer_size_raw (expects i64) but the actual signatures are
(i32, i32, i32) and (i32, i32). The type mismatch hit unreachable!()
on any runtime that indexes transactions.
@rockbmb
rockbmb force-pushed the bulletin-chain-support branch from 88c98a2 to 0ae463c Compare May 29, 2026 02:17
@rockbmb

rockbmb commented May 29, 2026

Copy link
Copy Markdown
Author

Opened on the wrong repo — smoldot-archive is a redirect from smol-dot/smoldot. Reopening on paritytech/smoldot.

@rockbmb rockbmb closed this May 29, 2026
@rockbmb
rockbmb deleted the bulletin-chain-support branch May 29, 2026 02:22
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.

1 participant