Skip to content

Commit

Permalink
adds ledger backup to the end of round3 (#5406)
Browse files Browse the repository at this point in the history
creates an encrypted backup and prints it to the terminal at the end of round3
of dkg
  • Loading branch information
hughy authored and patnir committed Sep 24, 2024
1 parent 9340b3f commit d8b81e5
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions ironfish-cli/src/commands/wallet/multisig/dkg/round3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,5 +224,20 @@ export class DkgRound3Command extends IronfishCommand {
this.log(
`Account ${response.content.name} imported with public address: ${dkgKeys.publicAddress}`,
)

this.log()
this.log('Creating an encrypted backup of multisig keys from your Ledger device...')
this.log()

const encryptedKeys = await ledger.dkgBackupKeys()

this.log()
this.log('Encrypted Ledger Multisig Backup:')
this.log(encryptedKeys.toString('hex'))
this.log()
this.log('Please save the encrypted keys show above.')
this.log(
'Use `ironfish wallet:multisig:ledger:restore` if you need to restore the keys to your Ledger.',
)
}
}

0 comments on commit d8b81e5

Please sign in to comment.