Skip to content

Commit

Permalink
feat: add zeroize as a feature (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
berendsliedrecht committed Sep 15, 2023
1 parent f938a36 commit 62912bc
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ crate-type = ["staticlib", "rlib", "cdylib"]

[features]
default = ["ffi", "logger", "zeroize"]
ffi = ["ffi-support"]
logger = ["env_logger"]
ffi = ["dep:ffi-support"]
zeroize = ["dep:zeroize"]
logger = ["dep:env_logger"]
vendored = ["anoncreds-clsignatures/openssl_vendored"]

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion MAINTAINERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
| Name | Github | LFID |
| ---------------- | ---------------- | ---------------- |
| Andrew Whitehead | andrewwhitehead | cywolf |
| Berend Sliedrecht| blu3beri | beri14 |
| Berend Sliedrecht| berendsliedrecht | beri14 |
| Darko Kulic | dkulic | dkulic |
| Stephen Curran | swcurran | swcurran |
| Timo Glastra | TimoGlastra | TimoGlastra |
Expand Down
2 changes: 1 addition & 1 deletion src/ffi/credential.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ use super::util::FfiStrList;
use crate::data_types::link_secret::LinkSecret;
use crate::error::Result;
use crate::services::{
helpers::encode_credential_attribute,
issuer::create_credential,
prover::process_credential,
types::{Credential, CredentialRevocationConfig, MakeCredentialValues},
utils::encode_credential_attribute,
};
use crate::Error;

Expand Down
7 changes: 1 addition & 6 deletions src/services/mod.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
mod helpers;

pub(crate) mod helpers;
pub mod issuer;
pub mod prover;
pub mod tails;
pub mod types;
pub mod verifier;

pub mod utils {
pub use super::helpers::encode_credential_attribute;
}
2 changes: 2 additions & 0 deletions tests/multiple-credentials.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@ fn test_requests_generate<'a>() -> Vec<ReqInput<'a>> {

#[test]
fn anoncreds_with_multiple_credentials_per_request() {
#[cfg(feature = "logger")]
env_logger::init();

let mut mock = utils::Mock::new(&[ISSUER_ID], &[PROVER_ID], TF_PATH, MAX_CRED_NUM);

let issuer1_creds = create_issuer_data();
Expand Down

0 comments on commit 62912bc

Please sign in to comment.