Skip to content

Commit bab0043

Browse files
authored
feat: retrieve current dkg key on the multisig account (#11)
1 parent 6bd113c commit bab0043

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/helper.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ export function processGetKeysResponse(response: ResponsePayload, keyType: Ironf
3333
nsk,
3434
}
3535
}
36+
37+
case IronfishKeys.DkgIdentity: {
38+
const identity = response.readBytes(IDENTITY_LEN)
39+
40+
return {
41+
identity,
42+
}
43+
}
3644
}
3745
}
3846

src/types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export interface IronfishIns extends INSGeneric {
1818
REVIEW_TX: 0x1c
1919
}
2020

21-
export type KeyResponse = ResponseAddress | ResponseViewKey | ResponseProofGenKey
21+
export type KeyResponse = ResponseAddress | ResponseViewKey | ResponseProofGenKey | ResponseIdentity
2222

2323
export interface ResponseAddress {
2424
publicAddress: Buffer
@@ -43,6 +43,7 @@ export enum IronfishKeys {
4343
PublicAddress = 0x00,
4444
ViewKey = 0x01,
4545
ProofGenerationKey = 0x02,
46+
DkgIdentity = 0x03,
4647
}
4748

4849
export interface ResponseIdentity {

0 commit comments

Comments
 (0)