From 5a618bc5d22b5c5b587f8723e62caea602de4ff0 Mon Sep 17 00:00:00 2001 From: David Florness Date: Sat, 8 Feb 2020 16:15:54 -0700 Subject: [PATCH] Officially rename project to "tallyard" --- info.rkt | 4 ++-- main.rkt | 10 +++++----- scribblings/{vohea.scrbl => tallyard.scrbl} | 6 +++--- 3 files changed, 10 insertions(+), 10 deletions(-) rename scribblings/{vohea.scrbl => tallyard.scrbl} (60%) diff --git a/info.rkt b/info.rkt index 3071601..436e521 100644 --- a/info.rkt +++ b/info.rkt @@ -1,8 +1,8 @@ #lang info -(define collection "vohea") +(define collection "tallyard") (define deps '("base" "crypto")) (define build-deps '("scribble-lib" "racket-doc" "rackunit-lib")) -(define scribblings '(("scribblings/vohea.scrbl" ()))) +(define scribblings '(("scribblings/tallyard.scrbl" ()))) (define pkg-desc "Description Here") (define version "0.0") (define pkg-authors '(edwargix)) diff --git a/main.rkt b/main.rkt index 9b42422..a7ec98e 100644 --- a/main.rkt +++ b/main.rkt @@ -6,11 +6,11 @@ (require math/number-theory) (require "crypto.rkt") -(define/contract (vohea-url path) +(define/contract (tallyard-url path) (-> string? url?) (string->url (string-append "http://localhost:5598" path))) -(define candidates (read-json (get-pure-port (vohea-url "/candidates")))) +(define candidates (read-json (get-pure-port (tallyard-url "/candidates")))) (define/contract (displayln-und s) (-> string? void?) @@ -32,7 +32,7 @@ (display "Your ranking: ") (define ranking (string-split (read-line))) -(define n (bytes->integer (port->bytes (get-pure-port (vohea-url "/key"))) #f)) +(define n (bytes->integer (port->bytes (get-pure-port (tallyard-url "/key"))) #f)) (define m (bytes->integer (string->bytes/utf-8 (string-join ranking ":")) #f)) @@ -50,7 +50,7 @@ (displayln "asking for blinded signature...") (define S (bytes->integer - (port->bytes (post-pure-port (vohea-url "/sign") + (port->bytes (post-pure-port (tallyard-url "/sign") (integer->bytes M (/ keylen 8) #f))) #f)) @@ -62,7 +62,7 @@ (define result (bytes->string/utf-8 (port->bytes - (post-pure-port (vohea-url "/vote") + (post-pure-port (tallyard-url "/vote") (bytes-append (integer->bytes m (/ keylen 8) #f) (integer->bytes s (/ keylen 8) #f) ))))) diff --git a/scribblings/vohea.scrbl b/scribblings/tallyard.scrbl similarity index 60% rename from scribblings/vohea.scrbl rename to scribblings/tallyard.scrbl index 1457015..81506a0 100644 --- a/scribblings/vohea.scrbl +++ b/scribblings/tallyard.scrbl @@ -1,10 +1,10 @@ #lang scribble/manual -@require[@for-label[vohea +@require[@for-label[tallyard racket/base]] -@title{vohea} +@title{tallyard} @author{edwargix} -@defmodule[vohea] +@defmodule[tallyard] Package Description Here -- 2.38.4