Using camelCase on censusID Signed-off-by: p4u <p4u@dabax.net>
p4u p4u@dabax.net
Mon, 11 Feb 2019 10:36:33 +0100
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 }