Skip to content

Commit

Permalink
adds ledger backup to the end of round3
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 committed Sep 20, 2024
1 parent bb73123 commit 7139367
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 7139367

Please sign in to comment.