BIP32
BIP32 copied to clipboard
WIP - BIP32 Java Microlibrary implementation
How to get private key with a length of 52 starting with K or L from extended private key?
https://github.com/NovaCrypto/BIP32/blob/440d5f224e55f45e90db769ce16db6a10370d1ce/src/test/java/io/github/novacrypto/bip32/ExtendedPrivateKeyEdgeCases.java#L40 Should be 1 in 2^127.
> In case IL is 0 or ≥n, the master key is invalid.
https://en.bitcoin.it/wiki/Wallet_import_format ``` String wif = privateKey.toWif() ```
Both: P2PKH https://en.bitcoin.it/wiki/Transaction#Pay-to-PubkeyHash and P2SH https://en.bitcoin.it/wiki/Pay_to_script_hash This is covered in BIP0016 and BIP0013, so will need to be own library. https://github.com/bitcoin/bips/blob/master/bip-0016.mediawiki https://github.com/bitcoin/bips/blob/master/bip-0013.mediawiki
Can also be useful for optimization
With custom exception