(this is a followup to https://github.com/bitcoinj/bitcoinj/issues/1312)

Great to hear you're working on segwit! It's much appreciated.

I would first invest some time to decide if a segwit address is actually
similar enough to a regular Bitcoin address to be implemented with the
same class. In theory, it could also be another subclass of
VersionedChecksummedBytes.

If your decision is you want a shared implementation for both types of
addresses (and your code seems to proove this), then I agree the
constant needs to go sooner or later. I would not worry too much about
backwards compatibility here, but marking it deprecated seems fine to me
for now too.


On 11/09/2016 03:28 PM, Jean-Pierre Rupp wrote:
> I have been working on segwit addresses on my fork of this code. I
> noticed that the |Address| class has a static property |LENGTH| that is
> set to 20. In order to work properly with segwit, the |LENGTH| property
> has to be set individually per address instance, or not at all. I for
> now left it at 20 and marked it |@Deprecated|. I would like to know if
> the property should instead be removed, even if it breaks backwards
> compatibility. My code is here
> <https://github.com/xenog/bitcoinj/tree/segwit>.

-- 
You received this message because you are subscribed to the Google Groups 
"bitcoinj" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to