Comments (2)
After some thinking, we should not read data from register in the generate_trace
phase. generate_trace
is only used to re-format trace into stark way. So the proper way would be: We keep 16 register columns, we do read/write in constraint phase.
from olavm.
For register's consistency, we treat all columns as a set of row. Also refer from winterfell. From zk point of view, it just handles numbers, here, register(and memory also) is just a set of numbers.
So here comes question: do we need a register consistency constraint, just like a memory consistency constraint? For all register columns, constraints their initial state, transform correctness, and final state.
But for register, it has fixed numbers, perhaps we don't need to constraint it like memory, we constraint by all instructions, step by step.
So this is wrong:
At present, there is no constraint on the reading and writing of register
We did constraint register. The register's initial state is all 16 ZEROs, and each instruction changes register.
from olavm.
Related Issues (15)
- memory permutation constraint
- Custom serializer for Stark proofs
- Use squash merging as the pr merge strategy. HOT 1
- remove transpose in trace generation HOT 1
- Refactor readme doc
- thread 'main' panicked at assembler/src/encode.rs:263:18: not match opcode:{ HOT 4
- How to ensure that the program and the proof are bound together HOT 1
- Is there a simple walkthrough on how to use olavm? HOT 1
- Refactor code HOT 1
- testdata missing
- Request for Turkish Translation of README
- add rust-toolchain file HOT 1
- u64 vs GoldilocksField in vm
- more utils gates
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from olavm.