0xMiden / 0xMiden/air-script

Converting base field elements to extension filed elements in codegen

未關閉
#170 0 則留言 0 個 reaction 已指派 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 摘要。