Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
DisSys Inc.
bsc-shamir
Commits
2485c581
Commit
2485c581
authored
Jun 08, 2020
by
Mikkel Wienberg Madsen
👀
Browse files
Update README.md
parent
4252ed4d
Pipeline
#22199
passed with stages
in 1 minute and 40 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
2485c581
...
...
@@ -2,4 +2,35 @@
[

](https://gitlab.au.dk/dissys/bsc-shamir/-/commits/master)
# bsc-shamir
Something something about bachelor and Shamir Secret Sharing
\ No newline at end of file
We use Go modules to manage dependencies and as such our implementation requires Go version 1.12 or greater.
All dependencies are located in the
`go.mod`
file and are automatically installed when running the project.
The project can be build using the go tool chain.
Unit tests and benchmarks can be run using the following commands
```
bash
go
test
bsc-shamir/
\d
ots
go
test
-run
NONE
-benchmem
-bench
.
bsc-shamir/election
```
The command line interfaces are in the
`cmd`
directory.
To run the server program, use
```
bash
go run bsc-shamir/cmd/server
```
The default port is 27000, however another can be specified using
`--port`
flag.
To vote, use
```
bash
go run bsc-shamir/cmd/vote
```
The vote can be specified using
`-v`
flag.
Because each voter can vote at most once, once should else set the certificate and key using
`--key`
and
`--cert`
.
## Certificate Authority
To support our implementation we have created a simple CA.
The is a command line tools, which can create a root certificate,
`n`
server and
`m`
voter certificates.
To create certificates run
````
bash
go run bsc-shamir/cmd/ca
--new
-s
n
-c
m
````
where
`n`
and
`m`
are the numbers of servers and voters respectively.
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment