Skip to content

Commit

Permalink
Removed extra definitions from schemas that were not used. (#336)
Browse files Browse the repository at this point in the history
Added definitions to schema that was missing
Fixed version number of one schema
  • Loading branch information
SteveMaier-IRT committed Oct 3, 2023
1 parent 31bff14 commit cc9dad5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 64 deletions.
60 changes: 1 addition & 59 deletions data/1.91/schema/ciphertext_ballot.schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://electionguard.vote/schemas/1.0.0-preview-2/ciphertext-ballot",
"$id": "https://electionguard.vote/schemas/1.91/ciphertext-ballot",
"title": "Ciphertext Ballot",
"type": "object",
"required": [
Expand Down Expand Up @@ -79,64 +79,6 @@
}
}
},
"ProofUsage": {
"title": "Proof Usage",
"description": "Usage case for proof",
"type": "string",
"enum": [
"Unknown",
"Prove knowledge of secret value",
"Prove value within selection's limit",
"Prove selection's value (0 or 1)"
],
"default": "Unknown"
},
"ConstantChaumPedersenProof": {
"title": "Constant Chaum Pedersen Proof",
"description": "Usage case for proof",
"type": "object",
"required": [
"pad",
"data",
"challenge",
"response",
"constant",
"usage"
],
"properties": {
"pad": {
"title": "Pad",
"description": "a in the spec",
"$ref": "#/definitions/ElementModP"
},
"data": {
"title": "Data",
"description": "b in the spec",
"$ref": "#/definitions/ElementModP"
},
"challenge": {
"title": "Challenge",
"description": "c in the spec",
"$ref": "#/definitions/ElementModQ"
},
"response": {
"title": "Response",
"description": "v in the spec",
"$ref": "#/definitions/ElementModQ"
},
"constant": {
"title": "Constant",
"description": "constant value",
"type": "integer"
},
"usage": {
"title": "Usage",
"description": "A description of how to use this proof",
"$ref": "#/definitions/ProofUsage",
"default": "Prove value within selection's limit"
}
}
},
"ZeroKnowledgeProof": {
"title": "Zero Knowledge Proof",
"type": "object",
Expand Down
5 changes: 5 additions & 0 deletions data/1.91/schema/guardian_record.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
"description": "An element of the larger `mod p` space, i.e., in [0, P), where P is a 4096-bit prime.",
"type": "string"
},
"ElementModQ": {
"title": "ElementModQ",
"description": "An element of the smaller `mod q` space, i.e., in [0, Q), where Q is a 256-bit prime.",
"type": "string"
},
"SequenceOrder": {
"title": "Sequence Order",
"description": "Used for ordering in a ballot to ensure various encryption primitives are deterministic.",
Expand Down
5 changes: 0 additions & 5 deletions data/1.91/schema/published_ciphertext_tally.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@
"contests"
],
"definitions": {
"Tally": {
"title": "Vote",
"type": "integer",
"minimum": 0
},
"CipherText": {
"type": "object",
"required": [
Expand Down

0 comments on commit cc9dad5

Please sign in to comment.