Skip to content

[WIP] Add BIP-352 tweak index#105

Open
romanz wants to merge 1 commit intomasterfrom
sptweak-par
Open

[WIP] Add BIP-352 tweak index#105
romanz wants to merge 1 commit intomasterfrom
sptweak-par

Conversation

@romanz
Copy link
Copy Markdown
Owner

@romanz romanz commented Apr 3, 2026

The index maps block_next_txnum || txid[:8] (12 bytes) -> 32 byte tweak.

After compaction, sptweak column family takes ~8.3GB @ Apr 2026.

It allows efficiently:

  • reading per-block tweaks (blockhash → block_next_txnum).
  • looking up per-transaction tweak (given its blockhash).

Also added:

@romanz romanz self-assigned this Apr 3, 2026
@romanz romanz added the enhancement New feature or request label Apr 3, 2026
@romanz romanz force-pushed the sptweak-par branch 10 times, most recently from 4d9a206 to 643bed2 Compare April 5, 2026 20:21
The index maps `block_next_txnum || txid[:8]` (12 bytes) -> `32 byte tweak`.

After compaction, `sptweak` column family takes ~8.3GB @ Apr 2026.

It allows efficiently:
- reading per-block tweaks (blockhash → `block_next_txnum`).
- looking up per-transaction tweak (given its blockhash).

Also added a test vector for [signet block 200000](https://mempool.space/signet/block/0000007d60f5ffc47975418ac8331c0ea52cf551730ef7ead7ff9082a536f13c).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant