Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frontend marketplace #6

Merged
merged 12 commits into from
Jul 30, 2024
Merged

Frontend marketplace #6

merged 12 commits into from
Jul 30, 2024

Conversation

MSghais
Copy link
Contributor

@MSghais MSghais commented Jul 29, 2024

Draft PR to close #5

@AbdelStark

ETA for later today when I fix the last bug I hope.

WIP: STWO WASM Proof verification after receiving the Stark Proof.

Error encountered in the verification of the StarkProof and the run_verify_exemple I wrote.

Error: Proof generation failed: OodsNotMatching

Even looping with all StarkProof gives me this error. Maybe not a fetchEvent issue but a fib.verify(stark_proof) issue.

image

What I have now as an error:

image

Nostr Integration

[V] Install and set up the @rust-nostr/nostr-sdk package
[V] Initialize the Nostr client in the application
[V] Implement connection to Nostr relays
[] Handle Nostr client errors and connection status

NIP-90 Job Request Submission

[V] Implement the submitJob function to create and publish a NIP-90 Job Request event
[V] Use the correct event kind (5600) for Job Requests
[V] Include necessary tags (log_size, claim, output) in the Job Request event

Job Result Retrieval

[V] Implement the waitForJobResult function to listen for Job Result events
[V] Use the correct event kind (6600) for Job Results
[V] Parse the Job Result event content to extract the proof

STWO Proof Verification

[V] Integrate STWO WebAssembly module for proof verification
[X] Implement the verifyProof function using STWO WASM:
Verify error with every StarkProof on the Nostr relayer.
WIP using StarkProof as a string serialize, can't send it as an input on wasm_bindgen function.

[X] Handle the verification result and update the UI accordingly
Error: Proof generation failed: OodsNotMatching

UI Enhancements

[] Add error handling and display error messages to the user
[] Improve loading states and transitions between different stages of the process
[] Enhance the display of the proof and verification result

Additional Notes

[] Ensure proper error handling throughout the application
[] Consider implementing a more robust state management solution (e.g., React Context or Redux) as the application grows
[] Add unit tests for critical functions, especially those interacting with Nostr and STWO WASM
[] Document any configuration steps required for setting up the development environment

Copy link

vercel bot commented Jul 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
askeladd ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 30, 2024 0:05am

@AbdelStark AbdelStark merged commit 61a1042 into AbdelStark:main Jul 30, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: build Askeladd DVM marketplace frontend
2 participants