Skip to content
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
109 changes: 109 additions & 0 deletions schemas/bls_aggregate_verify_schema_v1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
{
"type": "object",
"definitions": {
"BlsAggregateVerifyTestGroup": {
"type": "object",
"properties": {
"type": {
"enum": [
"BlsAggregateVerify"
]
},
"source": {
"$ref": "common.json#/definitions/Source"
},
"ciphersuite": {
"type": "string",
"description": "The BLS ciphersuite identifier"
},
"tests": {
"type": "array",
"items": {
"$ref": "#/definitions/BlsAggregateVerifyTestVector"
}
}
},
"required": ["type", "source", "ciphersuite", "tests"],
"additionalProperties": false
},
"BlsAggregateVerifyTestVector": {
"type": "object",
"properties": {
"tcId": {
"type": "integer",
"description": "Identifier of the test case"
},
"comment": {
"type": "string",
"description": "A brief description of the test case"
},
"pubkeys": {
"type": "array",
"items": {
"type": "string",
"format": "HexBytes"
},
"description": "The compressed public keys"
},
"messages": {
"type": "array",
"items": {
"type": "string",
"format": "HexBytes"
},
"description": "The messages that were signed"
},
"sig": {
"type": "string",
"format": "HexBytes",
"description": "The aggregated BLS signature in compressed form"
},
"result": {
"$ref": "common.json#/definitions/Result"
},
"flags": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of flags"
}
},
"additionalProperties": false,
"required": ["tcId", "comment", "pubkeys", "messages", "sig", "result", "flags"]
}
},
"properties": {
"algorithm": {
"type": "string",
"description": "The primitive tested in the test file"
},
"header": {
"type": "array",
"items": {
"type": "string"
},
"description": "Additional documentation"
},
"notes": {
"$ref": "common.json#/definitions/Notes"
},
"numberOfTests": {
"type": "integer",
"description": "The number of test vectors in this test"
},
"schema": {
"enum": [
"bls_aggregate_verify_schema_v1.json"
]
},
"testGroups": {
"type": "array",
"items": {
"$ref": "#/definitions/BlsAggregateVerifyTestGroup"
}
}
},
"required": ["algorithm", "header", "notes", "numberOfTests", "schema", "testGroups"],
"additionalProperties": false
}
98 changes: 98 additions & 0 deletions schemas/bls_hash_to_g2_schema_v1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
{
"type": "object",
"definitions": {
"BlsHashToG2TestGroup": {
"type": "object",
"properties": {
"type": {
"enum": [
"BlsHashToG2"
]
},
"source": {
"$ref": "common.json#/definitions/Source"
},
"dst": {
"type": "string",
"description": "The domain separation tag used for hash_to_curve"
},
"tests": {
"type": "array",
"items": {
"$ref": "#/definitions/BlsHashToG2TestVector"
}
}
},
"required": ["type", "source", "dst", "tests"],
"additionalProperties": false
},
"BlsHashToG2TestVector": {
"type": "object",
"properties": {
"tcId": {
"type": "integer",
"description": "Identifier of the test case"
},
"comment": {
"type": "string",
"description": "A brief description of the test case"
},
"msg": {
"type": "string",
"format": "HexBytes",
"description": "The input message"
},
"expected": {
"type": "string",
"format": "HexBytes",
"description": "The expected hash-to-curve output point in compressed form"
},
"result": {
"$ref": "common.json#/definitions/Result"
},
"flags": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of flags"
}
},
"additionalProperties": false,
"required": ["tcId", "comment", "msg", "expected", "result", "flags"]
}
},
"properties": {
"algorithm": {
"type": "string",
"description": "The primitive tested in the test file"
},
"header": {
"type": "array",
"items": {
"type": "string"
},
"description": "Additional documentation"
},
"notes": {
"$ref": "common.json#/definitions/Notes"
},
"numberOfTests": {
"type": "integer",
"description": "The number of test vectors in this test"
},
"schema": {
"enum": [
"bls_hash_to_g2_schema_v1.json"
]
},
"testGroups": {
"type": "array",
"items": {
"$ref": "#/definitions/BlsHashToG2TestGroup"
}
}
},
"required": ["algorithm", "header", "notes", "numberOfTests", "schema", "testGroups"],
"additionalProperties": false
}
122 changes: 122 additions & 0 deletions schemas/bls_sig_verify_schema_v1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
{
"type": "object",
"definitions": {
"BlsSigVerifyTestGroup": {
"type": "object",
"properties": {
"type": {
"enum": [
"BlsSigVerify"
]
},
"source": {
"$ref": "common.json#/definitions/Source"
},
"ciphersuite": {
"type": "string",
"description": "The BLS ciphersuite identifier, e.g. BLS_SIG_BLS12381G2_XMD:SHA-256_SSWU_RO_NUL_"
},
"publicKey": {
"$ref": "#/definitions/BlsPublicKey"
},
"tests": {
"type": "array",
"items": {
"$ref": "#/definitions/BlsSigVerifyTestVector"
}
}
},
"required": ["type", "source", "ciphersuite", "publicKey", "tests"],
"additionalProperties": false
},
"BlsPublicKey": {
"type": "object",
"properties": {
"pk": {
"type": "string",
"format": "HexBytes",
"description": "The compressed public key"
},
"group": {
"type": "string",
"enum": ["G1", "G2"],
"description": "The group the public key belongs to"
},
"keySize": {
"type": "integer",
"description": "The size of the public key in bytes"
}
},
"required": ["pk", "group", "keySize"],
"additionalProperties": false
},
"BlsSigVerifyTestVector": {
"type": "object",
"properties": {
"tcId": {
"type": "integer",
"description": "Identifier of the test case"
},
"comment": {
"type": "string",
"description": "A brief description of the test case"
},
"msg": {
"type": "string",
"format": "HexBytes",
"description": "The message that was signed"
},
"sig": {
"type": "string",
"format": "HexBytes",
"description": "The BLS signature in compressed form"
},
"result": {
"$ref": "common.json#/definitions/Result"
},
"flags": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of flags"
}
},
"additionalProperties": false,
"required": ["tcId", "comment", "msg", "sig", "result", "flags"]
}
},
"properties": {
"algorithm": {
"type": "string",
"description": "The primitive tested in the test file"
},
"header": {
"type": "array",
"items": {
"type": "string"
},
"description": "Additional documentation"
},
"notes": {
"$ref": "common.json#/definitions/Notes"
},
"numberOfTests": {
"type": "integer",
"description": "The number of test vectors in this test"
},
"schema": {
"enum": [
"bls_sig_verify_schema_v1.json"
]
},
"testGroups": {
"type": "array",
"items": {
"$ref": "#/definitions/BlsSigVerifyTestGroup"
}
}
},
"required": ["algorithm", "header", "notes", "numberOfTests", "schema", "testGroups"],
"additionalProperties": false
}
Loading