Esempio n. 1
0
        public TallyDecryptionShare TallyDecryptShare(CiphertextElectionContext context, ElectionDescription description, PublishedCiphertextTally encrypted_tally, Guardian guardian)
        {
            var ctxt = new DecryptTallyShareRequest()
            {
                context         = context,
                description     = description,
                encrypted_tally = encrypted_tally,
                guardian        = guardian
            };

            return(PostRequest <TallyDecryptionShare, DecryptTallyShareRequest>("/api/v1/tally/decrypt-share", ctxt));
        }
Esempio n. 2
0
        public DecryptBallotSharesResponse BallotDecryptShares(CiphertextElectionContext context, CiphertextAcceptedBallot[] encrypted_ballots, Guardian guardian)
        {
            var ctxt = new DecryptBallotSharesRequest()
            {
                context           = context,
                encrypted_ballots = encrypted_ballots,
                guardian          = guardian
            };

            return(PostRequest <DecryptBallotSharesResponse, DecryptBallotSharesRequest>("/api/v1/ballot/decrypt-shares", ctxt));
        }