You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement the remaining elements of the Askeladd DVM marketplace frontend, including Nostr integration, NIP-90 Job Request submission, Job Result retrieval, and STWO proof verification using WebAssembly.
Tasks
Nostr Integration
Install and set up the @rust-nostr/nostr-sdk package
Initialize the Nostr client in the application
Implement connection to Nostr relays
Handle Nostr client errors and connection status
NIP-90 Job Request Submission
Implement the submitJob function to create and publish a NIP-90 Job Request event
Use the correct event kind (5600) for Job Requests
Include necessary tags (log_size, claim, output) in the Job Request event
Job Result Retrieval
Implement the waitForJobResult function to listen for Job Result events
Use the correct event kind (6600) for Job Results
Parse the Job Result event content to extract the proof
STWO Proof Verification
Integrate STWO WebAssembly module for proof verification
Implement the verifyProof function using STWO WASM
Handle the verification result and update the UI accordingly
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
Implementation Details
Nostr Integration
Use the @rust-nostr/nostr-sdk package to connect to Nostr relays and interact with the Nostr network. Example usage:
Description
Implement the remaining elements of the Askeladd DVM marketplace frontend, including Nostr integration, NIP-90 Job Request submission, Job Result retrieval, and STWO proof verification using WebAssembly.
Tasks
Nostr Integration
@rust-nostr/nostr-sdk
packageNIP-90 Job Request Submission
submitJob
function to create and publish a NIP-90 Job Request eventJob Result Retrieval
waitForJobResult
function to listen for Job Result eventsSTWO Proof Verification
verifyProof
function using STWO WASMUI Enhancements
Implementation Details
Nostr Integration
Use the
@rust-nostr/nostr-sdk
package to connect to Nostr relays and interact with the Nostr network. Example usage:See more examples here.
NIP-90 Job Request Submission
Implement the Job Request submission using the Nostr SDK:
Job Result Retrieval
Listen for Job Result events:
STWO Proof Verification
Integrate STWO WASM for proof verification. Reference the STWO WASM demo for implementation details:
STWO WASM Demo
Additional Notes
Resources
The text was updated successfully, but these errors were encountered: