diff --git a/contracts/evoting/evoting.go b/contracts/evoting/evoting.go index 746d044f..757e03bd 100644 --- a/contracts/evoting/evoting.go +++ b/contracts/evoting/evoting.go @@ -60,8 +60,6 @@ func (e evotingCommand) createForm(snap store.Snapshot, step execution.Step) err return xerrors.Errorf(errWrongTx, msg) } - println("SCIPERRRRR: %i", tx.UserID) - rosterBuf, err := snap.Get(viewchange.GetRosterKey()) if err != nil { return xerrors.Errorf("failed to get roster") diff --git a/contracts/evoting/mod_test.go b/contracts/evoting/mod_test.go index eea18a7a..fff1928a 100644 --- a/contracts/evoting/mod_test.go +++ b/contracts/evoting/mod_test.go @@ -120,7 +120,7 @@ func TestCommand_CreateForm(t *testing.T) { } createForm := types.CreateForm{ - UserID: "dummyAdminID", + UserID: "dummyUserID", } data, err := createForm.Serialize(ctx) diff --git a/docs/smart_contract.md b/docs/smart_contract.md index b1f68ddb..0adff392 100644 --- a/docs/smart_contract.md +++ b/docs/smart_contract.md @@ -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" diff --git a/docs/verifiability_doc.md b/docs/verifiability_doc.md index 571cb1e2..64fd5eea 100755 --- a/docs/verifiability_doc.md +++ b/docs/verifiability_doc.md @@ -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": ""}