Page MenuHomePhabricator

Add a way to verify schnorr signatures from an array.
ClosedPublic

Authored by deadalnix on Dec 3 2020, 22:38.

Details

Reviewers
majcosta
Group Reviewers
Restricted Project
Commits
rABC9e1b95bf8e46: Add a way to verify schnorr signatures from an array.
Summary

This is a much better API.

Test Plan
ninja all check-all

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

majcosta requested changes to this revision.Dec 4 2020, 11:47
majcosta added a subscriber: majcosta.
majcosta added inline comments.
src/avalanche/processor.cpp
215 ↗(On Diff #26180)

can this magic number be replaced with CPubKey::SCHNORR_SIZE as well or can sig be something other than a Schnorr sig?

src/avalanche/proofbuilder.cpp
14 ↗(On Diff #26180)

ditto

src/net_processing.cpp
3871 ↗(On Diff #26180)

ditto

This revision now requires changes to proceed.Dec 4 2020, 11:47

I don't see any reason to block this PR due to existing code that could be better.

This revision is now accepted and ready to land.Dec 4 2020, 16:01