Skip to content

ESP Mining

PoT-O challenges are designed to be solvable by ESP32S and ESP8266 microcontrollers.

Device Constraints

DeviceMax Tensor DimsWorking MemorySupported Ops
ESP32 / ESP32S64x64320 KBmatrix_multiply, convolution, relu, sigmoid, dot_product, normalize
ESP826632x3280 KBrelu, sigmoid, dot_product, normalize

The challenge generator always respects the most restrictive registered device's limits, so ESP miners can participate in every round.

Setup (Future)

  1. Register device with the validator:

    bash
    curl -X POST https://pot.rpc.gateway.tribewarez.com/devices/register \
      -H "Content-Type: application/json" \
      -d '{"device_type": "esp32s"}'
  2. Flash firmware with WiFi credentials and the validator endpoint

  3. Device fetches challenges, computes proofs locally, and submits results

Arduino Sketch (Planned)

cpp
#include "pot_o_miner.h"

PotOMiner miner("your_miner_id", "pot.rpc.gateway.tribewarez.com", 8900);

void setup() {
    Serial.begin(115200);
    WiFi.begin("ssid", "password");
    miner.initialize();
}

void loop() {
    miner.mine_step();
    delay(100);
}

Extension Point

ESP device support is implemented via the DeviceProtocol trait. The ESP32SDevice and ESP8266Device implementations are stubbed with correct constraint constants. See Extension Points for details.

TribeWarez Blockchain Ecosystem