Author Topic: A question about BitShares private key encryption  (Read 4717 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
I really wish we had a deterministic wallet. This is sure to get people burned, thinking the pass is all they need to remember.

You can if you manually specify the brain key when creating the wallet. It is an advanced feature for good reason IMO. If we had all the keys deterministically derived only from the wallet passphrase, then we would have other people get burned (as in have all of their funds stolen) because they selected a weak password.
Totally agree with arhag .. people nees to be educated to make backups and store them securely and redundant

Offline arhag

  • Hero Member
  • *****
  • Posts: 1214
    • View Profile
    • My posts on Steem
  • BitShares: arhag
  • GitHub: arhag
I really wish we had a deterministic wallet. This is sure to get people burned, thinking the pass is all they need to remember.

You can if you manually specify the brain key when creating the wallet. It is an advanced feature for good reason IMO. If we had all the keys deterministically derived only from the wallet passphrase, then we would have other people get burned (as in have all of their funds stolen) because they selected a weak password.

Offline bitmeat

  • Hero Member
  • *****
  • Posts: 1116
    • View Profile
I've been trying to decrypt a private key using the passphrase for some time now, but I've run into some problems. After reading the source code, I thought that the encryption is done using BIP38, but the key size isn't correct, so I'm assuming either another algorithm was used or maybe there were some added characters.

Does anyone know exactly which algorithm BitShares uses to encrypt private keys, and can you show me the full steps?

Thanks

I don't think you can extrapolate the key from the passphrase itself. I think the key is stored in the wallet file, but encrypted with the passphrase.

I really wish we had a deterministic wallet. This is sure to get people burned, thinking the pass is all they need to remember.

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
Afaik the key is AES encrypted .. i am sure you can find some easy to read code in the javascript implementation at https://github.com/bitshares/bitshares-js .. good luck

Offline dorant

  • Newbie
  • *
  • Posts: 5
    • View Profile
I've been trying to decrypt a private key using the passphrase for some time now, but I've run into some problems. After reading the source code, I thought that the encryption is done using BIP38, but the key size isn't correct, so I'm assuming either another algorithm was used or maybe there were some added characters.

Does anyone know exactly which algorithm BitShares uses to encrypt private keys, and can you show me the full steps?

Thanks