Are there any brain wallet generators that can generate segwit (bc1) addresses yet?

  • You can do it with the bitcoinjs library. github.com/bitcoinjs/bitcoinjs-lib/blob/master/README.md
    – m1xolyd1an
    Nov 6, 2017 at 21:02
  • 1
    But is there an example code of how to generate this address using bech? Nov 6, 2017 at 21:27
  • isnt brain wallet unsafe to use? bitcoin.stackexchange.com/questions/8449/…
    – rny
    Nov 6, 2017 at 22:39
  • renlord, not all brain wallets are created equal.... warp wallets are more secure than traditional brain wallets. Nov 8, 2017 at 5:11
  • A Brainwallet with sufficient entropy, generated by a computer or other device with real randomness (not by a human) can be secure. However, they're still a terrible trade-off between risk of theft and risk of loss. Memory can be much more flaky than people believe it to be. May 20, 2018 at 1:24

4 Answers 4


Here's an example with bitcoinjs-lib:

let bitcoin = require('bitcoinjs-lib');
let assert = require('assert')
let bigi = require('bigi')

let NETWORK = bitcoin.networks.bitcoin;
let brainwallet = "This is my brain wallet and it is less secure than a CSPRNG source";
let hash = bitcoin.crypto.sha256(brainwallet);
let d = bigi.fromBuffer(hash);
let nkeyp = new bitcoin.ECPair(d);
let wif = nkeyp.toWIF();
let pubKey = nkeyp.getPublicKeyBuffer();
let scriptPubKey = bitcoin.script.witnessPubKeyHash.output.encode(bitcoin.crypto.hash160(pubKey))
let address = bitcoin.address.fromOutputScript(scriptPubKey);
  • i need to try it.
    – user10603
    Nov 6, 2018 at 4:49

Memory Paper Wallet has the ability to generate bc1 addresses from a brain wallet phrase.



You can create one here at


You can download offline file for more security.


You could try brain2bip.com

Checkmark "Advanced wallet recovery," then select the BIP84 tab to see a list of segwit addresses and their private keys.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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