aboutsummaryrefslogtreecommitdiff
path: root/doc/schema/consistency_proof.schema.json
blob: 003f3c76ebd6c286d37f53f5a65816eb4b9ff6f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
	"$schema": "https://json-schema.org/draft-07/schema#",
	"title": "inclusion_proof",
	"description": "JSON-formatted inclusion proof, version 0.",

	"type": "object",
	"required": [ "new_size", "old_size", "consistency_proof" ],
	"properties": {
		"new_size": {
			"description": "The tree size of the newer Merkle tree head.",
			"type": "integer",
			"minimum": 0
		},
		"old_size": {
			"description": "The tree size of the older Merkle tree head.",
			"type": "integer",
			"minimum": 0
		},
		"consistency_proof": {
			"description": "A list of base64-encoded node hashes that proves consistency",
			"type": "array",
			"items": {
				"description": "A node hash in base64",
				"type": "string",
				"minLength": 44,
				"maxLength": 44
			}
		}
	}
}