mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-25 07:17:40 +01:00
[bindings] Expose secp256k1::Message as ThirtyTwoBytes
This commit is contained in:
parent
c6d2697703
commit
bec92d3eaa
1 changed files with 3 additions and 0 deletions
|
@ -414,6 +414,7 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
|
|||
"bitcoin::hash_types::Txid" if !is_ref => Some("crate::c_types::ThirtyTwoBytes"),
|
||||
"bitcoin::hash_types::BlockHash" if is_ref => Some("*const [u8; 32]"),
|
||||
"bitcoin::hash_types::BlockHash" if !is_ref => Some("crate::c_types::ThirtyTwoBytes"),
|
||||
"bitcoin::secp256k1::Message" if !is_ref => Some("crate::c_types::ThirtyTwoBytes"),
|
||||
"ln::channelmanager::PaymentHash" if is_ref => Some("*const [u8; 32]"),
|
||||
"ln::channelmanager::PaymentHash" if !is_ref => Some("crate::c_types::ThirtyTwoBytes"),
|
||||
"ln::channelmanager::PaymentPreimage" if is_ref => Some("*const [u8; 32]"),
|
||||
|
@ -624,6 +625,7 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
|
|||
"bitcoin::hash_types::Txid" if is_ref => Some(""),
|
||||
"bitcoin::hash_types::BlockHash" if is_ref => Some(""),
|
||||
"bitcoin::hash_types::BlockHash" => Some("crate::c_types::ThirtyTwoBytes { data: "),
|
||||
"bitcoin::secp256k1::Message" if !is_ref => Some("crate::c_types::ThirtyTwoBytes { data: "),
|
||||
"ln::channelmanager::PaymentHash" if is_ref => Some("&"),
|
||||
"ln::channelmanager::PaymentHash" if !is_ref => Some("crate::c_types::ThirtyTwoBytes { data: "),
|
||||
"ln::channelmanager::PaymentPreimage" if is_ref => Some("&"),
|
||||
|
@ -687,6 +689,7 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
|
|||
"bitcoin::hash_types::Txid" if is_ref => Some(".as_inner()"),
|
||||
"bitcoin::hash_types::BlockHash" if is_ref => Some(".as_inner()"),
|
||||
"bitcoin::hash_types::BlockHash" => Some(".into_inner() }"),
|
||||
"bitcoin::secp256k1::Message" if !is_ref => Some(".as_ref().clone() }"),
|
||||
"ln::channelmanager::PaymentHash" if is_ref => Some(".0"),
|
||||
"ln::channelmanager::PaymentHash" => Some(".0 }"),
|
||||
"ln::channelmanager::PaymentPreimage" if is_ref => Some(".0"),
|
||||
|
|
Loading…
Add table
Reference in a new issue