HomePhabricator

test: simplify uint256 (de)serialization routines

Description

test: simplify uint256 (de)serialization routines

Summary:
These routines look fancy, but do nothing more than converting between
byte objects of length 32 to/from integers in little endian byte order
and can be replaced by simple one-liners, using the int.{from,to}_bytes
methods (available since Python 3.2).

Backport of core#27516

Test Plan:

ninja check-functional

Reviewers: O1 Bitcoin ABC, #bitcoin_abc, PiRK

Reviewed By: O1 Bitcoin ABC, #bitcoin_abc, PiRK

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

Details

Provenance
Sebastian Falbesoner <sebastian.falbesoner@gmail.com>Authored on Apr 23 2023, 00:36
roqqitCommitted on Oct 9 2024, 15:41
roqqitPushed on Oct 9 2024, 15:41
Reviewer
Restricted Owners Package
Differential Revision
D16874: test: simplify uint256 (de)serialization routines
Parents
rABC1741428f73b6: [e.cash] Add link for Chronik docs to build page
Branches
Unknown
Tags
Unknown