forked from ElectionGuard/ElectionGuard-SDK-C-Documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
examples.html
113 lines (111 loc) · 7.9 KB
/
examples.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Example Clients — ElectionGuard SDK documentation</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto+Mono"><link rel="stylesheet" href="_static/typlog.css?v=0.7.3" type="text/css" />
<link rel="stylesheet" href="_static/theme.css?v=0.7.3" type="text/css" />
<link rel="index" title="Index" href="genindex.html"/>
<link rel="search" title="Search" href="search.html"/>
<link rel="top" title="ElectionGuard SDK documentation" href="index.html"/>
<link rel="next" title="Simple Client" href="examples/simple.html"/>
<link rel="prev" title="Maximum Values" href="api/max_values.html"/>
<script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');ga('create', '');ga('send', 'pageview');</script>
<script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<script type="text/javascript" src="_static/language_data.js"></script>
<script async="async" type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-AMS-MML_HTMLorMML"></script>
<meta property="og:type" content="website">
<meta property="og:site_name" content="ElectionGuard SDK">
<meta property="og:title" content="Example Clients">
<meta property="og:description" content="Building E2E verifiable elections.">
<meta name="twitter:card" content="summary">
</head>
<body role="document" data-page="examples">
<header class="t-head">
<div class="t-head_menu"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M64 384h384v-42.666H64V384zm0-106.666h384v-42.667H64v42.667zM64 128v42.665h384V128H64z"/></svg></div>
<a class="t-head_logo" href="index.html">ElectionGuard SDK
</a>
</header>
<aside class="t-sidebar">
<div class="t-sidebar_close">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M405 136.798L375.202 107 256 226.202 136.798 107 107 136.798 226.202 256 107 375.202 136.798 405 256 285.798 375.202 405 405 375.202 285.798 256z"/></svg>
</div>
<div class="inner">
<a class="logo" href="index.html">
ElectionGuard SDK
</a><div class="logo_desc">Building E2E verifiable elections.</div>
<div class="github_wrap">
<a class="github" href="https://github.com/microsoft/ElectionGuard-SDK" target="_blank">
<span class="github_icon"></span>
<span class="github_stars">
<strong>-</strong>stars
</span>
<span class="github_forks">
<strong>-</strong>forks
</span>
</a>
</div><div class="globaltoc">
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="keyceremony.html">Key Ceremony</a></li>
<li class="toctree-l1"><a class="reference internal" href="voting.html">Voting</a></li>
<li class="toctree-l1"><a class="reference internal" href="decryption.html">Decryption</a></li>
<li class="toctree-l1"><a class="reference internal" href="api/index.html">API Reference</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">Example Clients</a><ul>
<li class="toctree-l2"><a class="reference internal" href="examples/simple.html">Simple Client</a></li>
</ul>
</li>
</ul>
</div>
<div id="searchbox">
<form class="search" action="search.html" method="get">
<div class="input-group">
<input type="text" name="q" placeholder="Search" />
<button type="submit">Go</button>
</div>
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div>
</aside>
<div class="t-content">
<div class="t-body yue">
<div class="section" id="example-clients">
<h1>Example Clients<a class="headerlink" href="#example-clients" title="Permalink to this headline">¶</a></h1>
<p>These examples demonstrate correct usage of the ElectionGuard SDK.</p>
<div class="toctree-wrapper compound">
</div>
<ul>
<li><p class="first">The <a class="reference internal" href="examples/simple.html"><span class="doc">simple client</span></a> carries out an election where all
entities communicate via argument-passing.</p>
<p>It should successfully exit with return status <code class="docutils literal notranslate"><span class="pre">0</span></code>, and produce two files
in the current directory with names of the form <code class="file docutils literal notranslate"><span class="pre">voting_results-XXXXXX</span></code>
and <code class="file docutils literal notranslate"><span class="pre">tally-XXXXXX</span></code> containing ballots and the decrypted tallies
respectively. It should also print all of the ballot trackers on STDOUT using
a representation where each byte is converted to a specific word.</p>
</li>
</ul>
</div>
<div class="t-pagination clearfix">
<span>
← <a href="api/max_values.html" title="Maximum Values">Maximum Values</a>
</span>
<span style="float:right">
<a href="examples/simple.html" title="Simple Client">Simple Client</a> →
</span>
</div>
</div><footer class="t-foot">
© Copyright 1970, Jake Waksbaum.
<br>
A <a href="https://typlog.com/">typlog</a> <a href="https://github.com/typlog/sphinx-typlog-theme">sphinx theme</a>,
designed by <a href="https://lepture.com/">Hsiaoming Yang</a>.
</footer>
</div>
<script>$(function(){$(".t-head_menu").on("click",function(){$("body").addClass("_expand")});$(".t-body").on("click",function(){$("body").removeClass("_expand")});$(".t-sidebar_close").on("click",function(){$("body").removeClass("_expand")});$("a.footnote-reference").on("click",function(e){e.preventDefault();var id=$(this).attr("href");var html=$(id).find("td.label + td").html();var w=Math.max(document.documentElement.clientWidth,window.innerWidth||0);var style="top:"+e.pageY+"px;";if(w>560){style+="width:480px;";if(e.pageX>240&&e.pageX+240<w){style+="left:"+(e.pageX-240)+"px;"}else if(e.pageX<=240){style+="left:20px;"}else{style+="right:20px;"}}showFootnote(html,style)});function showFootnote(html,style){var CONTENT_ID="typlog-footnote-content";var content=document.getElementById(CONTENT_ID);if(!content){content=document.createElement("div");content.id=CONTENT_ID;$(".t-body").append(content)}var MASK_ID="typlog-footnote-mask";var mask=document.getElementById(MASK_ID);if(!mask){mask=document.createElement("div");mask.id=MASK_ID;document.body.appendChild(mask);mask.addEventListener("click",function(){content.className="";mask.className=""})}content.innerHTML=html;content.setAttribute("style",style);content.className="_active";mask.className="_active"}function fetchGitHubRepo(repo){var url="https://api.github.com/repos/"+repo;$.getJSON(url,function(data){var counts=[+new Date,data.stargazers_count,data.forks_count];localStorage.setItem("gh:"+repo,JSON.stringify(counts));updateGitHubStats(counts[1],counts[2])})}function updateGitHubStats(stars,forks){$(".github_stars strong").text(stars);$(".github_forks strong").text(forks)}function initGitHub(url){if(!url){return}var repo=url.replace("https://github.com/","");var cache=localStorage.getItem("gh:"+repo);if(cache){try{var counts=JSON.parse(cache);updateGitHubStats(counts[1],counts[2]);var delta=new Date-counts[0];if(delta<0||delta>9e5){fetchGitHubRepo(repo)}}catch(error){fetchGitHubRepo(repo)}}else{fetchGitHubRepo(repo)}}initGitHub($(".github").attr("href"))});</script>
</body>
</html>