Skip to content

Commit f3981cd

Browse files
committed
feat: add flag to show data in review for get keys
1 parent 8b5eed3 commit f3981cd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,9 @@ export default class IronfishApp extends GenericApp {
233233
throw processErrorResponse(e)
234234
}
235235
}
236-
async dkgRetrieveKeys(keyType: IronfishKeys): Promise<KeyResponse> {
237-
const response = await this.transport.send(this.CLA, this.INS.DKG_GET_KEYS, 0, keyType, Buffer.alloc(0), [LedgerError.NoErrors])
236+
async dkgRetrieveKeys(keyType: IronfishKeys, showInDevice?: boolean): Promise<KeyResponse> {
237+
const p1 = showInDevice ? 1 : 0
238+
const response = await this.transport.send(this.CLA, this.INS.DKG_GET_KEYS, p1, keyType, Buffer.alloc(0), [LedgerError.NoErrors])
238239
const data = processResponse(response)
239240
return processGetKeysResponse(data, keyType)
240241
}

0 commit comments

Comments
 (0)