Skip to content

Commit

Permalink
Implement BBS+ PoK of Signatures (#3)
Browse files Browse the repository at this point in the history
* Split crypto.rs into multiple files

* PoK of Signatures for BBS+
  • Loading branch information
lebedenko-ubique authored Oct 3, 2024
1 parent b0570a0 commit 9af074f
Show file tree
Hide file tree
Showing 10 changed files with 634 additions and 300 deletions.
25 changes: 25 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions next-gen-signatures/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ bbs_plus = { version = "0.22.0", optional = true }
blake2 = { version = "0.10.6", optional = true }
num-bigint = { version = "0.4.6", optional = true }
rand = { version = "0.8.5", optional = true }
ark-std = "0.4.0"
dock_crypto_utils = "0.20.0"
schnorr_pok = "0.20.0"
9 changes: 2 additions & 7 deletions next-gen-signatures/src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,8 @@ pub trait CryptoProvider {
fn sk_into_bytes(sk: Self::SecretKey) -> Result<ByteArray>;
fn sk_from_bytes(bytes: ByteArray) -> Result<Self::SecretKey>;

fn sign(sk: &Self::SecretKey, msg: ByteArray, params: Self::SignParams) -> Result<ByteArray>;
fn verify(
pk: Self::PublicKey,
msg: ByteArray,
sig: ByteArray,
params: Self::VerifyParams,
) -> Result<bool>;
fn sign(sk: &Self::SecretKey, params: Self::SignParams) -> Result<ByteArray>;
fn verify(pk: Self::PublicKey, sig: ByteArray, params: Self::VerifyParams) -> Result<bool>;
}

#[derive(Debug)]
Expand Down
276 changes: 0 additions & 276 deletions next-gen-signatures/src/crypto.rs

This file was deleted.

Loading

0 comments on commit 9af074f

Please sign in to comment.