0xMiden / 0xMiden/air-script

Converting base field elements to extension filed elements in codegen

オープン
#170 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Rust
スター
96
フォーク
39
PR マージ指標
30日以内にマージされた PR はありません

説明

For auxiliary constraints using main trace columns we check if the trace_segment != 0 and convert base field to extension field elements:

```
if self.trace_segment() == 0 && self.trace_segment() != trace_segment {
format!("E::from({frame}_{row_offset})")
} else {
format!("{frame}_{row_offset}")
}
```

This requires us to pass `trace_segment` to the `to_string()` method. Ideally we should infer this using just `elem_type`.

_Originally proposed by @grjte in https://github.com/0xPolygonMiden/air-script/pull/169#discussion_r1115772148_

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。