Skip to content

Commit

Permalink
address Carine review
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximeZmt committed Apr 16, 2024
1 parent 399d0f0 commit 8973938
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 0 additions & 2 deletions contracts/evoting/evoting.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion contracts/evoting/mod_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func TestCommand_CreateForm(t *testing.T) {
}

createForm := types.CreateForm{
UserID: "dummyAdminID",
UserID: "dummyUserID",
}

data, err := createForm.Serialize(ctx)
Expand Down
2 changes: 1 addition & 1 deletion docs/smart_contract.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ where:
evoting.CloseFormArg = "evoting:close_form"
closeFormBuf = marshalled version of types.CloseFormTransaction{
FormID: hex.EncodeToString(formID),
VoterID: adminID,
UserID: adminID,
}
evoting.CmdArg = "evoting:command"
evoting.CmdCloseForm = "CLOSE_FORM"
Expand Down
3 changes: 2 additions & 1 deletion docs/verifiability_doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ The current d-voting [latest commit](https://github.com/c4dt/d-voting/commit/39a
Note over User: encrypt ballot via Elgamal encryption using electionPubKey
Note over User, Backend: data = encrypted ballot
Note over Backend: check role and sign payload.
Note over Backend: add VoterID inside payload.
Note over Backend: add voterID inside payload.
Note over Backend: add userID inside payload.
Note over Backend: sign = kyber.sign.schnorr.sign(edCurve, scalar, hash);
Backend ->>+ NodeX: POST /evoting/elections/
Note over Backend, NodeX: data: {"Payload": dataStrB64, "Signature": ""}
Expand Down

0 comments on commit 8973938

Please sign in to comment.