diff --git a/src/helper.ts b/src/helper.ts index 6d62780..d528d80 100644 --- a/src/helper.ts +++ b/src/helper.ts @@ -33,6 +33,14 @@ export function processGetKeysResponse(response: ResponsePayload, keyType: Ironf nsk, } } + + case IronfishKeys.DkgIdentity: { + const identity = response.readBytes(IDENTITY_LEN) + + return { + identity, + } + } } } diff --git a/src/types.ts b/src/types.ts index fa48120..78a7d6d 100644 --- a/src/types.ts +++ b/src/types.ts @@ -18,7 +18,7 @@ export interface IronfishIns extends INSGeneric { REVIEW_TX: 0x1c } -export type KeyResponse = ResponseAddress | ResponseViewKey | ResponseProofGenKey +export type KeyResponse = ResponseAddress | ResponseViewKey | ResponseProofGenKey | ResponseIdentity export interface ResponseAddress { publicAddress: Buffer @@ -43,6 +43,7 @@ export enum IronfishKeys { PublicAddress = 0x00, ViewKey = 0x01, ProofGenerationKey = 0x02, + DkgIdentity = 0x03, } export interface ResponseIdentity {