Skip to content

Commit

Permalink
Add support for fetching taa from ledger, getting current taa config
Browse files Browse the repository at this point in the history
Signed-off-by: Patrik Stas <[email protected]>
  • Loading branch information
Patrik-Stas committed Jul 31, 2023
1 parent a1b1e9a commit 8c80952
Show file tree
Hide file tree
Showing 6 changed files with 296 additions and 70 deletions.
4 changes: 3 additions & 1 deletion aries_vcx_core/src/ledger/base_ledger.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use std::fmt::Debug;

use async_trait::async_trait;
use serde::Serialize;

use crate::errors::error::VcxCoreResult;

Expand Down Expand Up @@ -61,9 +62,10 @@ pub trait AnoncredsLedgerWrite: Debug + Send + Sync {

pub trait TaaConfigurator: Debug + Send + Sync {
fn set_txn_author_agreement_options(&self, taa_options: TxnAuthrAgrmtOptions) -> VcxCoreResult<()>;
fn get_txn_author_agreement_options(&self) -> VcxCoreResult<Option<TxnAuthrAgrmtOptions>>;
}

#[derive(Clone)]
#[derive(Clone, Serialize)]
pub struct TxnAuthrAgrmtOptions {
pub text: String,
pub version: String,
Expand Down
Loading

0 comments on commit 8c80952

Please sign in to comment.