From: Matt Corallo Date: Thu, 19 Aug 2021 00:01:04 +0000 (+0000) Subject: Update auto-generated bindings to latest upstream X-Git-Tag: v0.0.101.1~2^2~1 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=d80ffbe9f9f82c3d5d06c94eea8ed774aabd3c34;p=ldk-c-bindings Update auto-generated bindings to latest upstream --- diff --git a/lightning-c-bindings/include/lightning.h b/lightning-c-bindings/include/lightning.h index ea3e972..9529ff7 100644 --- a/lightning-c-bindings/include/lightning.h +++ b/lightning-c-bindings/include/lightning.h @@ -18379,7 +18379,10 @@ MUST_USE_RES struct LDKShutdownScript ShutdownScript_new_p2wpkh(const uint8_t (* MUST_USE_RES struct LDKShutdownScript ShutdownScript_new_p2wsh(const uint8_t (*script_hash)[32]); /** - * Generates a P2WSH script pubkey from the given segwit version and program. + * Generates a witness script pubkey from the given segwit version and program. + * + * Note for version-zero witness scripts you must use [`ShutdownScript::new_p2wpkh`] or + * [`ShutdownScript::new_p2wsh`] instead. * * # Errors * diff --git a/lightning-c-bindings/src/lightning/ln/script.rs b/lightning-c-bindings/src/lightning/ln/script.rs index dcb49dd..9f74a41 100644 --- a/lightning-c-bindings/src/lightning/ln/script.rs +++ b/lightning-c-bindings/src/lightning/ln/script.rs @@ -207,7 +207,10 @@ pub extern "C" fn ShutdownScript_new_p2wsh(script_hash: *const [u8; 32]) -> Shut ShutdownScript { inner: ObjOps::heap_alloc(ret), is_owned: true } } -/// Generates a P2WSH script pubkey from the given segwit version and program. +/// Generates a witness script pubkey from the given segwit version and program. +/// +/// Note for version-zero witness scripts you must use [`ShutdownScript::new_p2wpkh`] or +/// [`ShutdownScript::new_p2wsh`] instead. /// /// # Errors ///