aboutsummaryrefslogtreecommitdiff
path: root/src/test/bip324_tests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/bip324_tests.cpp')
-rw-r--r--src/test/bip324_tests.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/test/bip324_tests.cpp b/src/test/bip324_tests.cpp
index 04472611ec..1ed7e23bcf 100644
--- a/src/test/bip324_tests.cpp
+++ b/src/test/bip324_tests.cpp
@@ -38,14 +38,8 @@ void TestBIP324PacketVector(
{
// Convert input from hex to char/byte vectors/arrays.
const auto in_priv_ours = ParseHex(in_priv_ours_hex);
- const auto in_ellswift_ours_vec = ParseHex<std::byte>(in_ellswift_ours_hex);
- assert(in_ellswift_ours_vec.size() == 64);
- std::array<std::byte, 64> in_ellswift_ours;
- std::copy(in_ellswift_ours_vec.begin(), in_ellswift_ours_vec.end(), in_ellswift_ours.begin());
- const auto in_ellswift_theirs_vec = ParseHex<std::byte>(in_ellswift_theirs_hex);
- assert(in_ellswift_theirs_vec.size() == 64);
- std::array<std::byte, 64> in_ellswift_theirs;
- std::copy(in_ellswift_theirs_vec.begin(), in_ellswift_theirs_vec.end(), in_ellswift_theirs.begin());
+ const auto in_ellswift_ours = ParseHex<std::byte>(in_ellswift_ours_hex);
+ const auto in_ellswift_theirs = ParseHex<std::byte>(in_ellswift_theirs_hex);
const auto in_contents = ParseHex<std::byte>(in_contents_hex);
const auto in_aad = ParseHex<std::byte>(in_aad_hex);
const auto mid_send_garbage = ParseHex<std::byte>(mid_send_garbage_hex);