Bitcoin Forum

Bitcoin => BitcoinJ => Topic started by: vetal26 on June 18, 2018, 09:40:54 AM



Title: How to extend address header by two bytes?
Post by: vetal26 on June 18, 2018, 09:40:54 AM
Hello, is there are a quick way to extend addressHeader (https://github.com/bitcoinj/bitcoinj/blob/master/core/src/main/java/org/bitcoinj/core/NetworkParameters.java#L77) by two header bytes?
As I see there already is similar feature included in latest releases of bitcoin core source code (https://github.com/bitcoin/bitcoin/blob/master/src/chainparams.cpp#L140).

What I need is a direction for a way how to do it. Maybe bitcoinj community have suggestions where to look/what to change. It seems to me that bitcoinj requires a lot of source code modification for the way I want. Starting from VersionedChecksummedBytes class, Address class, ECKey class and more.