Commit b1c0dc3a authored by Thomas Hoffmann's avatar Thomas Hoffmann
Browse files

Merge branch 'master' of gitlab.au.dk:dissys/bsc-shamir

parents 818d2b6e 35db0956
......@@ -2,6 +2,8 @@ package election
import (
"bsc-shamir/crypto/common"
"bsc-shamir/crypto/pedersen"
"bsc-shamir/crypto/sigma"
"bsc-shamir/network"
"crypto/rand"
"io/ioutil"
......@@ -45,6 +47,24 @@ func createXS(n int) []*big.Int {
return xs
}
func CreateFakeBallots(xs []*big.Int) map[UniqueID]*Ballot {
timestamp := time.Now()
id := uuid.New()
ballots := make(map[UniqueID]*Ballot)
for _, x := range xs {
ballots[UniqueID(x.String())] = &Ballot{
ID: id,
Timestamp: timestamp,
Share: nil,
Commits: pedersen.Proof{big.NewInt(0), big.NewInt(0)},
Proofs: [2]*sigma.Proof{nil,nil},
}
}
return ballots
}
///////////////////////
///Client benchmarks///
///////////////////////
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment