예제 #1
0
        public ElectionPartialKeyChallenge GuardianChallenge(ElectionPartialKeyBackup election_partial_key_backup, ElectionPolynomial election_polynomial)
        {
            var ctxt = new BackupChallengeRequest()
            {
                election_partial_key_backup = election_partial_key_backup,
                election_polynomial         = election_polynomial
            };

            return(PostRequest <ElectionPartialKeyChallenge, BackupChallengeRequest>("/api/v1/guardian/challenge", ctxt));
        }
예제 #2
0
        public async Task <GuardianBackup> GuardianBackupAsync(AuxiliaryPublicKey[] auxiliary_public_keys, ElectionPolynomial election_polynomial, string guardian_id, bool override_rsa, int quorum)
        {
            var ctxt = new GuardianBackupRequest()
            {
                auxiliary_public_keys = auxiliary_public_keys,
                election_polynomial   = election_polynomial,
                guardian_id           = guardian_id,
                override_rsa          = override_rsa,
                quorum = quorum
            };

            return(await PostRequestAsync <GuardianBackup, GuardianBackupRequest>("/api/v1/guardian/backup", ctxt));
        }
예제 #3
0
        public async Task <ElectionPartialKeyChallenge> GuardianChallengeAsync(ElectionPartialKeyBackup election_partial_key_backup, ElectionPolynomial election_polynomial)
        {
            var ctxt = new BackupChallengeRequest()
            {
                election_partial_key_backup = election_partial_key_backup,
                election_polynomial         = election_polynomial
            };

            return(await PostRequestAsync <ElectionPartialKeyChallenge, BackupChallengeRequest>("/api/v1/guardian/challenge", ctxt));
        }