DeepWorm Docs
  • About DeepWorm
  • How does DeepWorm work?
  • Getting Started
    • The Nematoduino Model
    • Marlin's TEE network
  • THE WORM'S LIFECYCLE
    • v0. Autonomous Mobility
    • v1. Onchain Verifiability
  • DEVELOPER GUIDES
    • Building an app using the WORM
    • Deploying the WORM in a TEE
    • Requesting an attestation
    • Verifying attestations
  • RESOURCES
    • API Reference
    • Contracts & IP Addresses
    • Disclaimers
Powered by GitBook
On this page
  1. RESOURCES

API Reference

Understanding the worm brain may (or may not) unlock numerous possibilities

Refer to the Contracts and IP Addresses section to query the right resources

Worm Contract

Method
Description

getWormState

Returns the state values of the left and right muscles

trigger

Externally trigger chemotaxis and noseTouch on the worm

lastUpdatedTimestamp

Returns the number of the block when the worm's start was last updated

lastTriggeredTimestamp

Returns the number of the block when the trigger method was last called

enclave

Returns the key last registered by an attested enclave hosting the worm brain

pcrs

Returns the PCR values that enclaves must have to be considered valid

TEE Endpoints

Method
Description

/set?address=<address>

One-shot endpoint to set the worm's contract address at the start

/leftmuscle

Left muscle value

/rightmuscle

Right muscle value

/state?id=<N>

State of the Nth neuron

PreviousVerifying attestationsNextContracts & IP Addresses

Last updated 5 months ago