Example #1
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));
        }
Example #2
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));
        }
Example #3
0
        public ElectionPartialKeyVerification GuardianBackupVerify(AuxiliaryKeyPair auxiliary_key_pair, ElectionPartialKeyBackup election_partial_key_backup, bool override_rsa, string verifier_id)
        {
            var ctxt = new BackupVerificationRequest()
            {
                auxiliary_key_pair          = auxiliary_key_pair,
                election_partial_key_backup = election_partial_key_backup,
                override_rsa = override_rsa,
                verifier_id  = verifier_id
            };

            return(PostRequest <ElectionPartialKeyVerification, BackupVerificationRequest>("/api/v1/guardian/backup/verify", ctxt));
        }