From: Matt Corallo Date: Sun, 12 May 2024 14:47:13 +0000 (+0000) Subject: Map the new `LDKTweakedPublicKey` as a 32-byte array X-Git-Tag: v0.0.123.0^2~11 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=04257322368905ab18c881a8d07b0cfdae4cdd9e;p=ldk-java Map the new `LDKTweakedPublicKey` as a 32-byte array --- diff --git a/genbindings.py b/genbindings.py index b92d17ef..9ae48c4e 100755 --- a/genbindings.py +++ b/genbindings.py @@ -165,6 +165,11 @@ def java_c_types(fn_arg, ret_arr_len): assert var_is_arr_regex.match(fn_arg[8:]) rust_obj = "LDKPublicKey" arr_access = "compressed_form" + elif fn_arg.startswith("LDKTweakedPublicKey"): + fn_arg = "uint8_t (*" + fn_arg[21:] + ")[32]" + assert var_is_arr_regex.match(fn_arg[8:]) + rust_obj = "LDKTweakedPublicKey" + arr_access = "x_coordinate" elif fn_arg.startswith("LDKSecretKey"): fn_arg = "uint8_t (*" + fn_arg[13:] + ")[32]" assert var_is_arr_regex.match(fn_arg[8:])