Skip to content

Commit

Permalink
Merge pull request #16 from credebl/agent-status
Browse files Browse the repository at this point in the history
Get agent status if running or not
  • Loading branch information
tipusinghaw authored Aug 21, 2023
2 parents 72d2c1f + 6c3dcdf commit 0810a9c
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/controllers/agent/AgentController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,11 @@ export class AgentController extends Controller {
*/
@Get('/')
public async getAgentInfo(): Promise<AgentInfo> {
const did = '2XKsaGBrgRoAqNcSycUvKK';
const publicDid = await this.agent.dids.import({
did: `did:indy:bcovrin:${did}`,
privateKeys: [
{
keyType: KeyType.Ed25519,
privateKey: TypedArrayEncoder.fromString('testseed000000000000001100000001'),
}
],
overwrite: true
})
return {
label: this.agent.config.label,
endpoints: this.agent.config.endpoints,
isInitialized: this.agent.isInitialized,
publicDid
publicDid: undefined
}
}
}

0 comments on commit 0810a9c

Please sign in to comment.