Commit graph

6 commits

Author SHA1 Message Date
Andreas Schildbach
538833c906 ByteUtils: rename maxBytes parameter of bigIntegerToBytes()
It's a maximum allowed size rather than a constant size. The
`maxBytes` name makes this clearer.
2025-03-09 21:17:01 +01:00
Sean Gilligan
5edb96cbb8 Bech32: use ByteUtils.concat() in verifyChecksum() 2025-02-25 23:28:45 +01:00
Sean Gilligan
96835143db Bech32: make private verifyChecksum() throw on invalid checksum
This eliminates the last @Nullable annotation in the `base` module.

Since this is a private method and is called for every address
that is parsed, let's not use Optional<>, but move the throw from
decode() to verifyChecksum().
2025-02-25 23:23:18 +01:00
Johannes Zweng
cd922bb839 SegwitAddress: allow instantiation of P2A (pay-to-anchor) address 2024-12-15 15:18:55 +01:00
Andreas Schildbach
c43ef27167 base, core: remove all references to java.util.Date
This also removes deprecated members.
2024-09-02 13:16:54 +02:00
Sean Gilligan
34627259df base: move base Java package to base module 2024-09-02 03:54:17 +02:00