powdr-labs / powdr

A modular stack for zkVMs, with a focus on productivity, security and performance.
Apache License 2.0
416 stars 82 forks source link

Add support for constant column in STWO backend #2112

Open ShuangWu121 opened 1 week ago

ShuangWu121 commented 1 week ago

Add Support for Constant Columns in Stwo Backend

Stwo's recent development introduced new APIs to support constant/pre-processed columns. However, the dev branch of Stwo is still using an older nightly toolchain, which is incompatible with Powdr.

Currently, Stwo has two open PRs PR1, PR2 aimed at updating the toolchain to nightly 11-06. Previously, our Stwo backend dependency relied on one of these PRs' branches. However, this branch is no longer updated with the latest commits from their dev branch. These new commits are required to support constant columns.

Temporary Solution

To address this issue temporarily:


Tasks in this PR

  1. Add APIs to support constant columns:
  2. Update test cases:
    • Modify and add test cases to validate constant column support.