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)); }
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)); }