summaryrefslogtreecommitdiff
path: root/patches/wownero/0002-polyseed.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/wownero/0002-polyseed.patch')
-rw-r--r--patches/wownero/0002-polyseed.patch18
1 files changed, 9 insertions, 9 deletions
diff --git a/patches/wownero/0002-polyseed.patch b/patches/wownero/0002-polyseed.patch
index c607ecc..a31d0ac 100644
--- a/patches/wownero/0002-polyseed.patch
+++ b/patches/wownero/0002-polyseed.patch
@@ -1,7 +1,7 @@
-From b5f23b131c6eaaf6b2a772e63b9e236eb0c90d72 Mon Sep 17 00:00:00 2001
+From 114c13e1f26b32532a23e2db1c89403568bb8ee4 Mon Sep 17 00:00:00 2001
From: tobtoht <tob@featherwallet.org>
Date: Tue, 12 Mar 2024 09:42:37 +0100
-Subject: [PATCH 2/9] polyseed
+Subject: [PATCH 02/14] polyseed
Co-authored-by: Czarek Nakamoto <cyjan@mrcyjanek.net>
---
@@ -55,7 +55,7 @@ index 4c1e381c0..70bea03b3 100644
test-ubuntu:
needs: build-ubuntu
diff --git a/.gitmodules b/.gitmodules
-index 74571d5ee..1c469941e 100644
+index e40b7b4c7..bd30f0444 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -8,6 +8,12 @@
@@ -467,7 +467,7 @@ index 000000000..f6253b9d7
\ No newline at end of file
diff --git a/src/polyseed/polyseed.cpp b/src/polyseed/polyseed.cpp
new file mode 100644
-index 000000000..0a8852777
+index 000000000..231a48a94
--- /dev/null
+++ b/src/polyseed/polyseed.cpp
@@ -0,0 +1,182 @@
@@ -519,7 +519,7 @@ index 000000000..0a8852777
+ if (result < 0 || result > (POLYSEED_STR_SIZE - 1)) {
+ throw std::runtime_error("Unicode normalization failed");
+ }
-+
++
+ result = utf8proc_reencode(buffer, result, options);
+ if (result < 0 || result > POLYSEED_STR_SIZE) {
+ throw std::runtime_error("Unicode normalization failed");
@@ -828,7 +828,7 @@ index 000000000..2c8c777a7
+#endif //POLYSEED_HPP
\ No newline at end of file
diff --git a/src/wallet/api/wallet.cpp b/src/wallet/api/wallet.cpp
-index d81ddec93..ceb0bcb8b 100644
+index d81ddec93..db9c2b5d9 100644
--- a/src/wallet/api/wallet.cpp
+++ b/src/wallet/api/wallet.cpp
@@ -683,6 +683,28 @@ bool WalletImpl::recoverFromDevice(const std::string &path, const std::string &p
@@ -875,7 +875,7 @@ index d81ddec93..ceb0bcb8b 100644
+ }
+
+ bool result = m_wallet->get_polyseed(seed_words_epee, passphrase_epee);
-+
++
+ seed_words.assign(seed_words_epee.data(), seed_words_epee.size());
+ passphrase.assign(passphrase_epee.data(), passphrase_epee.size());
+
@@ -897,7 +897,7 @@ index d81ddec93..ceb0bcb8b 100644
+bool Wallet::createPolyseed(std::string &seed_words, std::string &err, const std::string &language)
+{
+ epee::wipeable_string seed_words_epee(seed_words.c_str(), seed_words.size());
-+
++
+ try {
+ polyseed::data polyseed(POLYSEED_COIN);
+ polyseed.create(0);
@@ -1295,5 +1295,5 @@ index df34f9abf..db5c1feb3 100644
uint32_t m_multisig_threshold;
std::vector<crypto::public_key> m_multisig_signers;
--
-2.44.0
+2.39.2