<p>Bitcoin Core knows nothing of BIP39 seed phrases, since the developers never took those recommendations on board.</p>

CC BY-SA 4.0
2022-08-11T03:28:49.277Z
OP was asking about the bitcore JS library, not Bitcoin Core (though seems like they were confused about that themselves).
Pieter Wuille
CC BY-SA 4.0
2022-08-11T02:48:22.077Z
2022-08-11T02:48:22.077Z
HansBKK
<p>Look at <a href="https://github.com/libbitcoin/libbitcoin/wiki/Altcoin-Version-Mappings#7-bitcoin-btc-bip-3944-technology-examples" rel="nofollow noreferrer"><strong>Example 7</strong></a>.  There are also adjacent examples for other altcoins as well.</p>

CC BY-SA 3.0
2018-03-02T02:40:34.827Z
Thank you. I am developing in a Windows NodeJS environment using bitcoin-core. These examples look to be some kind of command line operation with "bx" which is not recognized as anything executable in my environment.
Corbin
CC BY-SA 3.0
2018-03-02T01:55:19.350Z
2018-03-02T01:55:19.350Z
skaht
<p>I'm able to generate a new private key and associated public addresses using bitcoin-core, but what I really want to do is generate a new private key from a 24 word seed phrase. I'm not sure how to go about this and I have not been able to find any examples.</p>

<p>BIP-39 Word list: </p>

<pre><code>https://github.com/bitcoin/bips/blob/master/bip-0039/english.txt
</code></pre>

<p>Current code:</p>

<pre><code>var bitcore=require("bitcore-lib");
var buffer=bitcore.crypto.Random.getRandomBuffer(256);
var hash=bitcore.crypto.Hash.sha256(buffer);
var bn=bitcore.crypto.BN.fromBuffer(hash);
var pk=new bitcore.PrivateKey(bn).toWIF();
var address=new bitcore.PrivateKey(bn).toAddress()+'';
</code></pre>

<p>If I understand correctly I will generate a hash from 24 randomly selected words (from the BIP-39 word list) then use that to generate a private key. What are the steps and format for hashing the seed phrase?</p>

CC BY-SA 3.0
2018-03-02T01:56:40.110Z
The 24 seed words **can't be** arbitrarily chosen. For examples for synthesizing seed words look at https://github.com/libbitcoin/libbitcoin-explorer/wiki/bx-mnemonic-new#example-1.
skaht
CC BY-SA 3.0
2018-03-02T02:40:53.107Z
Thank you. I am developing in a Windows NodeJS environment using bitcoin-core. These examples look to be some kind of command line operation with "bx" which is not recognized as anything executable in my environment.
Corbin
CC BY-SA 3.0
2018-03-02T03:38:03.313Z
At least you now have some test vector information when doing NodeJS work.
skaht
<private-key><hash><mnemonic-seed>
Generate private key from a bip-39 seed phrase?
Corbin
# Generate private key from a bip-39 seed phrase?

(Asked by: username_0 on 2018-03-02)

I'm able to generate a new private key and associated public addresses using bitcoin-core, but what I really want to do is generate a new private key from a 24 word seed phrase. I'm not sure how to go about this and I have not been able to find any examples.

BIP-39 Word list:

```
https://github.com/bitcoin/bips/blob/master/bip-0039/english.txt

```

Current code:

```
var bitcore=require("bitcore-lib");
var buffer=bitcore.crypto.Random.getRandomBuffer(256);
var hash=bitcore.crypto.Hash.sha256(buffer);
var bn=bitcore.crypto.BN.fromBuffer(hash);
var pk=new bitcore.PrivateKey(bn).toWIF();
var address=new bitcore.PrivateKey(bn).toAddress()+'';

```

If I understand correctly I will generate a hash from 24 randomly selected words (from the BIP-39 word list) then use that to generate a private key. What are the steps and format for hashing the seed phrase?

**Tags:** private-key, hash, mnemonic-seed

> **Comments:**
> **username_1**: The 24 seed words **can't be** arbitrarily chosen. For examples for synthesizing seed words look at https://github.com/libbitcoin/libbitcoin-explorer/wiki/bx-mnemonic-new#example-1.  
> **username_0**: Thank you. I am developing in a Windows NodeJS environment using bitcoin-core. These examples look to be some kind of command line operation with "bx" which is not recognized as anything executable in my environment.  
> **username_1**: At least you now have some test vector information when doing NodeJS work.  

---

## 2 answers

### Answer by username_2 on 2022-08-11. Score: 0

Bitcoin Core knows nothing of BIP39 seed phrases, since the developers never took those recommendations on board.

> **Comments:**
> **username_3**: OP was asking about the bitcore JS library, not Bitcoin Core (though seems like they were confused about that themselves).  

---

### Answer by username_1 on 2018-03-02. Score: -1

Look at [**Example 7**](https://github.com/libbitcoin/libbitcoin/wiki/Altcoin-Version-Mappings#7-bitcoin-btc-bip-3944-technology-examples). There are also adjacent examples for other altcoins as well.

> **Comments:**
> **username_0**: Thank you. I am developing in a Windows NodeJS environment using bitcoin-core. These examples look to be some kind of command line operation with "bx" which is not recognized as anything executable in my environment.  

---

