mirror of
				https://git.wownero.com/wownero/wownero.git
				synced 2024-08-15 01:03:23 +00:00 
			
		
		
		
	multisig: fix #8537 seed restore (suggestions by @UkoeHB)
- spend secret key is no longer the sum of multisig key shares; no need to check that is the case upon restore. - restoring a multisig wallet from multisig info means that the wallet must have already completed all setup rounds. Upon restore, set the number of rounds completed accordingly.
This commit is contained in:
		
							parent
							
								
									727bc5b687
								
							
						
					
					
						commit
						fc8a5d68f1
					
				
					 6 changed files with 26 additions and 11 deletions
				
			
		| 
						 | 
				
			
			@ -171,7 +171,7 @@ static void make_wallets(std::vector<tools::wallet2>& wallets, unsigned int M)
 | 
			
		|||
{
 | 
			
		||||
  ASSERT_TRUE(wallets.size() > 1 && wallets.size() <= KEYS_COUNT);
 | 
			
		||||
  ASSERT_TRUE(M <= wallets.size());
 | 
			
		||||
  std::uint32_t total_rounds_required = multisig::multisig_kex_rounds_required(wallets.size(), M) + 1;
 | 
			
		||||
  std::uint32_t total_rounds_required = multisig::multisig_setup_rounds_required(wallets.size(), M);
 | 
			
		||||
  std::uint32_t rounds_complete{0};
 | 
			
		||||
 | 
			
		||||
  // initialize wallets, get first round multisig kex msgs
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue