-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: lovesh <[email protected]>
- Loading branch information
Showing
14 changed files
with
953 additions
and
39 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
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,31 @@ | ||
[package] | ||
name = "syra" | ||
version = "0.1.0" | ||
edition.workspace = true | ||
authors.workspace = true | ||
license.workspace = true | ||
repository.workspace = true | ||
description = "SyRA: Sybil-Resilient Anonymous Signatures with Applications to Decentralized Identity" | ||
|
||
[dependencies] | ||
ark-serialize.workspace = true | ||
ark-ff.workspace = true | ||
ark-ec.workspace = true | ||
ark-std.workspace = true | ||
digest.workspace = true | ||
rayon = {workspace = true, optional = true} | ||
serde.workspace = true | ||
serde_with.workspace = true | ||
zeroize.workspace = true | ||
dock_crypto_utils = { version = "0.20.0", default-features = false, path = "../utils" } | ||
schnorr_pok = { version = "0.20.0", default-features = false, path = "../schnorr_pok" } | ||
|
||
[dev-dependencies] | ||
blake2.workspace = true | ||
ark-bls12-381.workspace = true | ||
|
||
[features] | ||
default = [ "parallel" ] | ||
std = [ "ark-ff/std", "ark-ec/std", "ark-std/std", "ark-serialize/std", "dock_crypto_utils/std", "schnorr_pok/std", "serde/std"] | ||
print-trace = [ "ark-std/print-trace", "dock_crypto_utils/print-trace" ] | ||
parallel = [ "std", "ark-ff/parallel", "ark-ec/parallel", "ark-std/parallel", "rayon", "dock_crypto_utils/parallel", "schnorr_pok/parallel" ] |
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,7 @@ | ||
<!-- cargo-rdme start --> | ||
|
||
Implements the protocol from the paper [SyRA: Sybil-Resilient Anonymous Signatures with Applications to Decentralized Identity](https://eprint.iacr.org/2024/379) | ||
|
||
This will be used to generate pseudonym for low-entropy user attributes. The issuer will create "signature" for a unique user attribute and user uses this "signature" to create the pseudonym. | ||
|
||
<!-- cargo-rdme end --> |
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,13 @@ | ||
use ark_serialize::SerializationError; | ||
|
||
#[derive(Debug)] | ||
pub enum SyraError { | ||
InvalidProof, | ||
Serialization(SerializationError), | ||
} | ||
|
||
impl From<SerializationError> for SyraError { | ||
fn from(e: SerializationError) -> Self { | ||
Self::Serialization(e) | ||
} | ||
} |
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,11 @@ | ||
#![cfg_attr(not(feature = "std"), no_std)] | ||
#![allow(non_snake_case)] | ||
|
||
//! Implements the protocol from the paper [SyRA: Sybil-Resilient Anonymous Signatures with Applications to Decentralized Identity](https://eprint.iacr.org/2024/379) | ||
//! | ||
//! This will be used to generate pseudonym for low-entropy user attributes. The issuer will create "signature" for a unique user attribute and user uses this "signature" to create the pseudonym. | ||
mod error; | ||
pub mod pseudonym; | ||
pub mod setup; | ||
pub mod vrf; |
Oops, something went wrong.