{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$ref": "#/definitions/EscrowInitResponse",
    "definitions": {
        "EscrowInitResponse": {
            "type": "object",
            "properties": {
                "data": {
                    "type": "object",
                    "properties": {
                        "iteration": {
                            "type": "number",
                            "description": "Number of iterations for PBKDF2 key derivation function"
                        },
                        "salt": {
                            "type": "string",
                            "description": "Salt for the PBKDF2 key derivation function and SRP protocol",
                            "minLength": 1
                        },
                        "protocol": {
                            "$ref": "#/definitions/SRPProtocol",
                            "description": "How to encode the hashed password"
                        },
                        "b": {
                            "type": "string",
                            "description": "The servers's ephemeral public key",
                            "minLength": 1
                        },
                        "c": {
                            "type": "string",
                            "description": "Some kind of session ID",
                            "minLength": 1
                        }
                    },
                    "required": [
                        "iteration",
                        "salt",
                        "protocol",
                        "b",
                        "c"
                    ]
                }
            },
            "required": [
                "data"
            ],
            "description": "The expected response format for the escrow init request - holding the same SRP challenge as the signin init response"
        },
        "SRPProtocol": {
            "type": "string",
            "enum": [
                "s2k",
                "s2k_fo"
            ],
            "description": "Currently supported SRP password hashing protocols"
        }
    }
}
