Skip to content

Commit

Permalink
Merge pull request #12 from credebl/did-method-indicio-bcovrin
Browse files Browse the repository at this point in the history
 Integrating Indicio Ledger, and Starting Bcovrin by Default
  • Loading branch information
ajile-in authored Aug 3, 2023
2 parents ff7894b + c3ad734 commit 8ae4954
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion src/cliAgent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ export async function runRestAgent(restConfig: AriesRestConfig) {
}
];
if (afjConfig?.indyLedgers?.includes("bcovrin") && afjConfig?.indyLedgers?.includes("indicio")) {
console.log("----", afjConfig?.indyLedgers);
networkConfig = [
{
id: randomUUID(),
Expand Down Expand Up @@ -130,6 +129,16 @@ export async function runRestAgent(restConfig: AriesRestConfig) {
connectOnStartup: true
}
];
} else {
networkConfig = [
{
id: randomUUID(),
genesisTransactions: BCOVRIN_TEST_GENESIS,
indyNamespace: 'bcovrin',
isProduction: false,
connectOnStartup: true
}
];
}

const agent = new Agent({
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/did/DidController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export class DidController extends Controller {
privateKeys: [
{
keyType: KeyType.Ed25519,
privateKey: TypedArrayEncoder.fromString(didOptions.seed),
privateKey: TypedArrayEncoder.fromString(didOptions.seed)
},
],
});
Expand Down

0 comments on commit 8ae4954

Please sign in to comment.