It was the Bitcointalk forum that inspired us to create Bitcointalksearch.org - Bitcointalk is an excellent site that should be the default page for anybody dealing in cryptocurrency, since it is a virtual gold-mine of data. However, our experience and user feedback led us create our site; Bitcointalk's search is slow, and difficult to get the results you need, because you need to log in first to find anything useful - furthermore, there are rate limiters for their search functionality.
The aim of our project is to create a faster website that yields more results and faster without having to create an account and eliminate the need to log in - your personal data, therefore, will never be in jeopardy since we are not asking for any of your data and you don't need to provide them to use our site with all of its capabilities.
We created this website with the sole purpose of users being able to search quickly and efficiently in the field of cryptocurrency so they will have access to the latest and most accurate information and thereby assisting the crypto-community at large.
public class Main {
final static byte[] BITCOIN_SEED_BYTES = "Bitcoin seed".getBytes();
final static byte[] SALT = "mnemonic".getBytes(StandardCharsets.UTF_8);
public static void main(String[] args) throws IOException, MnemonicException, InterruptedException {
String seedCode = "tissue deliver beauty rare kind midnight focus indicate forum lawn this setup";
byte[] seed = PBKDF2SHA512.derive(seedCode.getBytes(StandardCharsets.UTF_8), SALT, 2048, 64);
DeterministicKey deterministicKey = createMasterPrivateKey(seed, createHmacSha512Digest());
deterministicKey = HDKeyDerivation.deriveChildKey(deterministicKey, new ChildNumber(84, true));
deterministicKey = HDKeyDerivation.deriveChildKey(deterministicKey, new ChildNumber(0, true));
deterministicKey = HDKeyDerivation.deriveChildKey(deterministicKey, new ChildNumber(0, true));
deterministicKey = HDKeyDerivation.deriveChildKey(deterministicKey, new ChildNumber(0, false));
for (int i = 0; i <= 5; i++) {
System.out.println(Address.fromKey(MainNetParams.get(), HDKeyDerivation.deriveChildKey(deterministicKey, new ChildNumber(i, false)), Script.ScriptType.P2WPKH));
}
}
private static DeterministicKey createMasterPrivateKey(byte[] seed, HMac SHA512DIGEST) throws HDDerivationException {
byte[] i = hmacSha512(SHA512DIGEST, seed);
byte[] il = Arrays.copyOfRange(i, 0, 32);
byte[] ir = Arrays.copyOfRange(i, 32, 64);
Arrays.fill(i, (byte)0);
DeterministicKey masterPrivKey = HDKeyDerivation.createMasterPrivKeyFromBytes(il, ir);
Arrays.fill(il, (byte)0);
Arrays.fill(ir, (byte)0);
masterPrivKey.setCreationTimeSeconds(System.currentTimeMillis());
return masterPrivKey;
}
private static byte[] hmacSha512(HMac hmacSha512, byte[] input) {
hmacSha512.reset();
hmacSha512.update(input, 0, input.length);
byte[] out = new byte[64];
hmacSha512.doFinal(out, 0);
return out;
}
private static HMac createHmacSha512Digest() {
SHA512Digest digest = new SHA512Digest();
HMac hMac = new HMac(digest);
hMac.init(new KeyParameter(BITCOIN_SEED_BYTES));
return hMac;
}
}
KNOWN_POSITION
bc1q0u3r6fp8mctx45e75f6p4suzja68alcxkc4cje
12
tissue
deliver
beauty
rare
kind
midnight
focus
indicate
forum
lawn
this
?
m/84'/0'/0'/0/0
KNOWN_POSITION
bc1q0u3r6fp8mctx45e75f6p4suzja68alcxkc4cje
12
tissue
deliver
beauty
rare
kind
midnight
focus
indicate
forum
lawn
this
?
m/84'/0'/0'/0/0