### Question:
Bech32 { public static String addressDecodeHex(final String str) throws RuntimeException { byte[] bytes = addressDecode(str); return Numeric.toHexStringWithPrefixZeroPadded( Numeric.toBigInt(bytes),ADDRESS_LENGTH_IN_HEX); }  static String addressEncode(String hrp, String address); static byte[] addressDecode(final String str); static String addressDecodeHex(final String str);  }### Answer:
@Test public void addressDecodeHexOnTestNet() { String bech32Address = "lax1f7wp58h65lvphgw2hurl9sa943w0f7qc3dp390"; String hex = Bech32.addressDecodeHex(bech32Address); assertThat(hex, is("0x4f9c1a1efaa7d81ba1cabf07f2c3a5ac5cf4f818")); }
@Test public void addressDecodeHexOnMainNet() { String bech32Address = "lat1f7wp58h65lvphgw2hurl9sa943w0f7qc7gn7tq"; String hex = Bech32.addressDecodeHex(bech32Address); assertThat(hex, is("0x4f9c1a1efaa7d81ba1cabf07f2c3a5ac5cf4f818")); }