From ee9e32cf820cf8ebdf7013e6e3c580468e1c96c7 Mon Sep 17 00:00:00 2001 From: Anton Paymyshev Date: Wed, 27 Nov 2024 16:01:26 +0700 Subject: [PATCH] fix ci --- .../brave_wallet/browser/internal/hd_key_ed25519.cc | 1 + .../brave_wallet/browser/internal/hd_key_ed25519.h | 10 +++++----- .../browser/internal/hd_key_ed25519_unittest.cc | 2 ++ components/brave_wallet/common/DEPS | 1 + 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/components/brave_wallet/browser/internal/hd_key_ed25519.cc b/components/brave_wallet/browser/internal/hd_key_ed25519.cc index 475e161801c6..e2558b5e65c6 100644 --- a/components/brave_wallet/browser/internal/hd_key_ed25519.cc +++ b/components/brave_wallet/browser/internal/hd_key_ed25519.cc @@ -6,6 +6,7 @@ #include "brave/components/brave_wallet/browser/internal/hd_key_ed25519.h" #include +#include #include "base/check.h" #include "base/containers/span.h" diff --git a/components/brave_wallet/browser/internal/hd_key_ed25519.h b/components/brave_wallet/browser/internal/hd_key_ed25519.h index c7f48dbed4c0..ae5992fba707 100644 --- a/components/brave_wallet/browser/internal/hd_key_ed25519.h +++ b/components/brave_wallet/browser/internal/hd_key_ed25519.h @@ -13,12 +13,12 @@ namespace brave_wallet { -constexpr size_t kEd25519SecretKeySize = 32; -constexpr size_t kEd25519PublicKeySize = 32; -constexpr size_t kEd25519KeypairSize = +inline constexpr size_t kEd25519SecretKeySize = 32; +inline constexpr size_t kEd25519PublicKeySize = 32; +inline constexpr size_t kEd25519KeypairSize = kEd25519SecretKeySize + kEd25519PublicKeySize; -constexpr size_t kEd25519ChainCodeSize = 32; -constexpr size_t kEd25519SignatureSize = 64; +inline constexpr size_t kEd25519ChainCodeSize = 32; +inline constexpr size_t kEd25519SignatureSize = 64; // This class implements basic EdDSA over ed25519 functionality of SLIP-0010 // spec with 32 bytes private key and only allows private key derivation with diff --git a/components/brave_wallet/browser/internal/hd_key_ed25519_unittest.cc b/components/brave_wallet/browser/internal/hd_key_ed25519_unittest.cc index ff2035200887..7d655a26b76a 100644 --- a/components/brave_wallet/browser/internal/hd_key_ed25519_unittest.cc +++ b/components/brave_wallet/browser/internal/hd_key_ed25519_unittest.cc @@ -5,6 +5,8 @@ #include "brave/components/brave_wallet/browser/internal/hd_key_ed25519.h" +#include + #include "base/strings/string_number_conversions.h" #include "base/strings/string_util.h" #include "brave/components/brave_wallet/common/hex_utils.h" diff --git a/components/brave_wallet/common/DEPS b/components/brave_wallet/common/DEPS index 9a079c726293..9a396c433879 100644 --- a/components/brave_wallet/common/DEPS +++ b/components/brave_wallet/common/DEPS @@ -13,6 +13,7 @@ specific_include_rules = { ], "hash_utils\.cc": [ "+brave/third_party/bitcoin-core/src/src/crypto/ripemd160.h", + "+third_party/boringssl", ], "zcash_utils\.cc": [ "+brave/third_party/bitcoin-core/src/src/base58.h",