Skip to content

Specification: Aleph message format for output generated by a VM #4

Open
@hoh

Description

@hoh

This issue discusses the specification of the Aleph messages that are generated by nodes after running code in virtual machines.

The example below contains two kinds of outputs: output is a list of every output produced sent by the function, and export refers to a file stored in Aleph that contains an archive with files created by the function in a specified directory.

The scope contains the call parameters in the format expected by the ASGI interface.

{
  "type": "vm-output",
  "address": "0x99eC8dc3831F67359a18420449fb028D5dCAa60f",
  "content": {
    "vm-function": {
      "item_hash": "ae5bfc5b1b254579548da14301ee428562b2765625da5ea361f9504713ea5d08",
      "address": "0x99eC8dc3831F67359a18420449fb028D5dCAa60f"
    },
    "data": {
      "item_hash": "ae5bfc5b1b254579548da14301ee428562b2765625da5ea361f9504713ea5d08",
      "address": "0xED9d5B040386F394B9ABd34fD59152756b126710"
    },
    "scope": {
      "type": "http",
      "path": "/index.html",
      "method": "GET",
      "query_string": "",
      "headers": []
    },
    "output": [{
      "field1": "value1",
      "field2": "value2",
    }],
    "export": {
      "item_hash": "3a7a09124a605eee2601c122d323f89f885e78186d5340a30e82cd23a88b7e39"
    }
  },
  "time": 1618386753.856,
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions