public static String encodeBytes(Encoding encoding, String hrp, byte[] bytes) {
        return encode(encoding, hrp, Bech32Bytes.ofBytes(bytes));
    }
@Test
    @Parameters(method = "nip19Vectors")
    public void encodeBytes(String hex, String hrp, String expectedBech32) {
        String bech32 = Bech32.encodeBytes(Bech32.Encoding.BECH32, hrp, ByteUtils.parseHex(hex));
        assertEquals("incorrect encoding", expectedBech32, bech32);
    }