From 0a8528ec77fc995c8e7e8c58929965e88fae4d37 Mon Sep 17 00:00:00 2001 From: Konstantin Akimov Date: Tue, 16 May 2023 17:16:10 +0700 Subject: [PATCH] fix: follow-up bitcoin#17725 - fixup for dashbls otherwise CI fails See https://github.com/dashpay/bls-signatures/pull/77 --- src/dashbls/src/elements.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dashbls/src/elements.cpp b/src/dashbls/src/elements.cpp index d53426da02604d..cf720dd7524b00 100644 --- a/src/dashbls/src/elements.cpp +++ b/src/dashbls/src/elements.cpp @@ -246,6 +246,7 @@ G2Element G2Element::FromBytesUnchecked(Bytes const bytes, const bool fLegacy) if (fLegacy) { std::memcpy(buffer + 1, bytes.begin(), G2Element::SIZE); + buffer[0] = 0x00; } else { std::memcpy(buffer + 1, bytes.begin() + G2Element::SIZE / 2, G2Element::SIZE / 2); std::memcpy(buffer + 1 + G2Element::SIZE / 2, bytes.begin(), G2Element::SIZE / 2);