Page MenuHomePhabricator

add CScriptNum operator>>=
AbandonedPublic

Authored by markblundeberg on Jun 8 2019, 18:55.

Details

Reviewers
deadalnix
Mengerian
Group Reviewers
Restricted Project
Maniphest Tasks
T528: Add Schnorr support to OP_CHECKMULTISIG (new mechanics)
Summary

As part of the new OP_CHECKMULTISIG mechanics, it will be useful
to have this operation.

Test Plan

make check

Diff Detail

Repository
rABC Bitcoin ABC
Branch
numrshift
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 6222
Build 10491: Bitcoin ABC Buildbot (legacy)
Build 10490: arc lint + arc unit

Event Timeline

src/test/scriptnum_tests.cpp
265

Can you also test that the disallowed cases are disallowed?

Like rhs > 64, and negative values?

Probably going to abandon this. The motivation was to avoid using int for a bitfield as it has implementation-defined length, but I think I will just use use asserts / tests to get rid of weird platforms.

Definitely not needed now.