Documentation ¶
Index ¶
- func BuildSignedVoteForOffChainTree(t *testing.T, electionID []byte, key *ethereum.SignKeys, proof []byte, ...) *models.SignedTx
- func CreateKeysAndBuildCensus(t *testing.T, size int) ([]*ethereum.SignKeys, []byte, [][]byte)
- func GetCSPproofBatch(signers []*ethereum.SignKeys, csp *ethereum.SignKeys, pid []byte) ([]types.HexBytes, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildSignedVoteForOffChainTree ¶
func BuildSignedVoteForOffChainTree(t *testing.T, electionID []byte, key *ethereum.SignKeys, proof []byte, votePackage []int, chainID string) *models.SignedTx
BuildSignedVoteForOffChainTree builds a signed vote for an off-chain merkle-tree election.
func CreateKeysAndBuildCensus ¶
CreateKeysAndBuildCensus creates a bunch of random keys and a new census tree. It returns the keys, the census root and the proofs for each key.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.