Page MenuHomePhabricator

[Chronik] Add `compress_script_variant` to compress script variants
ClosedPublic

Authored by tobias_ruck on Aug 29 2023, 14:12.

Details

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

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable