-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update state when verify done.
- Loading branch information
Showing
21 changed files
with
58 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
use serde::{Deserialize, Serialize}; | ||
|
||
use crate::entities::job::JobEntity; | ||
use crate::entities::sharp_proof::SharpProof; | ||
|
||
#[derive(Debug, Serialize, Deserialize)] | ||
pub struct PayloadVerifyJob { | ||
pub job: JobEntity, | ||
pub sharp_proof: SharpProof, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
use async_trait::async_trait; | ||
|
||
use crate::common::core_error::CoreError; | ||
use crate::entities::sharp_proof::SharpProof; | ||
use crate::entities::payload_verify_job::PayloadVerifyJob; | ||
use crate::entities::worker_job::WorkerJobEntity; | ||
|
||
#[async_trait] | ||
pub trait WorkerPort { | ||
async fn add(&self, job: WorkerJobEntity) -> Result<WorkerJobEntity, CoreError>; | ||
async fn verify_merkle(&self, job: SharpProof) -> Result<(), CoreError>; | ||
async fn verify_fri(&self, job: SharpProof) -> Result<(), CoreError>; | ||
async fn register_memory_page(&self, job: SharpProof) -> Result<(), CoreError>; | ||
async fn verify_proof_and_register(&self, job: SharpProof) -> Result<(), CoreError>; | ||
async fn verify_merkle(&self, job: PayloadVerifyJob) -> Result<(), CoreError>; | ||
async fn verify_fri(&self, job: PayloadVerifyJob) -> Result<(), CoreError>; | ||
async fn register_memory_page(&self, job: PayloadVerifyJob) -> Result<(), CoreError>; | ||
async fn verify_proof_and_register(&self, job: PayloadVerifyJob) -> Result<(), CoreError>; | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters