Comments (2)
You're very close; BIP32's specification says all public keys are in compressed format, meaning that's what is hashed. To create the WIF that indicates you want to use the compressed address, put '01' at the end! That's it; the WIF this yields is the right address as per brainwallet.
BitcoinLib::private_key_to_WIF(BIP32::import($master[0])['key'].'01', '6f')."\n";
I'll add an argument to that function and mention it around the documentation to clear this up.
from bitcoin-lib-php.
Now possible by specifying an argument:
bitcoin-lib-php/src/BitcoinLib.php
Line 351 in 20daa7a
from bitcoin-lib-php.
Related Issues (20)
- How to use createrawtransaction and set fees? HOT 18
- electrum HOT 1
- decode fails to read a vout HOT 2
- RawTransaction::decode will fail on version numbers that are not equal to 1.
- Support OP_RETURN transaction ?
- Unnecessary cast in toBTC()
- implement BIP173 - SegWit HOT 5
- Generating change address from publicKey Bip44, Bip43
- Function mcrypt_create_iv() is deprecated HOT 1
- Namespace Issue HOT 3
- Is it possible to create Segwit addresses? HOT 1
- Ignore - Delete
- other coins wallet
- Hire someone for make this library works to my altcoin HOT 4
- How i can list unspent transaction for any private key of address. HOT 5
- Electrum 2.0 xpub HOT 3
- parse error HOT 4
- installation problem HOT 2
- bits -> difficulty? HOT 2
- Feature Request: capability to derive all (used) wallet keys from public master key. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bitcoin-lib-php.