Skip to content

Commit

Permalink
v0.1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertoSvg committed Feb 19, 2024
1 parent fb93ab0 commit 95b359e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "zkryptium"
version = "0.1.8"
version = "0.1.9"
edition = "2021"
license = "Apache-2.0"
authors = ["LINKS Foundation"]
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ This library has been designed to expose cryptographic primitives, facilitating

```toml
[dependencies]
zkryptium = { version = "0.1.8", default-features = false, features = ["bbsplus"] }
zkryptium = { version = "0.1.9", default-features = false, features = ["bbsplus"] }
```

##### CL2003:
- see the **requirements** above

```toml
[dependencies]
zkryptium = { version = "0.1.8", default-features = false, features = ["cl03"] }
zkryptium = { version = "0.1.9", default-features = false, features = ["cl03"] }
```

### Examples
Expand Down
2 changes: 1 addition & 1 deletion src/utils/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

use digest::Digest;

use elliptic_curve::hash2curve::ExpandMsg;
use ff::Field;
use rand::RngCore;
Expand Down
10 changes: 1 addition & 9 deletions tests/bbsplus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ mod bbsplus_tests {
use bbsplus::ciphersuites::BbsCiphersuite;
use elliptic_curve::{hash2curve::ExpandMsg, group::Curve};
use schemes::algorithms::Scheme;
use zkryptium::{utils::message::BBSplusMessage, bbsplus::{self, generators::Generators, keys::{BBSplusSecretKey, BBSplusPublicKey}, signature::BBSplusSignature}, schemes::{self, algorithms::BBSplus}, schemes::{generics::{Signature, PoKSignature, ZKPoK, Commitment, BlindSignature}, algorithms::Ciphersuite}, keys::pair::KeyPair, utils::{util::bbsplus_utils::{hash_to_scalar_old, ScalarExt, calculate_random_scalars, get_messages}, message::Message}};
use zkryptium::{utils::message::BBSplusMessage, bbsplus::{self, generators::Generators, keys::{BBSplusSecretKey, BBSplusPublicKey}, signature::BBSplusSignature}, schemes::{self, algorithms::BBSplus}, schemes::generics::{Signature, PoKSignature, ZKPoK, Commitment, BlindSignature}, keys::pair::KeyPair, utils::{util::bbsplus_utils::{hash_to_scalar_old, ScalarExt, calculate_random_scalars, get_messages}, message::Message}};
use zkryptium::schemes::algorithms::{BBS_BLS12381_SHA256, BBS_BLS12381_SHAKE256};


Expand Down Expand Up @@ -876,14 +876,6 @@ mod bbsplus_tests {
}
}).collect();

let revealed_msgs_wrong: Vec<BBSplusMessage> = msgs_scalars.iter().enumerate().filter_map(|(i, m)| {
if !unrevealed_message_indexes.contains(&i) {
Some(*m)
} else {
None
}
}).collect();

let zkpok = ZKPoK::<BBSplus<S::Ciphersuite>>::generate_proof(&unrevealed_msgs, commitment.bbsPlusCommitment(), &generators, &unrevealed_message_indexes, &nonce);

let blind_signature = BlindSignature::<BBSplus<S::Ciphersuite>>::blind_sign(&revealed_msgs, commitment.bbsPlusCommitment(), &zkpok, sk, pk, Some(&generators), &revealed_message_indexes, &unrevealed_message_indexes, &nonce, Some(&header));
Expand Down

0 comments on commit 95b359e

Please sign in to comment.