Closed Eithcowich closed 5 years ago
@Eithcowich I don't get the same results as you.
address 1F5VhMHukdnUES9kfXqzPzMeF1GPHKiF64
public key 03e05ce435e462ec503143305feb6c00e06a3ad52fbf939e85c65f3a765bb7baac
private key WIF L1Knwj9W3qK3qMKdTvmg3VfzUs3ij2LETTFhxza9LfD5dngnoLG1
@dcousens Yes, the results I have in the question are from
const keyPair = bitcoin.ECPair.makeRandom();
Without the seed. When I use the zzzz... seed I get the same results you get.
But regardless, the privake key still doesn't start with a 5, and also seem to have one extra character.
What does the private key start with?
Just like in your comment above,
address 1F5VhMHukdnUES9kfXqzPzMeF1GPHKiF64
public key 03e05ce435e462ec503143305feb6c00e06a3ad52fbf939e85c65f3a765bb7baac
private key L1Knwj9W3qK3qMKdTvmg3VfzUs3ij2LETTFhxza9LfD5dngnoLG1
So the private key starts with L1Knwj
L and K are compressed keys.
5 is uncompressed, meaning higher fees.
you can also get lower fees by using segwit.
I need to create accounts for users. Looking at
bitcoinjs-lib
examples I came up with this code:My questions are:
bitcoinjs-lib
?