HomePhabricator

Refactor MinimalizeBigEndianArray t be part of CScriptNum

Description

Refactor MinimalizeBigEndianArray t be part of CScriptNum

Summary: Also make the logic LE, like everything related to numbers

Test Plan: Move test case over to scriptnum_tests.cpp . Add check against CScriptNum::IsMinimallyEncoded to make sure both are consistent.

Reviewers: #bitcoin_abc, schancel

Reviewed By: #bitcoin_abc, schancel

Subscribers: teamcity

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

Details

Provenance
deadalnixAuthored on Mar 19 2018, 13:04
deadalnixPushed on Mar 19 2018, 17:25
Reviewer
Restricted Project
Differential Revision
D1219: Refactor MinimalizeBigEndianArray t be part of CScriptNum
Parents
rSTAGING5727a061b7fc: Ensure that CScriptNum is self contained.
Branches
Unknown
Tags
Unknown