Skip to content

Commit

Permalink
update revocation state in the docs
Browse files Browse the repository at this point in the history
Signed-off-by: Berend Sliedrecht <sliedrecht@berend.io>
  • Loading branch information
Berend Sliedrecht committed Nov 23, 2023
1 parent 546daa2 commit 1dc7a62
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/services/prover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,7 @@ pub fn create_revocation_state_with_witness(
/// # Example
///
/// ```rust
/// use std::collections::BTreeSet;
/// use anoncreds::prover;
/// use anoncreds::issuer;
/// use anoncreds::types::CredentialDefinitionConfig;
Expand Down Expand Up @@ -621,6 +622,16 @@ pub fn create_revocation_state_with_witness(
/// Some(10)
/// ).expect("Unable to create revocation status list");
///
/// let rev_status_list =
/// issuer::update_revocation_status_list(&cred_def,
/// &rev_reg_def,
/// &rev_reg_def_priv,
/// &rev_status_list,
/// Some(BTreeSet::from([0])),
/// None,
/// None,
/// ).expect("Unable to update revocation status list");
///
/// let rev_state =
/// prover::create_or_update_revocation_state(&rev_reg_def.value.tails_location,
/// &rev_reg_def,
Expand Down

0 comments on commit 1dc7a62

Please sign in to comment.