arnaucube
arnaucube/go-dvotePublic Self-hosted repository
Using camelCase on censusID

Signed-off-by: p4u <p4u@dabax.net>
p4u p4u@dabax.net
Mon, 11 Feb 2019 10:36:33 +0100
commit

c258a9ad9cf309ab2cd71b4f4c5ee34179c62c03

parent

0c3587bb9c26b3a2953487c0b2d92cd6ca50bcc7

1 files changed, 3 insertions(+), 3 deletions(-)

jump to
M service/censusmanager.go → service/censusmanager.go

@@ -19,7 +19,7 @@ var Signatures map[string]string

var Signature signature.SignKeys // Signature dvote-relay library type Claim struct { - CensusID string `json:"censusID"` // References to MerkleTree namespace + CensusID string `json:"censusId"` // References to MerkleTree namespace RootHash string `json:"rootHash"` // References to MerkleTree rootHash ClaimData string `json:"claimData"` // Data to add to the MerkleTree ProofData string `json:"proofData"` // MerkleProof to check

@@ -99,7 +99,7 @@ return

} // Process data - log.Printf("censusID:{%s} rootHash:{%s} claimData:{%s} proofData:{%s} timeStamp:{%s} signature:{%s}\n", + log.Printf("censusId:{%s} rootHash:{%s} claimData:{%s} proofData:{%s} timeStamp:{%s} signature:{%s}\n", c.CensusID, c.RootHash, c.ClaimData, c.ProofData, c.TimeStamp, c.Signature) authString := fmt.Sprintf("%s%s%s%s", c.CensusID, c.RootHash, c.ClaimData, c.TimeStamp) resp.Error = false

@@ -110,7 +110,7 @@ _, censusFound = MkTrees[c.CensusID]

} if !censusFound { resp.Error = true - resp.Response = "censusID not valid or not found" + resp.Response = "censusId not valid or not found" reply(&resp, w) return }