HomePhabricator

[Chronik] Add `BitcoinSer` and `BitcoinSerializer`

Description

[Chronik] Add BitcoinSer and BitcoinSerializer

Summary:
BitcoinSer is implemented by structs to serialize them. BitcoinSerializer is implemented to define how the serialization should be performed, e.g. BytesMut appends the bytes, and usize accumulates the length of the data.

Depends on D13831.

Test Plan: ninja check-crates

Reviewers: Fabien, #bitcoin_abc

Reviewed By: Fabien, #bitcoin_abc

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

Details

Provenance
tobias_ruckAuthored on Apr 29 2023, 22:32
tobias_ruckPushed on May 1 2023, 15:55
Reviewer
Restricted Project
Differential Revision
D13832: [Chronik] Add `BitcoinSer` and `BitcoinSerializer`
Parents
rABC2fbf1feb46b0: [Chronik] Add `load_raw_tx` to chronik-bridge
Branches
Unknown
Tags
Unknown