예제 #1
0
        public async Task <RekeyProgress> QuickRekeyAsync(string[] allMasterShareKeys, string rekeyNonce)
        {
            Checker.NotNull(allMasterShareKeys, "allMasterShareKeys");

            RekeyProgress finalRekeyProgress = null;

            foreach (var masterShareKey in allMasterShareKeys)
            {
                finalRekeyProgress = await ContinueRekeyAsync(masterShareKey, rekeyNonce);

                // don't continue, once threshold keys are achieved.
                if (finalRekeyProgress.Complete)
                {
                    break;
                }
            }

            return(finalRekeyProgress);
        }
예제 #2
0
        public async Task <RekeyProgress> QuickRekeyAsync(string[] allMasterShareKeys, string rekeyNonce)
        {
            Checker.NotNull(allMasterShareKeys, "allMasterShareKeys");

            RekeyProgress finalRekeyProgress = null;

            foreach (var masterShareKey in allMasterShareKeys)
            {
                finalRekeyProgress = await ContinueRekeyAsync(masterShareKey, rekeyNonce).ConfigureAwait(_polymath.VaultClientSettings.ContinueAsyncTasksOnCapturedContext);

                // don't continue, once threshold keys are achieved.
                if (finalRekeyProgress.Complete)
                {
                    break;
                }
            }

            return(finalRekeyProgress);
        }