forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[zk-token-sdk] Restructure proof error types (solana-labs#28407)
* add pubkey sigma proof * cargo fmt * add EncryptionError * add encryption errors
- Loading branch information
1 parent
9808a8e
commit dc68283
Showing
5 changed files
with
25 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
//! Errors related to the twisted ElGamal encryption scheme. | ||
use thiserror::Error; | ||
|
||
#[derive(Error, Clone, Debug, Eq, PartialEq)] | ||
pub enum EncryptionError { | ||
#[error("discrete log number of threads not power-of-two")] | ||
DiscreteLogThreads, | ||
#[error("discrete log batch size too large")] | ||
DiscreteLogBatchSize, | ||
} |
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 |
---|---|---|
|
@@ -13,4 +13,5 @@ | |
pub mod auth_encryption; | ||
pub mod discrete_log; | ||
pub mod elgamal; | ||
pub mod errors; | ||
pub mod pedersen; |
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