factom-vote
Version:
JS implementation of the Factom voting specification
32 lines • 697 B
JSON
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Factom on-chain vote schema",
"type": "object",
"additionalProperties": false,
"required": [
"vote",
"secret",
"hmacAlgo"
],
"properties": {
"vote": {
"type": "array",
"uniqueItems": true,
"items": {
"type": "string"
}
},
"secret": {
"type": "string",
"pattern": "^[0-9a-f]*$",
"minLength": 32
},
"hmacAlgo": {
"enum": [
"sha1",
"sha256",
"sha512"
]
}
}
}