diff options
author | luigi1111 <luigi1111w@gmail.com> | 2022-09-15 16:25:22 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2022-09-15 16:25:22 -0500 |
commit | 7cbae6ca988dedbe358ee5edbf9bdd610673a8ee (patch) | |
tree | 7087c8405264f60dc0bc0e4aa238df82f6554fac /src/multisig/multisig_account.h | |
parent | Merge pull request #8544 (diff) | |
parent | Merge pull request #5 from j-berman/restore-msig-encrypted-seed (diff) | |
download | monero-7cbae6ca988dedbe358ee5edbf9bdd610673a8ee.tar.xz |
Merge pull request #8545v0.18.1.1
12e7c41 Merge pull request #5 from j-berman/restore-msig-encrypted-seed (Justin Berman)
848a0c0 Fix segfault restoring encrypted multisig seed (j-berman)
401f5d9 Require user ack multisig is experimental to restore (j-berman)
fc8a5d6 multisig: fix #8537 seed restore (suggestions by @UkoeHB) (j-berman)
Diffstat (limited to 'src/multisig/multisig_account.h')
-rw-r--r-- | src/multisig/multisig_account.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/multisig/multisig_account.h b/src/multisig/multisig_account.h index 7b372bbff..7beb594b4 100644 --- a/src/multisig/multisig_account.h +++ b/src/multisig/multisig_account.h @@ -245,4 +245,13 @@ namespace multisig * return: number of kex rounds required */ std::uint32_t multisig_kex_rounds_required(const std::uint32_t num_signers, const std::uint32_t threshold); + + /** + * brief: multisig_setup_rounds_required - The number of setup rounds required to produce an M-of-N shared key. + * - A participant must complete all kex rounds and 1 initialization round. + * param: num_signers - number of participants in multisig (N) + * param: threshold - threshold of multisig (M) + * return: number of setup rounds required + */ + std::uint32_t multisig_setup_rounds_required(const std::uint32_t num_signers, const std::uint32_t threshold); } //namespace multisig |