Comments (3)
I was under the impression that wasm targets do support std
, is that not possible here?
We haven't had any explicit requirement yet that risc0-zkp
or risc0-zkvm
works under no_std
, so this is a good data point that we can use to adjust our assumptions. It should be really easy to make verify run in no_std
but the prover would be much harder.
from risc0.
I know that this was not the original design. ink! smart contracts are compiled in no_std
environment and target wasm32-unknown-unknown
.
I have come across several problems while trying to verify the proof on-chain:
thiserror
dependency onstd
which was mentioned earlier- Since
0.16
therisc0-zkvm
causes the contract to compile with floating-point operations that are not supported and discouraged to be used on-chain. - Dowgrading to
0.15.3
solved the issue above, and allowed to deploy the contract on-chain. However, it failed to deserialise the slice intoSessionReceipt
usingfrom_slice()
(example) causing the function and the contract to panic (even though the function is expected returnResult
). I could not investigate the cause of this, but the same code worked instd
environment
I am very excited about this project and would love to see some support for ink! smart contracts. What I would ideally like to see is a no_std
lightweight crate for verifications of proofs with some functionality (or extension) allowing deserialisation.
from risc0.
Since 0.16 the risc0-zkvm causes the contract to compile with floating-point operations that are not supported and discouraged to be used on-chain.
I don't know of any reason floating-point would be used or related to version 0.16. Maybe there's some new dependency that makes this happen. Could you provide more context on how this is manifesting?
from risc0.
Related Issues (20)
- dev docs directory organization HOT 2
- [BUG] not able to install on x86_64-apple-darwin macOS HOT 3
- [Feature] guest support for secp256k1 HOT 3
- Investigate tools for checking semver violations HOT 4
- [Feature] Simple untrusted software arithmetic syscalls: SysUntrustedModInv, SysUntrustedModSqrt, SysUntrustedModPow HOT 4
- Unable to compile stark_verify circuit in any way on M2/DOCKER HOT 5
- Docker reproducible builds does not work for compiling C/C++ code HOT 1
- [BUG] Parsing Groth16 proofs from JSON is limited to 64 bits per public input HOT 3
- [Feature] CI: remove -p argument from `cargo clippy -p risc0-zkvm` for wider clippy coverage HOT 1
- [Feature] Expose a new function for FileSegmentRef HOT 2
- [Documentation] Provide high level explanation how GPU acceleration is used for proof generation HOT 1
- [BUG] Right-hand side of navbar isn't viewable on mobile HOT 2
- review/revise zkvm examples & use cases pages HOT 1
- [BUG] `yarn docusaurus docs:version $VERSION` command does not translate over sidebarsApi.js HOT 2
- [BUG] Arkworks not compatible with Risc-0 HOT 3
- Update guest toolchain to 1.75 HOT 1
- [Feature] Optional silence stark_to_snark docker output HOT 1
- [BUG] No such file or directory HOT 3
- [BUG] Cannot compile new starter-template HOT 3
- Question about quadratic extension in Goldilocks HOT 1
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 risc0.