Author Topic: Can you change the brain key?  (Read 1723 times)

0 Members and 1 Guest are viewing this topic.

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
OK, so the paper backup is just a print out of the public and private keys for an account.
phrased the aother way round: with those private keys you can access the account (owner) and it's funds (active)

Offline mike623317

  • Hero Member
  • *****
  • Posts: 637
    • View Profile
OK, so the paper backup is just a print out of the public and private keys for an account.

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
If you know how to use the javascript console, you can dump the private key for any of your public keys (permissions: owner/active/memo) by doing

Code: [Select]
WalletDb.getPrivateKey(PublicKey.fromPublicKeyString("BTS...")).toWif()

Offline mike623317

  • Hero Member
  • *****
  • Posts: 637
    • View Profile

Thanks for the replies, appreciate it.

One quick follow up. I've been trying to figure out how to do a paper backup of my new wallet since BM mentioned on a mumble that it can be done. Any idea how to do this, I don't seem to see where I can do this.

Thanks

Offline karnal

  • Hero Member
  • *****
  • Posts: 1068
    • View Profile
nop .. the brain key is used to derive your private key ..
you could in theory pick a brain key and get new accounts from that .. but since people are bad (and I mean really bad) at picking words at random .. you shouldn't dare trying ..

Assuming words don't have to be selected from a predetermined list ..

$ cat genbrainkey
Code: [Select]
#!/usr/bin/env bash

x=0
brainkey=""

while [ $x -lt 16 ]; do
  brainkey="$brainkey $(openssl rand -hex 4)"
  ((x++))
done

echo $brainkey

$ ./genbrainkey
75664cdb 309e2720 1a0aa305 1bf5aa3a 2990bbf1 b3004cf5 48dfe16e da454d88 ef7e1fd6 4398ddb2 ad7a4ef6 31c38e92 7a9ffa4a ca1610ae 2a227a6d 5e38c405

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
nop .. the brain key is used to derive your private key ..
you could in theory pick a brain key and get new accounts from that .. but since people are bad (and I mean really bad) at picking words at random .. you shouldn't dare trying ..

Offline mike623317

  • Hero Member
  • *****
  • Posts: 637
    • View Profile
Just wondering if it is possible to change the brain key phrase?

Thanks
M