projects
/
ldk-c-bindings
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update auto-generated bindings
[ldk-c-bindings]
/
lightning-c-bindings
/
src
/
lightning
/
ln
/
script.rs
diff --git
a/lightning-c-bindings/src/lightning/ln/script.rs
b/lightning-c-bindings/src/lightning/ln/script.rs
index dcb49ddf51dddb80f54edee13e373c04e4cf86ec..73c90247ac61a5062fdebcf4b8a03381f9a15619 100644
(file)
--- a/
lightning-c-bindings/src/lightning/ln/script.rs
+++ b/
lightning-c-bindings/src/lightning/ln/script.rs
@@
-10,6
+10,7
@@
use std::str::FromStr;
use std::ffi::c_void;
use std::str::FromStr;
use std::ffi::c_void;
+use core::convert::Infallible;
use bitcoin::hashes::Hash;
use crate::c_types::*;
use bitcoin::hashes::Hash;
use crate::c_types::*;
@@
-207,7
+208,10
@@
pub extern "C" fn ShutdownScript_new_p2wsh(script_hash: *const [u8; 32]) -> Shut
ShutdownScript { inner: ObjOps::heap_alloc(ret), is_owned: true }
}
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
///
///
/// # Errors
///