aboutsummaryrefslogtreecommitdiff
path: root/tests/unit_tests
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-06-30 17:36:31 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-12-17 16:12:06 +0000
commitfff871a455a7829d2ccbceb04306365b30bd641e (patch)
tree33d5e595b94075d7e3625a795186c83b0c3119f1 /tests/unit_tests
parentwallet2: allow empty wallet filename to avoid saving data (diff)
downloadmonero-fff871a455a7829d2ccbceb04306365b30bd641e.tar.xz
gen_multisig: generates multisig wallets if participants trust each other
Diffstat (limited to 'tests/unit_tests')
-rw-r--r--tests/unit_tests/multisig.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/unit_tests/multisig.cpp b/tests/unit_tests/multisig.cpp
index 8a94012e5..4a105c51c 100644
--- a/tests/unit_tests/multisig.cpp
+++ b/tests/unit_tests/multisig.cpp
@@ -85,8 +85,8 @@ static void make_M_2_wallet(tools::wallet2 &wallet0, tools::wallet2 &wallet1, un
std::string mi0 = wallet0.get_multisig_info();
std::string mi1 = wallet1.get_multisig_info();
- ASSERT_TRUE(wallet0.verify_multisig_info(mi1, sk0[0], pk0[0]));
- ASSERT_TRUE(wallet1.verify_multisig_info(mi0, sk1[0], pk1[0]));
+ ASSERT_TRUE(tools::wallet2::verify_multisig_info(mi1, sk0[0], pk0[0]));
+ ASSERT_TRUE(tools::wallet2::verify_multisig_info(mi0, sk1[0], pk1[0]));
ASSERT_FALSE(wallet0.multisig() || wallet1.multisig());
wallet0.make_multisig("", sk0, pk0, M);
@@ -118,12 +118,12 @@ static void make_M_3_wallet(tools::wallet2 &wallet0, tools::wallet2 &wallet1, to
std::string mi1 = wallet1.get_multisig_info();
std::string mi2 = wallet2.get_multisig_info();
- ASSERT_TRUE(wallet0.verify_multisig_info(mi1, sk0[0], pk0[0]));
- ASSERT_TRUE(wallet0.verify_multisig_info(mi2, sk0[1], pk0[1]));
- ASSERT_TRUE(wallet1.verify_multisig_info(mi0, sk1[0], pk1[0]));
- ASSERT_TRUE(wallet1.verify_multisig_info(mi2, sk1[1], pk1[1]));
- ASSERT_TRUE(wallet2.verify_multisig_info(mi0, sk2[0], pk2[0]));
- ASSERT_TRUE(wallet2.verify_multisig_info(mi1, sk2[1], pk2[1]));
+ ASSERT_TRUE(tools::wallet2::verify_multisig_info(mi1, sk0[0], pk0[0]));
+ ASSERT_TRUE(tools::wallet2::verify_multisig_info(mi2, sk0[1], pk0[1]));
+ ASSERT_TRUE(tools::wallet2::verify_multisig_info(mi0, sk1[0], pk1[0]));
+ ASSERT_TRUE(tools::wallet2::verify_multisig_info(mi2, sk1[1], pk1[1]));
+ ASSERT_TRUE(tools::wallet2::verify_multisig_info(mi0, sk2[0], pk2[0]));
+ ASSERT_TRUE(tools::wallet2::verify_multisig_info(mi1, sk2[1], pk2[1]));
// not implemented yet
if (M < 3)