Skip to content

Commit

Permalink
dev note on multi ledger
Browse files Browse the repository at this point in the history
Signed-off-by: George Mulhearn <[email protected]>
  • Loading branch information
gmulhearn-anonyome committed Dec 11, 2024
1 parent e48f23b commit 3cd9e86
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions aries/aries_vcx_ledger/src/ledger/multi_ledger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ use serde_json::Value;
use super::base_ledger::{AnoncredsLedgerRead, AnoncredsLedgerSupport};
use crate::errors::error::{VcxLedgerError, VcxLedgerResult};

// FUTURE - this multi-ledger anoncreds reader finds the first impl that supports the identifier
// and attempts to use it. This behaviour may need some enhancements in the future when
// considering coordination of unqualified object resolution, when multiple capable anoncreds
// readers are available (e.g. sovrin testnet & sovrin mainnet).
// Enhancements may include:
// * priority system - try A resolver before B if A & B both support the identifier
// * fallback/chain system - try A resolver, if it fails, try B resolver
// Alternatively these enhancements can be skipped if qualified DIDs/objects are used instead,
// e.g. did:indy:a:123, did:indy:b:123

/// Struct to aggregate multiple [AnoncredsLedgerRead] implementations into a single
/// [AnoncredsLedgerRead]. The child [AnoncredsLedgerRead] implementations are
/// utilized depending on whether or not they support resolution of the given object ID
Expand Down

0 comments on commit 3cd9e86

Please sign in to comment.