Page MenuHomePhabricator

test: simplify uint256 (de)serialization routines
ClosedPublic

Authored by roqqit on Oct 8 2024, 23:46.

Details

Reviewers
PiRK
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Restricted Project
Commits
rABCca4d4be53648: 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

Diff Detail