novacrypto / bip32 Goto Github PK
View Code? Open in Web Editor NEWWIP - BIP32 Java Microlibrary implementation
Home Page: https://novacrypto.github.io/BIP32
License: GNU General Public License v3.0
WIP - BIP32 Java Microlibrary implementation
Home Page: https://novacrypto.github.io/BIP32
License: GNU General Public License v3.0
In usage, it has become clear that the lack of "Extended" is both a little confusing and clashes with some java classes called "PrivateKey
" and "PublicKey
".
In case IL is 0 or âĽn, the master key is invalid.
Be nice to not have split
here.
T derive(final T startAt, final String derivationPath) {
final String[] split = derivationPath.split("/");
T current = startAt;
for (int i = 1; i < split.length; i++)
current = visitor.visit(current, toIndex(split[i]));
return current;
}
It's too common a requirement and too messy to be passing around byte arrays.
Hello,
can we create zcash (ZEC) address?
Because zcash has "0x1CB8"
Regards
https://en.bitcoin.it/wiki/Wallet_import_format
String wif = privateKey.toWif()
Need:
PrivateKey.fromByteArray
PublicKey.fromByteArray
Extended keys sometimes come as xpubs even though they are not bitcoin. Currently, the only clean way to coerce the network is to only supply that network to the deserializer, or supply a custom network that has bitcoin's getPublicVersion
/getPrivateVersion
.
So I want to be able to coerce like so:
newPublicKey = extendedPublicKey.toNetwork(myNetwork)
newPrivateKey = extendedPrivateKey.toNetwork(myNetwork)
Should be 1 in 2^127.
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
How to get private key with a length of 52 starting with K or L from extended private key?
In case parse256(IL) ⼠n or ki = 0, the resulting key is invalid, and one should proceed with the next value for i. (Note: this has probability lower than 1 in 2127.)
With custom exception
Can also be useful for optimization
A declarative, efficient, and flexible JavaScript library for building user interfaces.
đ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. đđđ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google â¤ď¸ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.