0

My app is able to create a public and private key from BIP39. The uncompressed private key is concatenated with a sha256 (private key) and then encrypted via AES and saved to a file. To decrypt, you will need to decrypt the entire file, then take a hash from the first order of bytes and compare with the second half.

I plan to add support for BIP32, 43, 44 and am already working on it, but I am faced with the issue of storing information for creating backup.

My way of creating a file is not suitable, so I’m wondering if there is a ready-made BIP to solve this problem.

1

There is a list of BIPs at https://github.com/bitcoin/bips

I don't see anything that specifies a wallet format.

To be honest I'd be surprised to see one. This is something that each implementation ought to determine for itself, Some wallets might use an embedded SQL DBMS, some a Berkely DB format, some a JSON store of some sort and so on. Similarly, the contents may depend on what unique features and facilities the wallet offers. Wallets might be multicurrency or even multiuser, they might have settings for GUI skins that need to be saved as part of a wallet backup, they might have IDs for associated exchange or other services.

  • I'd say there isn't even agreement on what a wallet is. To some it's a seed phrase, to some it's a private key, to some it's a website, to some it's a file (with just keys, or keys + transactions, or more). And that's ok. – Pieter Wuille Jul 25 at 22:59
  • Thanks! You calmed me, I can safely work myself. :) – Джон Смит Jul 26 at 3:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.