2021-06-16 03:10:17 +02:00
|
|
|
{
|
2021-11-04 15:15:51 +01:00
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"verified"
|
|
|
|
],
|
|
|
|
"additionalProperties": true,
|
|
|
|
"properties": {
|
|
|
|
"verified": {
|
|
|
|
"type": "boolean",
|
|
|
|
"description": "Whether the signature was valid"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"allOf": [
|
|
|
|
{
|
|
|
|
"if": {
|
|
|
|
"properties": {
|
|
|
|
"verified": {
|
2021-06-16 03:10:17 +02:00
|
|
|
"type": "boolean",
|
2021-11-04 15:15:51 +01:00
|
|
|
"enum": [
|
|
|
|
true
|
|
|
|
]
|
|
|
|
}
|
2021-06-16 03:10:17 +02:00
|
|
|
}
|
2021-11-04 15:15:51 +01:00
|
|
|
},
|
|
|
|
"then": {
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"pubkey"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"verified": {},
|
|
|
|
"pubkey": {
|
|
|
|
"type": "pubkey",
|
|
|
|
"description": "the *pubkey* parameter, or the pubkey found by looking for known nodes"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-06-16 03:10:17 +02:00
|
|
|
},
|
2021-11-04 15:15:51 +01:00
|
|
|
{
|
|
|
|
"if": {
|
|
|
|
"properties": {
|
|
|
|
"verified": {
|
|
|
|
"type": "boolean",
|
|
|
|
"enum": [
|
|
|
|
false
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"then": {
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"pubkey"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"verified": {},
|
|
|
|
"pubkey": {
|
|
|
|
"type": "pubkey",
|
|
|
|
"description": "the *pubkey* (if any) which could have signed this; this is usually not useful!"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2021-06-16 03:10:17 +02:00
|
|
|
}
|