예제 #1
0
        public async Task <RootTokenGenerationStatus> QuickRootTokenGenerationAsync(string[] thresholdMasterShareKeys, string nonce)
        {
            RootTokenGenerationStatus finalStatus = null;

            foreach (var masterShareKey in thresholdMasterShareKeys)
            {
                finalStatus = await ContinueRootTokenGenerationAsync(masterShareKey, nonce);

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

            return(finalStatus);
        }
예제 #2
0
        public async Task <RootTokenGenerationStatus> QuickRootTokenGenerationAsync(string[] thresholdMasterShareKeys, string nonce)
        {
            RootTokenGenerationStatus finalStatus = null;

            foreach (var masterShareKey in thresholdMasterShareKeys)
            {
                finalStatus = await ContinueRootTokenGenerationAsync(masterShareKey, nonce).ConfigureAwait(_polymath.VaultClientSettings.ContinueAsyncTasksOnCapturedContext);

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

            return(finalStatus);
        }