Skip to content

Commit 93cb8f0

Browse files
committed
refactor: add missing headers for BIP324 ciphersuite
1 parent d22d5d9 commit 93cb8f0

File tree

6 files changed

+9
-5
lines changed

6 files changed

+9
-5
lines changed

src/bip324.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,19 @@
88
#include <crypto/chacha20.h>
99
#include <crypto/chacha20poly1305.h>
1010
#include <crypto/hkdf_sha256_32.h>
11+
#include <key.h>
12+
#include <pubkey.h>
1113
#include <random.h>
1214
#include <span.h>
1315
#include <support/cleanse.h>
16+
#include <uint256.h>
1417

1518
#include <algorithm>
1619
#include <assert.h>
1720
#include <cstdint>
1821
#include <cstddef>
22+
#include <iterator>
23+
#include <string>
1924

2025
BIP324Cipher::BIP324Cipher() noexcept
2126
{

src/bip324.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#ifndef BITCOIN_BIP324_H
66
#define BITCOIN_BIP324_H
77

8+
#include <array>
89
#include <cstddef>
910
#include <optional>
1011

src/crypto/chacha20poly1305.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111
#include <support/cleanse.h>
1212

1313
#include <assert.h>
14-
#include <cstdint>
1514
#include <cstddef>
16-
#include <iterator>
1715

1816
AEADChaCha20Poly1305::AEADChaCha20Poly1305(Span<const std::byte> key) noexcept : m_chacha20(UCharCast(key.data()))
1917
{

src/crypto/chacha20poly1305.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#define BITCOIN_CRYPTO_CHACHA20POLY1305_H
77

88
#include <cstddef>
9-
#include <cstdlib>
109
#include <stdint.h>
1110

1211
#include <crypto/chacha20.h>

src/test/bip324_tests.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@
66
#include <chainparams.h>
77
#include <key.h>
88
#include <pubkey.h>
9+
#include <span.h>
910
#include <test/util/random.h>
1011
#include <test/util/setup_common.h>
1112
#include <util/strencodings.h>
1213

1314
#include <array>
14-
#include <vector>
1515
#include <cstddef>
16+
#include <cstdint>
17+
#include <vector>
1618

1719
#include <boost/test/unit_test.hpp>
1820

src/test/fuzz/bip324.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#include <test/util/xoroshiro128plusplus.h>
1212

1313
#include <cstdint>
14-
#include <tuple>
1514
#include <vector>
1615

1716
namespace {

0 commit comments

Comments
 (0)