aboutsummaryrefslogtreecommitdiff
path: root/doc/schema/inclusion_proof.schema.json
blob: 3309d37ed75ff09f30c544f62f66fa1c98d27ee1 (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": [ "tree_size", "leaf_index", "inclusion_proof" ],
	"properties": {
		"tree_size": {
			"description": "The Merkle tree size that the inclusion proof is based on.",
			"type": "integer",
			"minimum": 0
		},
		"leaf_index": {
			"description": "The zero-based index of the leaf that the inclusion proof is for.",
			"type": "integer",
			"minimum": 0
		},
		"inclusion_proof": {
			"description": "A list of base64-encoded node hashes that proves inclusion",
			"type": "array",
			"items": {
				"description": "A node hash in base64",
				"type": "string",
				"minLength": 44,
				"maxLength": 44
			}
		}
	}
}