HomePhabricator

[Chronik] Add `compress_script_variant` to compress script variants

Description

[Chronik] Add compress_script_variant to compress script variants

Summary:
Mirrors ScriptCompression in /src/compressor.h.

Having a Rust variant of this function allows us to avoid costly FFI bridging, which gets relevant in hot loops.

Test Plan: ninja check-crates

Reviewers: Fabien, #bitcoin_abc

Reviewed By: Fabien, #bitcoin_abc

Differential Revision: https://reviews.bitcoinabc.org/D14426

Details

Provenance
tobias_ruckAuthored on Aug 29 2023, 14:11
tobias_ruckPushed on Aug 29 2023, 22:01
Reviewer
Restricted Project
Differential Revision
D14426: [Chronik] Add `compress_script_variant` to compress script variants
Parents
rABC9d960017426a: [Chronik] Add `Script::variant`
Branches
Unknown
Tags
Unknown