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 Sep 20, 2024
1 parent d4d4dc4 commit 4159101
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 4159101

Please sign in to comment.