From 04257322368905ab18c881a8d07b0cfdae4cdd9e Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Sun, 12 May 2024 14:47:13 +0000 Subject: [PATCH] Map the new `LDKTweakedPublicKey` as a 32-byte array --- genbindings.py | 5 +++++ 1 file changed, 5 insertions(+) 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:]) -- 2.39.5