Skip to content

Commit

Permalink
feat: make ui review for get identity optional
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelm41 committed Sep 23, 2024
1 parent bab0043 commit 0023801
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,12 @@ export default class IronfishApp extends GenericApp {
}
}

async dkgGetIdentity(index: number): Promise<ResponseIdentity> {
async dkgGetIdentity(index: number, showInDevice: boolean): Promise<ResponseIdentity> {
let req = Buffer.alloc(1)
req.writeUint8(index)

const response = await this.transport.send(this.CLA, this.INS.DKG_IDENTITY, 0, 0, req, [LedgerError.NoErrors])
const p1 = showInDevice ? 1 : 0
const response = await this.transport.send(this.CLA, this.INS.DKG_IDENTITY, p1, 0, req, [LedgerError.NoErrors])
const data = processResponse(response)
return processGetIdentityResponse(data)
}
Expand Down

0 comments on commit 0023801

Please sign in to comment.