Skip to content

JSeam2/zkml-server

Repository files navigation

ZKML Server

Quickstart (WIP)

  1. Install EZKL It's not that straightforward
  2. Install python packages using pipenv
  3. Run the server python app.py

Endpoints

  • / [GET]

Description: Index page and liveness check

Returns

Extend your smart contracts with Gelkin

  • /upload/inputdata [POST]

Description Uploads the input.json into the server and stores as some uuid4

Params Provide file via inputdata as a form

Returns Json from server

{
    "file": "uuid4value.json"
}

  • /list/inputdata [GET]

Description Lists all the input data stored on the server

Returns Json from server

{
    "list": ["uuid4value.json", "uuid4value.json"]
}

  • /download/inputdata/<filename> [GET]

Description Downloads an input data file on the server

Returns input.json file


  • /upload/onnxmodel [POST]

Description Uploads the network.onnx into the server and stores as some uuid4

Params Provide file via onnxmodel as a form

Returns Json from server

{
    "file": "uuid4value.onnx"
}

  • /list/onnxmodel [GET]

Description Lists all the onnx model data stored on the server

Returns Json from server

{
    "list": ["uuid4value.onnx", "uuid4value.onnx"]
}

  • /download/onnxmodel/<filename> [GET]

Description Downloads an onnx model file on the server

Returns onnxmodel.onnx file


  • /run/initialize [POST, GET]

Description If POST, Sets the models and input to be used for the proof. If GET, returns the loaded models and inputdata

Params

{
    "inputdata": "uuid4value.json",
    "onnxmodel": "uuid4value.onnx"
}

Returns

{
    "inputdata": "path to uuid4value.json",
    "onnxmodel": "path to uuid4value.onnx"
}

About

Server for ZKML

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published