Skip to content

Commit

Permalink
feat: retrieve current dkg key on the multisig account
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelm41 committed Sep 23, 2024
1 parent 6bd113c commit fcd1b3a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ export function processGetKeysResponse(response: ResponsePayload, keyType: Ironf
nsk,
}
}

case IronfishKeys.DkgIdentity: {
const identity = response.readBytes(IDENTITY_LEN)

return {
identity,
}
}
}
}

Expand Down
3 changes: 2 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -43,6 +43,7 @@ export enum IronfishKeys {
PublicAddress = 0x00,
ViewKey = 0x01,
ProofGenerationKey = 0x02,
DkgIdentity = 0x03,
}

export interface ResponseIdentity {
Expand Down

0 comments on commit fcd1b3a

Please sign in to comment.