Skip to content

Commit

Permalink
Remove ursa as (direct) depedency of indy-ledger-response-parser
Browse files Browse the repository at this point in the history
Signed-off-by: Miroslav Kovar <[email protected]>
  • Loading branch information
mirgee committed Aug 14, 2023
1 parent 7b4ce6a commit 49ef32c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion indy_ledger_response_parser/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ edition = "2021"
serde = { version = "1.0.163", features = ["derive"] }
serde_json = "1.0.96"
time = "=0.3.20"
ursa = { version = "0.3.7" }
indy-vdr = { git = "https://github.com/Patrik-Stas/indy-vdr.git", rev = "3cd499ad75", default-features = false, features = ["log"] }
thiserror = "1.0.44"
anoncreds-clsignatures = "0.2.0"
2 changes: 1 addition & 1 deletion indy_ledger_response_parser/src/domain/rev_reg.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use super::constants::{GET_REVOC_REG, GET_REVOC_REG_DELTA};

use anoncreds_clsignatures::RevocationRegistry;
use indy_vdr::ledger::{identifiers::RevocationRegistryId, requests::rev_reg::RevocationRegistryV1};
use ursa::cl::RevocationRegistry;

use super::response::{GetReplyResultV1, ReplyType};

Expand Down
5 changes: 2 additions & 3 deletions indy_ledger_response_parser/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ extern crate serde_json;
mod domain;
pub mod error;

use anoncreds_clsignatures::RevocationRegistryDelta as ClRevocationRegistryDelta;
pub use domain::author_agreement::GetTxnAuthorAgreementData;
use domain::author_agreement::GetTxnAuthorAgreementResult;
use error::LedgerResponseParserError;
Expand All @@ -22,8 +23,6 @@ use indy_vdr::{
utils::did::DidValue,
};
use serde::de::DeserializeOwned;
// TODO: Can we replace this to get rid of dependency on Ursa
use ursa::cl::RevocationRegistryDelta as UrsaRevocationDelta;

use crate::domain::{
cred_def::GetCredDefReplyResult,
Expand Down Expand Up @@ -219,7 +218,7 @@ impl ResponseParser {
};

let revoc_reg_delta = RevocationRegistryDeltaV1 {
value: serde_json::to_value(UrsaRevocationDelta::from_parts(
value: serde_json::to_value(ClRevocationRegistryDelta::from_parts(
revoc_reg.value.accum_from.map(|accum| accum.value).as_ref(),
&revoc_reg.value.accum_to.value,
&revoc_reg.value.issued,
Expand Down

0 comments on commit 49ef32c

Please sign in to comment.